-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInstructionsScreen.js
More file actions
60 lines (56 loc) · 1.53 KB
/
Copy pathInstructionsScreen.js
File metadata and controls
60 lines (56 loc) · 1.53 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
import React from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
export default function InstructionsScreen({ navigation }) {
return (
<View style={styles.container}>
{/* Back Button */}
<TouchableOpacity style={styles.backButton} onPress={() => navigation.goBack()}>
<Text style={styles.backButtonText}>Back</Text>
</TouchableOpacity>
{/* Title */}
<Text style={styles.title}>Instructions</Text>
{/* Instruction Text */}
<Text style={styles.text}>Welcome to Escape IC!
Your mission is to solve three challenging puzzles to unlock the elevator door and escape in the shortest time possible. The faster you solve them, the higher your score on the leaderboard. Good luck!</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#1A1A1A',
paddingTop: 70,
},
backButton: {
position: 'absolute',
top: 60,
left: 20,
backgroundColor: '#FF0000',
paddingVertical: 10,
paddingHorizontal: 15,
borderRadius: 5,
shadowColor: '#000',
shadowOpacity: 0.3,
shadowOffset: { width: 0, height: 2 },
shadowRadius: 4,
},
backButtonText: {
color: '#FFFFFF',
fontSize: 16,
fontWeight: 'bold',
},
title: {
fontSize: 36,
color: '#FF0000',
fontWeight: 'bold',
marginBottom: 20,
},
text: {
fontSize: 18,
color: '#F2F2F2',
textAlign: 'center',
paddingHorizontal: 20,
},
});