Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/minjun06/front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
minjun06 committed Jun 9, 2023
2 parents 04bd09d + 0bdbb9c commit 27b5934
Show file tree
Hide file tree
Showing 12 changed files with 6,460 additions and 28 deletions.
Binary file added assets/img/cloud_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/cloudy_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/flower11_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/flower1_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.16",
"expo": "~48.0.18",
"expo-app-loading": "^2.1.1",
"expo-font": "~11.1.1",
"expo-splash-screen": "~0.18.2",
"expo-status-bar": "~1.4.4",
"hermes-engine": "^0.5.2-rc1",
"react": "18.2.0",
Expand Down
4 changes: 4 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
project: {
ios: {},
android: {},
},
assets: ["./assets/fonts"],
};
17 changes: 12 additions & 5 deletions src/navigations/Stack.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
import React from 'react';
import React from "react";
//import { StatusBar } from 'expo-status-bar';
import { createStackNavigator } from '@react-navigation/stack';
import { createStackNavigator } from "@react-navigation/stack";
// import { Home, Question, Test, Landing, Login, Extra, SelectType, SignUp, Splash } from '../screens';
import { Home, Question, Test, Landing, SelectType, SignUp, Splash } from '../screens';
import {
Home,
Question,
Test,
Landing,
SelectType,
SignUp,
Splash,
} from "../screens";

const Stack = createStackNavigator();

const StackNav = () => {
return (
<Stack.Navigator
initialRouteName="Home"
screenOptions={{ cardStyle: { backgroundColor: '#ffffff' } }}
screenOptions={{ cardStyle: { backgroundColor: "#ffffff" } }}
>
<Stack.Screen
name="Home"
Expand All @@ -28,7 +36,6 @@ const StackNav = () => {
<Stack.Screen name="SignUp" component={SignUp} />
<Stack.Screen name="Splash" component={Splash} />
{/* <Stack.Screen name="Extra" component={Extra} /> */}

</Stack.Navigator>
);
};
Expand Down
35 changes: 35 additions & 0 deletions src/screens/Extra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// import { React, useContext } from "react";
// import {
// TouchableOpacity,
// StyleSheet,
// Text,
// View,
// Button,
// Image,
// } from "react-native";

// export default function App() {
// return (
// <View>
// <Text>마이페이지</Text>
// <View style={styles.container}>
// <View>
// <View>
// <Image source={require("../../assets/img/flower11_img.png")} />
// </View>
// <Text>치매 안심 센터</Text>
// </View>
// </View>
// </View>
// );
// }

// const styles = StyleSheet.create({
// container: {
// marginTop: "30%",
// backgroundColor: "#fff",
// alignItems: "center",
// justifyContent: "center",
// },
// text: {},
// });
87 changes: 79 additions & 8 deletions src/screens/Landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,97 @@ export default function Landing() {
return (
<View style={styles.container}>
<View>
<Text> 종이꽃</Text>
<Text>: 항상 기억할게요</Text>
<Image
style={{
width: 125,
height: 87,
marginTop: 10,
marginLeft: "65%",
resizeMode: "contain",
}}
source={require("../../assets/img/cloudy_img.png")}
/>
</View>

<View>
<Image source={require("../../assets/img/flower1_img.png")} />
<Text style={styles.text}> 종이꽃</Text>
<Text style={styles.text2}>: 항상 기억할게요</Text>
</View>

<Button title="회원가입" />
<Button title="로그인" />
<View>
<Image
//구름
style={{
width: 193,
height: 87,
marginLeft: 10,
resizeMode: "contain",
}}
source={require("../../assets/img/cloud_img.png")}
/>
</View>

<View>
<Image
//꽃
style={{
width: 164,
height: 246,
marginLeft: "50%",
// marginBottom: "15%",
resizeMode: "contain",
}}
source={require("../../assets/img/flower1_img.png")}
/>
</View>
<View style={styles.buttonContainer}>
<TouchableOpacity style={styles.button}>
<Text style={{ fontSize: "40px", color: "white" }}>회원가입</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button}>
<Text style={styles.btnText}>로그인</Text>
</TouchableOpacity>
</View>
</View>
);
}

