import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Image, useWindowDimensions } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { useRouter } from 'expo-router'; import { colors, spacing, borderRadius, shadows } from '../../constants/theme'; const TABLET_MIN_WIDTH = 768; export default function HomeScreen() { const router = useRouter(); const { width } = useWindowDimensions(); const isTablet = width >= TABLET_MIN_WIDTH; return ( FarmaClic Encuentra tus medicamentos en farmacias cercanas router.push('/(tabs)')} > Buscar Medicamento router.push('/scanner')} > Escanear TSI ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: colors.background, alignItems: 'center', justifyContent: 'center', paddingHorizontal: spacing.lg, gap: spacing.lg, }, hero: { alignItems: 'center', gap: spacing.sm, marginBottom: spacing.md, }, heroTablet: { marginBottom: spacing.xl, }, logo: { width: 120, height: 120, marginBottom: spacing.xs, }, logoTablet: { width: 160, height: 160, }, brandName: { fontSize: 28, fontWeight: 'bold', color: colors.text, letterSpacing: -0.5, }, brandNameTablet: { fontSize: 36, }, description: { fontSize: 16, color: colors.textSecondary, textAlign: 'center', maxWidth: 260, lineHeight: 24, }, descriptionTablet: { fontSize: 18, maxWidth: 400, lineHeight: 28, }, cards: { width: '100%', maxWidth: 320, gap: spacing.md, }, cardsTablet: { maxWidth: 480, }, card: { flexDirection: 'row', alignItems: 'center', gap: spacing.md, backgroundColor: colors.primaryContainer, borderRadius: borderRadius.lg, padding: spacing.md, minHeight: 64, ...shadows.card, }, cardTablet: { padding: spacing.lg, minHeight: 72, }, cardScan: { backgroundColor: colors.scanButton, }, cardIcon: { width: 48, height: 48, borderRadius: borderRadius.md, backgroundColor: 'rgba(255, 255, 255, 0.2)', alignItems: 'center', justifyContent: 'center', flexShrink: 0, }, cardIconSearch: { backgroundColor: 'rgba(255, 255, 255, 0.3)', }, cardIconScan: { backgroundColor: 'rgba(255, 255, 255, 0.2)', }, cardContent: { flex: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', }, cardLabel: { fontSize: 18, fontWeight: '700', color: colors.onPrimaryContainer, lineHeight: 24, }, cardLabelTablet: { fontSize: 20, }, cardLabelScan: { color: '#ffffff', }, });