Skip to content

Commit

Permalink
Merge pull request #46 from VanshikaSabharwal/native
Browse files Browse the repository at this point in the history
added ui home screen
  • Loading branch information
smilewithkhushi authored May 26, 2024
2 parents c02a6c2 + ae0c858 commit 9e91d81
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
3 changes: 1 addition & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@
"web": {
"favicon": "./assets/favicon.png"
}

}
}
}
Binary file added assets/fonts/Poppins-Medium.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"tailwindcss": "^3.4.3"
},
"private": true
}
}
3 changes: 3 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
assets: ["./assets/fonts"],
};
24 changes: 16 additions & 8 deletions src/screens/Home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Home() {
<View style={styles.container}>
<Image
source={{
uri: "https://images.unsplash.com/photo-1573456170607-b885fdc78985?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
uri: "https://images.unsplash.com/photo-1493612276216-ee3925520721?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
}}
style={{ width: 400, height: 250, marginBottom: 10 }}
/>
Expand Down Expand Up @@ -137,26 +137,34 @@ const styles = StyleSheet.create({
container: {
flexDirection: "column",
flex: 0,
backgroundColor: "#fff",
backgroundColor: "white",
alignItems: "center",
justifyContent: "center",
height: "100%",
fontSize: 25,
},
button: {
color: "#243531",
textAlign: "center",
margin: 10,
width: 230,
paddingHorizontal: 20,
paddingVertical: 14,
fontSize: 16,
borderColor: "#ed6872",
color: "#fff",
fontSize: 15, // Font size
borderRadius: 10,
backgroundColor: "#600047",
shadowColor: "#ed6872",
backgroundColor: "#61C0BF",
// Shadow properties
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 4,
elevation: 5, // For Android
},
heading: {
color: "#624CAB",
color: "#243531",
fontWeight: "bold",
fontSize: 22,
padding: 8,
Expand Down

0 comments on commit 9e91d81

Please sign in to comment.