Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kan-92] Fix/splash UI #15

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 28 additions & 6 deletions src/screens/signup/SplashScreen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import React, {useState, useCallback, useEffect, useContext} from 'react';
import {View, Text, SafeAreaView, ScrollView, StyleSheet} from 'react-native';
import {
View,
Text,
SafeAreaView,
ScrollView,
StyleSheet,
Image,
} from 'react-native';
import {
COLOR_WHITE,
COLOR_BACKGROUND,
Expand Down Expand Up @@ -67,7 +74,11 @@ export default function SplashScreen() {
//이 함수형 컴포넌트가 화면에 보여지는 부분
return (
<View style={styles.entire}>
<Text style={styles.textMain}>먹구스꾸</Text>
<View style={{flexDirection: 'row', marginTop: 100}}>
<Text style={styles.textMain}>{'맛있는 음식을'}</Text>
<Text style={styles.textMainColor}>{' 먹구스꾸'}</Text>
</View>
<Image source={require('../../assets/image.png')} style={styles.image} />

<View style={styles.buttonContainer}>
<LongPrimaryButton text="시작하기" action={pressButton} />
Expand All @@ -82,12 +93,18 @@ const styles = StyleSheet.create({
backgroundColor: COLOR_BACKGROUND,
alignItems: 'center',
},
textMain: {
fontSize: 35,
color: COLOR_TEXT70GRAY,
textMainColor: {
fontSize: 33,
color: '#A4D65E',
fontWeight: 'bold',
textAlign: 'center',
marginTop: 76,
},
textMain: {
fontSize: 33,
fontFamily: 'NotoSansKR-Regular',
color: COLOR_PRIMARY,
fontWeight: 'normal',
textAlign: 'center',
},
buttonContainer: {
position: 'absolute',
Expand All @@ -96,4 +113,9 @@ const styles = StyleSheet.create({
alignItems: 'center',
justifyContent: 'center',
},
image: {
width: 400,
height: 400,
marginTop: 25,
},
});
Loading