import { SearchBox } from '@/components/SearchBox'; import { ThemedText } from '@/components/ThemedText'; import { ThemedView } from '@/components/ThemedView'; import { WorkoutCard } from '@/components/WorkoutCard'; import React from 'react'; import { SafeAreaView, ScrollView, StyleSheet, View } from 'react-native'; const workoutData = [ { id: 1, title: '体态评估', duration: 50, imageSource: require('@/assets/images/react-logo.png'), }, { id: 2, title: 'Hand\nTraining', calories: 600, duration: 40, imageSource: require('@/assets/images/react-logo.png'), }, { id: 3, title: 'Core\nWorkout', calories: 450, duration: 35, imageSource: require('@/assets/images/react-logo.png'), }, ]; export default function HomeScreen() { return ( {/* Header Section */} Good Morning 🔥 Pramuditya Uzumaki {/* Search Box */} {/* Popular Workouts Section */} Popular Workouts {workoutData.map((workout) => ( console.log(`Pressed ${workout.title}`)} /> ))} {/* Add some spacing at the bottom */} ); } const styles = StyleSheet.create({ safeArea: { flex: 1, backgroundColor: '#F7F8FA', }, container: { flex: 1, backgroundColor: '#F7F8FA', }, header: { paddingHorizontal: 24, paddingTop: 16, paddingBottom: 8, }, greeting: { fontSize: 16, color: '#8A8A8E', fontWeight: '400', marginBottom: 6, }, userName: { fontSize: 30, fontWeight: 'bold', color: '#1A1A1A', lineHeight: 36, }, sectionContainer: { marginTop: 24, }, sectionTitle: { fontSize: 24, fontWeight: 'bold', color: '#1A1A1A', paddingHorizontal: 24, marginBottom: 18, }, workoutScroll: { paddingLeft: 24, }, workoutScrollContainer: { paddingRight: 24, }, bottomSpacing: { height: 120, }, });