-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaver.tsx
100 lines (93 loc) · 2.73 KB
/
saver.tsx
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import React from 'react';
import { Text, View, ImageBackground, StyleSheet, StatusBar, TouchableOpacity } from 'react-native';
import { useRouter } from 'expo-router'; // Use useRouter for navigation
import { db } from '@/firebase/config'; // importing db
import { getFirestore, collection, getDocs } from 'firebase/firestore'; // Firebase Firestore
export default function SaverScreen() {
const router = useRouter(); // Initialize router
return (
<View style={styles.container}>
<StatusBar barStyle="light-content" backgroundColor="transparent" translucent={true} />
<ImageBackground
source={require('@/assets/images/bg.png')}
style={styles.background}
resizeMode="cover" // Ensuring the image covers the entire screen
>
<View style={styles.headerContainer}>
<TouchableOpacity onPress={() => router.push('/linker')} style={styles.backLink}>
<Text style={styles.headerText}>← Back</Text>
</TouchableOpacity>
</View>
{/* Main Section */}
<View style={styles.mainSection}>
<Text style={styles.title}>Saved Verses</Text>
{/* Quiz Content*/}
</View>
</ImageBackground>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1, // Ensures the container fills the whole screen
},
background: {
flex: 1, // Ensures the background image fills the entire container
justifyContent: 'center', // Center content if needed
alignItems: 'center',
},
text: {
color: '#fff', // Example text color for visibility
fontSize: 20, // Example font size
},
headerContainer: {
position: 'absolute',
top: 60,
left: 10,
flexDirection: 'row', // Align items horizontally
alignItems: 'center', // Center items vertically
},
headerText: {
color: '#fff',
fontWeight: 'bold',
fontSize: 18,
},
backLink: {
// Remove default link styles if any
backgroundColor: 'transparent',
borderWidth: 0,
},
mainSection: {
flex: 1,
alignItems: 'center',
marginTop: 110,
},
title: {
color: '#fff',
fontSize: 28,
fontWeight: '800', // Extra bold
marginBottom: 40,
marginLeft: 10,
marginRight: 10,
textAlign: 'center', // Center-align the text
},
button: {
backgroundColor: '#132235', //navy blue
paddingVertical: 15,
paddingHorizontal: 30,
borderRadius: 35,
marginBottom: 25,
width: '80%',
alignItems: 'center',
shadowColor: '#000',
shadowOpacity: 0.6,
shadowRadius: 2,
shadowOffset: { width: 2, height: 2 },
},
buttonText: {
color: '#fff', // white
fontSize: 18,
fontWeight: '800', // Extra bold
textAlign: 'center', // Center-align text
},
});