const styles = StyleSheet.create({
container: {
marginTop: "30%",
backgroundColor: "#fff",
flex: 1,
backgroundColor: "#FFF2D1",
// alignItems: "center",
// justifyContent: "center",
},

text: {
//종이꽃 스타일
marginTop: "10%",
marginLeft: 12,
fontSize: "32px",
lineHeight: "60%",
// fontFamily: "Gyenggi",
},
text2: {
marginLeft: 12,
fontSize: "24px",
},

buttonContainer: {
alignItems: "center",
},

button: {
width: "90%",
height: 75,
marginBottom: 8,
borderRadius: 5,
backgroundColor: "#FFCF53",
alignItems: "center",
justifyContent: "center",
},
text: {},

btnText: {
fontSize: "40px",
},
});
91 changes: 81 additions & 10 deletions src/screens/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,102 @@ import {
Image,
} from "react-native";

export default function App() {
export default function SignUp() {
return (
<View style={styles.container}>
<View>
<Text>안녕하세요,</Text>
<Text>기억바구니와 함께</Text>
<Text>소중한 기억을 오래 기억해요.</Text>
<Image
style={{
width: 125,
height: 87,
marginTop: 10,
marginLeft: "65%",
resizeMode: "contain",
}}
source={require("../../assets/img/cloudy_img.png")}
/>
</View>

<View>
<Image source={require("../../assets/img/flower1_img.png")} />
<Text style={styles.text2}>안녕하세요,</Text>
<Text style={styles.text2}>기억바구니와 함께</Text>
<Text style={styles.text2}>소중한 기억을 오래 기억해요.</Text>
</View>

<Button title="카카오로 간편 시작" />
<Button title="전화번호로 시작하기" />
<View>
<Image
//구름
style={{
width: 193,
height: 87,
marginLeft: 10,
resizeMode: "contain",
}}
source={require("../../assets/img/cloud_img.png")}
/>
</View>

<View>
<Image
//꽃
style={{
width: 164,
height: 246,
marginLeft: "50%",
// marginBottom: "15%",
resizeMode: "contain",
}}
source={require("../../assets/img/flower1_img.png")}
/>
</View>
<View style={styles.buttonContainer}>
<TouchableOpacity style={styles.button}>
<Text style={styles.btnText}>카카오로 간편 시작</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button}>
<Text style={styles.btnText}>전화번호로 시작하기</Text>
</TouchableOpacity>
</View>
</View>
);
}

const styles = StyleSheet.create({
container: {
marginTop: "30%",
backgroundColor: "#fff",
flex: 1,
backgroundColor: "#FFF2D1",
// alignItems: "center",
// justifyContent: "center",
},

text: {
//종이꽃 스타일
marginTop: "10%",
marginLeft: 12,
fontSize: "32px",
lineHeight: "60%",
// fontFamily: "Gyenggi",
},
text2: {
marginLeft: 12,
fontSize: "24px",
},

buttonContainer: {
alignItems: "center",
},

button: {
width: "90%",
height: 75,
marginBottom: 8,
borderRadius: 5,
backgroundColor: "#FFCF53",
alignItems: "center",
justifyContent: "center",
},
text: {},

btnText: {
fontSize: "40px",
},
});
46 changes: 41 additions & 5 deletions src/screens/Splash.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,55 @@
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import React, { useState } from "react";
import { StyleSheet, Text, View, Image } from "react-native";
import { useFonts } from "expo-font";
import * as Font from "expo-font";
import AppLoading from "expo-app-loading";
import * as SplashScreen from "expo-splash-screen";

export default function Splash() {
return (
<View style={styles.container}>
<Text> 종이꽃</Text>
<Text>: 항상 기억할게요</Text>
<View>
<Text style={styles.text}> 종이꽃</Text>
<Text style={styles.text2}>: 항상 기억할게요</Text>
</View>
<View>
<Image
style={{
width: 164,
height: 246,
marginTop: "80%",
marginLeft: "40%",
// marginBottom: "15%",
resizeMode: "contain",
}}
// style={styles.image}
source={require("../../assets/img/flower1_img.png")}
/>
</View>
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
marginTop: "30%",
marginLeft: "15%",
// alignItems: "center",
// justifyContent: "center",
},
text: {
fontSize: "32px",
lineHeight: "60%",
// fontFamily: "Gyenggi",
},
text2: {
fontSize: "24px",
},
image: {
width: "100px",
height: "100px",
resizeMode: "contain",
alignItems: "center",
justifyContent: "center",
},
Expand Down
Loading

0 comments on commit 27b5934

Please sign in to comment.