Skip to content

Commit

Permalink
last page 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
JBC09 committed Sep 7, 2023
1 parent cbcd30c commit c754cf6
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 27 deletions.
45 changes: 23 additions & 22 deletions pages/login_ok/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,42 @@ import { TextInput } from "react-native-gesture-handler";
import { Ionicons } from '@expo/vector-icons';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import GroupJoin from './groupJoin/GroupDetail'

import { StackActions } from '@react-navigation/native';


const widths = Dimensions.get('window').width;
const heights = Dimensions.get('window').height;
const image = {uri: 'https://media.istockphoto.com/id/1261541463/ko/%EC%82%AC%EC%A7%84/%EC%8A%A4%EB%A7%88%ED%8A%B8%ED%8F%B0-%EC%BB%B4%ED%93%A8%ED%84%B0-%EB%84%A4%ED%8A%B8%EC%9B%8C%ED%81%AC-%EB%B9%84%EC%A6%88%EB%8B%88%EC%8A%A4-%EC%95%84%EC%9D%B4%EB%94%94%EC%96%B4-%EB%93%B1-%EB%8F%85%EC%84%9C%EB%A5%BC-%ED%86%B5%ED%95%B4-%ED%95%99%EC%8A%B5%ED%95%A0-%EC%88%98-%EC%9E%88%EB%8A%94-%EB%8B%A4%EC%96%91%ED%95%9C-%EC%A7%80%EC%8B%9D%EA%B3%BC-%EC%B9%A0%ED%8C%90-%EB%B0%B0%EA%B2%BD.jpg?s=612x612&w=0&k=20&c=2gpEkCa5Hx4K1Wg1wbXyL3tl9oD7RWBdYfSBkp7_Dz8='};

export default function App() {
const Stack = createStackNavigator();

return (

<NavigationContainer independent={true} >
<Stack.Navigator initialRouteName="Login" screenOptions={{headerShown:false}}>
<Stack.Screen name="Login" component={HomeScreen} />
<Stack.Screen name="Group" component={GroupJoin} />

</Stack.Navigator>
</NavigationContainer>

);
}


function HomeScreen({navigation}) {
export default function HomeScreen({navigation}) {

return (
<View style={{ flex: 1,
padding:15,
paddingTop: Platform.OS == 'ios' ? heights * 0.07 : heights * 0.06,
}}>
<View>
<View
style={{
flexDirection:'row',
alignItems:'center',
justifyContent:'space-between'
}}
>
<Ionicons
onPress={()=>{
navigation.pop();
}}
name="chevron-back-outline"
style={{
fontSize:35
}}
>

</Ionicons>
<TextInput
style={{
width:widths* 0.9,
width:widths* 0.8,
backgroundColor:'#e9e9e9',
borderRadius:30,
fontSize: widths * 0.05,
Expand Down Expand Up @@ -84,7 +85,7 @@ export default function App() {
<TouchableOpacity style={{
marginBottom: heights * 0.02
}} onPress={()=>{
navigation.push("Group")
navigation.push("GroupJoin")
}} >
<View
style={{
Expand Down
31 changes: 29 additions & 2 deletions pages/login_ok/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import Calendar from './Calendar'
import Timer from './Timer';
import Book from './Book'
import Main from './index'

import Consult from './consult'

const widths = Dimensions.get('window').width;
const heights = Dimensions.get('window').height;

Expand Down Expand Up @@ -78,7 +79,33 @@ export default function Router() {
)
}}
/>
<Tab.Screen name="Settings3" component={Book} />
<Tab.Screen

options={{
tabBarIcon:({focused})=>(
<Ionicons
name="book-outline"
style={{
color: focused ? '#004A6C' : 'gray',
fontSize: focused ? 15: 10,
}}
/>
)
}}
name="Book" component={Book} />

<Tab.Screen options={{
tabBarIcon:({focused})=>(
<Ionicons
name="reader-outline"
style={{
color: focused ? '#004A6C' : 'gray',
fontSize: focused ? 15: 10,
}}
/>
)
}}
name="Consult" component={Consult} />
</Tab.Navigator>
</NavigationContainer>
);
Expand Down
16 changes: 15 additions & 1 deletion pages/login_ok/Servay.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,24 @@ const App = ({navigation}) => {
}
}
};

// <Ionicons
// onPress={()=>{
// navigation.pop();
// }}
// name="chevron-back-outline"
// style={{
// fontSize:35
// }}
// >

const [array, setArray] = useState([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
return (React.createElement(View, null,
return (

React.createElement(View, null,
React.createElement(View, { style: { marginTop: 22 } },
React.createElement(Modal, { animationType: "slide", transparent: false, visible: modalVisible },

React.createElement(View, { style: styles.comment },
React.createElement(Text, { style: styles.commenttext }, "\uB2F9\uC2E0\uC740 \uC2A4\uD2B8\uB808\uC2A4\uC218\uCE58\uAC00 \uB192\uC2B5\uB2C8\uB2E4 !"),
React.createElement(Text, { style: styles.explanation }, "\uC2A4\uD2B8\uB808\uC2A4\uC5D0 \uB300\uD55C \uB300\uCC98\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uACF5\uBD80\uB7C9\uC744 \uC870\uC808\uD558\uACE0 \uAC00\uC871\uACFC\uC758 \uB300\uD654, \uC88B\uC544\uD558\uB294 \uC6B4\uB3D9, \uC26C\uB294 \uC2DC\uAC04 \uC911 \uBA4D\uD558\uB2C8 \uC549\uC544 \uC26C\uAC70\uB098 \uC0B0\uCC45\uD558\uB294 \uAC83 \uB4F1\uC73C\uB85C \uC2A4\uD2B8\uB808\uC2A4\uB97C \uC870\uC808\uD558\uC2DC\uAE38 \uBC14\uB78D\uB2C8\uB2E4.")),
Expand Down
168 changes: 168 additions & 0 deletions pages/login_ok/consult.js
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: {

}
})
5 changes: 3 additions & 2 deletions pages/login_ok/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Ionicons } from "@expo/vector-icons";
import bottom from '../../assets/bottom.png'

import GroupJoin from './groupJoin/GroupDetail'

const widths = Dimensions.get('window').width;
const heights = Dimensions.get('window').height;
Expand All @@ -22,11 +22,12 @@ export default function App(){
const Stack = createStackNavigator();

return(
<NavigationContainer independent={true} >
<NavigationContainer independent={true}>
<Stack.Navigator initialRouteName="Main" screenOptions={{headerShown:false}}>
<Stack.Screen name="Main" component={Main} />
<Stack.Screen name="Servay" component={Servay} />
<Stack.Screen name="Group" component={Group} />
<Stack.Screen name="GroupJoin" component={GroupJoin} />
</Stack.Navigator>
</NavigationContainer>
)
Expand Down

0 comments on commit c754cf6

Please sign in to comment.