-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
238 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
import { StatusBar } from 'expo-status-bar' | ||
import {Button, Image, ScrollView, StyleSheet, Text, TextInput, View} from 'react-native' | ||
|
||
import Mockup from '../../assets/consul.png' | ||
|
||
export default function App() { | ||
return ( | ||
<ScrollView> | ||
<View style={styles.prev}> | ||
<Button onPress={() => console.log('prev')} title='〈' /> | ||
<Text style={styles.title}></Text> | ||
</View> | ||
|
||
<View style={styles.recommend}> | ||
<Image style={styles.mockup} source={Mockup} /> | ||
<View> | ||
<Text style={styles.qbold}>학업 스트레스 진단</Text> | ||
<Text style={styles.q}>을 해보시는 건 어떤가요?</Text> | ||
</View> | ||
</View> | ||
|
||
<View style={styles.contain}> | ||
<View style={styles.view}> | ||
<TextInput style={styles.field} numberOfLines={4} multiline placeholder='상담글을 입력해보세요.' /> | ||
<Text style={styles.next} onPress={() => {console.log('asdf')}}>〉</Text> | ||
</View> | ||
<View style={styles.view2}> | ||
<Button style={styles.upload} title='이미지 업로드'></Button> | ||
</View> | ||
|
||
<View style={styles.view3}> | ||
<Text style={styles.content}>상담글의 내용...</Text> | ||
</View> | ||
|
||
<View style={styles.view3}> | ||
<Text style={styles.content}>상담글의 내용...</Text> | ||
</View> | ||
|
||
<View style={styles.view3}> | ||
<Text style={styles.content}>상담글의 내용...</Text> | ||
</View> | ||
</View> | ||
|
||
<StatusBar style="auto" /> | ||
</ScrollView> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
contain: { | ||
width: '100%', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
|
||
content: { | ||
fontWeight: '500', | ||
fontSize: 16, | ||
marginTop: 30, | ||
marginLeft: 30 | ||
}, | ||
|
||
view: { | ||
width: 350, | ||
height: 150, | ||
borderRadius: 30, | ||
borderColor: '#DFDFDF', | ||
borderWidth: 1, | ||
flexDirection: 'row', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
marginBottom: 20 | ||
}, | ||
view2: { | ||
width: 350, | ||
height: 80, | ||
borderRadius: 30, | ||
borderColor: '#DFDFDF', | ||
borderWidth: 1, | ||
flexDirection: 'row', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
marginBottom: 50, | ||
}, | ||
view3: { | ||
width: 350, | ||
height: 200, | ||
borderRadius: 30, | ||
borderColor: '#DFDFDF', | ||
borderWidth: 1, | ||
justifyContent: 'flex-start', | ||
alignItems: 'flex-start', | ||
marginBottom: 30 | ||
}, | ||
|
||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
|
||
title: { | ||
fontWeight: 'bold', | ||
marginTop: 6, | ||
marginLeft: 75, | ||
fontSize: 18 | ||
}, | ||
|
||
prev: { | ||
width: '100%', | ||
height: 120, | ||
paddingTop: 70, | ||
paddingRight: 250, | ||
marginBottom: 20, | ||
flexDirection: 'row', | ||
justifyContent: 'space-around', | ||
backgroundColor: 'white', | ||
}, | ||
|
||
recommend: { | ||
zIndex: -1, | ||
backgroundColor: '#009BFF', | ||
marginTop: -20, | ||
height: 130, | ||
flexDirection: 'row', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
marginBottom: 40 | ||
}, | ||
q: { | ||
fontWeight: 'bold', | ||
fontSize: 18, | ||
color: 'white' | ||
}, | ||
qbold: { | ||
fontWeight: 'bold', | ||
fontSize: 20, | ||
color: 'white' | ||
}, | ||
mockup: { | ||
objectFit: 'contain', | ||
width: 90, | ||
marginRight: 20, | ||
marginLeft: -60 | ||
}, | ||
|
||
field: { | ||
marginLeft: 30, | ||
width: 300, | ||
fontSize: 20, | ||
}, | ||
|
||
next: { | ||
width: 50, | ||
height: 50, | ||
fontSize: 30, | ||
fontWeight: 'bold', | ||
color: '#009BFF', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
marginTop: 20, | ||
}, | ||
|
||
upload: { | ||
|
||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters