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
|
import { Link } from 'expo-router';
import { StyleSheet, Text, View, Pressable } from 'react-native';
export default function WelcomeScreen() {
return (
<View style={styles.container}>
<Text style={styles.title}>App Oficina</Text>
<Text style={styles.subtitle}>Reserva de espacios de trabajo</Text>
<Link href="/(auth)/login" asChild>
<Pressable style={styles.button}>
<Text style={styles.buttonText}>Iniciar sesión</Text>
</Pressable>
</Link>
<Link href="/(auth)/register" asChild>
<Pressable style={styles.buttonSecondary}>
<Text style={styles.buttonText}>Registrarse</Text>
</Pressable>
</Link>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
padding: 24,
gap: 16,
},
title: {
fontSize: 32,
fontWeight: '700',
textAlign: 'center',
},
subtitle: {
fontSize: 16,
textAlign: 'center',
marginBottom: 24,
},
button: {
backgroundColor: '#1f6feb',
paddingVertical: 14,
borderRadius: 10,
alignItems: 'center',
},
buttonSecondary: {
backgroundColor: '#444',
paddingVertical: 14,
borderRadius: 10,
alignItems: 'center',
},
buttonText: {
color: '#fff',
fontWeight: '600',
},
});
|