import { Link } from 'expo-router'; import { Pressable, StyleSheet, Text, View } from 'react-native'; import theme from '@/theme'; import { Feather, MaterialIcons } from '@expo/vector-icons'; const { colors, spacing, radius, typography, fontWeight, layout, shadows } = theme; export default function WelcomeScreen() { return ( {/* bloque central de bienvenida */} {/* icono superior */} {/* titulo principal */} App Oficina {/* subtitulo descriptivo */} Reserva oficinas, despachos y puestos de trabajo de forma rápida y sencilla {/* tarjeta de ventajas */} {/* ventaja 1 */} Espacios flexibles Oficinas privadas, despachos y puestos individuales {/* ventaja 2 */} Reserva en tiempo real Comprueba disponibilidad y reserva al instante {/* ventaja 3 */} Gestión sencilla Administra todas tus reservas desde un solo lugar {/* boton principal */} Iniciar sesión {/* boton secundario */} Registrarse {/* texto inferior */} Diseñado para profesionales y equipos modernos ); } const styles = StyleSheet.create({ // el ancho queda acotado igual que en home y profile container: { flex: 1, backgroundColor: colors.background, }, // contenido central de bienvenida controlando el ancho maximo, el centrado y el espaciado content: { flex: 1, justifyContent: 'center', paddingHorizontal: spacing.xl, paddingTop: spacing.xl, paddingBottom: spacing.xl, gap: spacing.lg, maxWidth: layout.contentWidth, width: '100%', alignSelf: 'center', }, // caja azul del icono superior iconBox: { width: 56, height: 56, borderRadius: radius.lg, backgroundColor: colors.primary, alignItems: 'center', justifyContent: 'center', alignSelf: 'center', ...shadows.card, }, // titulo principal title: { fontSize: 36, fontWeight: fontWeight.semibold, color: colors.text, textAlign: 'center', }, // subtitulo subtitle: { fontSize: typography.md, color: colors.textSecondary, textAlign: 'center', lineHeight: 22, maxWidth: 300, }, // tarjeta de ventajas featuresCard: { width: '100%', backgroundColor: colors.surface, borderRadius: radius.xxl, borderWidth: 1, borderColor: colors.border, padding: spacing.lg, gap: spacing.lg, ...shadows.card, }, // fila de cada ventaja featureItem: { flexDirection: 'row', alignItems: 'flex-start', gap: spacing.md, }, // fondo del icono de cada ventaja featureIconWrap: { width: 32, height: 32, borderRadius: radius.md, backgroundColor: colors.primarySoft, alignItems: 'center', justifyContent: 'center', }, // bloque de textos de cada ventaja featureTextBlock: { flex: 1, gap: 2, }, // titulo de la ventaja featureTitle: { fontSize: typography.md, fontWeight: fontWeight.semibold, color: colors.text, }, // descripcion de la ventaja featureDescription: { fontSize: typography.sm, color: colors.textSecondary, lineHeight: 18, }, // boton principal button: { width: '100%', backgroundColor: colors.primary, paddingVertical: spacing.lg, borderRadius: radius.md, alignItems: 'center', justifyContent: 'center', }, // texto del boton principal buttonText: { color: colors.white, fontWeight: fontWeight.semibold, fontSize: typography.md, }, // boton secundario con borde buttonSecondary: { width: '100%', backgroundColor: colors.surface, paddingVertical: spacing.lg, borderRadius: radius.md, alignItems: 'center', justifyContent: 'center', borderWidth: 1, borderColor: colors.border, }, // texto del boton secundario buttonSecondaryText: { color: colors.text, fontWeight: fontWeight.medium, fontSize: typography.md, }, // texto inferior discreto footerText: { marginTop: spacing.sm, fontSize: typography.sm, color: colors.textSecondary, textAlign: 'center', }, });