style fix

This commit is contained in:
CHIEFSOFT\ameye
2024-08-29 17:11:38 -04:00
parent a3cea2a616
commit ad6a4b1a9f
+20 -13
View File
@@ -18,9 +18,8 @@ const Home =()=> {
source={{ source={{
uri: 'https://reactnative.dev/img/tiny_logo.png', uri: 'https://reactnative.dev/img/tiny_logo.png',
}} /> }} />
<Text>Home Screen Ameyew ggg fff hhh yyyy</Text> <Text style={styles.lbl}>Connect you care</Text>
<TextInput <TextInput
name='username'
editable editable
maxLength={40} maxLength={40}
value={username} value={username}
@@ -29,10 +28,10 @@ const Home =()=> {
/> />
<TextInput <TextInput
name ='password'
editable editable
maxLength={40} maxLength={40}
value={password} value={password}
secureTextEntry={true}
onChangeText={onChangePassword} onChangeText={onChangePassword}
style={styles.textInp} style={styles.textInp}
/> />
@@ -52,17 +51,25 @@ const Home =()=> {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
backgroundColor: 'aliceblue'
},
lbl:{
fontWeight: 800,
color:'darkblue',
textAlign: 'center'
}, },
login_box: { login_box: {
backgroundColor: 'white', backgroundColor: 'white',
maxWidth: '450px', maxWidth: 480,
minWidth: 350,
margin: 'auto', margin: 'auto',
borderRadius: '10px', borderRadius: 10,
padding: '15px', padding: 15,
gap:10 gap:'10px'
}, },
loginButton:{ loginButton:{
borderRadius: '5px', borderRadius: 5,
color:'red',
backgroundColor: '#f194ff' backgroundColor: '#f194ff'
}, },
tinyLogo: { tinyLogo: {
@@ -73,9 +80,10 @@ const styles = StyleSheet.create({
textInp:{ textInp:{
padding: '10px', padding: '10px',
backgroundColor: 'whitesmoke', backgroundColor: 'whitesmoke',
fontSize:'18px', borderRadius: 5,
borderRadius: '5px' height: 40,
margin: 12,
borderWidth: 1,
}, },
image: { image: {
flex: 1, flex: 1,
@@ -83,8 +91,7 @@ const styles = StyleSheet.create({
}, },
text: { text: {
color: 'white', color: 'white',
fontSize: 42, lineHeight: '84px',
lineHeight: 84,
fontWeight: 'bold', fontWeight: 'bold',
textAlign: 'center', textAlign: 'center',
backgroundColor: '#000000c0', backgroundColor: '#000000c0',