-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHomeScreen.js
More file actions
76 lines (72 loc) · 1.91 KB
/
Copy pathHomeScreen.js
File metadata and controls
76 lines (72 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import React from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
export default function HomeScreen({ navigation }) {
return (
<LinearGradient colors={['#8B0000', '#1A1A1A']} style={styles.background}>
<View style={styles.container}>
{/* Title */}
<Text style={styles.title}>Escape IC!</Text>
{/* Start Game Button */}
<TouchableOpacity
style={styles.startButton}
onPress={() => navigation.navigate('Elevator')}>
<Text style={styles.buttonText}>Start Game</Text>
</TouchableOpacity>
{/* Instructions Button */}
<TouchableOpacity
style={styles.secondaryButton}
onPress={() => navigation.navigate('InstructionsScreen')}>
<Text style={styles.buttonText}>Instructions</Text>
</TouchableOpacity>
</View>
</LinearGradient>
);
}
const styles = StyleSheet.create({
background: {
flex: 1,
},
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 20,
},
title: {
fontSize: 48,
fontWeight: 'bold',
color: '#FF0000',
textShadowColor: '#1A1A1A',
textShadowOffset: { width: 2, height: 2 },
textShadowRadius: 10,
marginBottom: 50,
},
startButton: {
backgroundColor: '#FF0000',
paddingVertical: 15,
paddingHorizontal: 40,
borderRadius: 10,
marginVertical: 15,
width: '80%',
alignItems: 'center',
shadowColor: '#1A1A1A',
shadowOpacity: 0.8,
shadowOffset: { width: 0, height: 4 },
shadowRadius: 8,
},
secondaryButton: {
backgroundColor: '#8B0000',
paddingVertical: 12,
paddingHorizontal: 35,
borderRadius: 10,
marginVertical: 10,
width: '70%',
alignItems: 'center',
},
buttonText: {
color: '#F2F2F2',
fontSize: 18,
fontWeight: '600',
},
});