import React from 'react'; import { View, Text, TouchableOpacity, ScrollView, StyleSheet, Alert, Dimensions, } from 'react-native'; import Svg, { Path } from 'react-native-svg'; import { useTheme } from '@/theme'; import { SafeScreen } from '@/components/templates'; import { RootScreenProps } from '@/navigation/types'; import { Paths } from '@/navigation/paths'; const { width } = Dimensions.get('window'); // CheckIcon Component const CheckIcon = () => ( ); const SubList = ({ navigation }: RootScreenProps) => { const { colors, layout, gutters, fonts } = useTheme(); // 处理免费试用按钮点击 const handleFreeTrial = () => { Alert.alert('成功', '开始7天免费试用'); }; // 处理高级套餐按钮点击 const handlePremium = () => { Alert.alert('提示', '正在跳转到支付页面...'); }; return ( {/* 页面标题区域 */} Choose Your Plan Unlock premium features with our flexible{'\n'}subscription options {/* 7天免费试用卡片 */} {/* 卡片头部 */} 7-Day Free Trial {/* 卡片内容 */} {/* 价格 */} $0 for 7 days {/* 特性列表 */} Full access to all features No credit card required Cancel anytime {/* 按钮 */} Start Free Trial {/* Premium 高级套餐卡片 */} {/* 卡片头部 */} Premium Plan {/* 卡片内容 */} {/* 价格 */} $9.99 per month {/* 特性列表 */} All features included Priority support Cancel anytime {/* 按钮 */} Get Premium ); }; const styles = StyleSheet.create({ pageBgColor: { backgroundColor: '#FBBF24', // yellow-400 }, container: { flex: 1, }, content: { maxWidth: 672, // 2xl width: width > 672 ? 672 : '100%', alignSelf: 'center', paddingHorizontal: 16, paddingVertical: 24, }, headerSection: { alignItems: 'center', marginBottom: 32, }, mainTitle: { fontSize: 30, color: '#1F2937', // gray-800 marginBottom: 8, textAlign: 'center', }, subtitle: { fontSize: 16, color: '#6B7280', // gray-600 textAlign: 'center', lineHeight: 24, }, card: { backgroundColor: '#FFFFFF', borderRadius: 24, overflow: 'hidden', shadowColor: '#000', shadowOffset: { width: 0, height: 4 }, shadowOpacity: 0.15, shadowRadius: 12, elevation: 8, }, cardPremium: { borderWidth: 2, borderColor: '#4F46E5', // indigo-600 }, cardHeaderLight: { backgroundColor: '#E0E7FF', // indigo-100 paddingHorizontal: 24, paddingVertical: 16, }, cardHeaderDark: { backgroundColor: '#4F46E5', // indigo-600 paddingHorizontal: 24, paddingVertical: 16, }, cardHeaderTitle: { fontSize: 24, color: '#4338CA', // indigo-700 }, cardHeaderTitleWhite: { fontSize: 24, color: '#FFFFFF', }, cardBody: { paddingHorizontal: 24, paddingVertical: 32, }, priceSection: { flexDirection: 'row', alignItems: 'baseline', marginBottom: 24, }, priceAmount: { fontSize: 48, color: '#1F2937', // gray-800 }, pricePeriod: { fontSize: 20, color: '#6B7280', // gray-500 marginLeft: 8, }, featureList: { marginBottom: 32, gap: 16, }, featureItem: { flexDirection: 'row', alignItems: 'center', marginBottom: 16, }, featureText: { fontSize: 18, color: '#374151', // gray-700 marginLeft: 12, flex: 1, }, buttonLight: { width: '100%', backgroundColor: '#E0E7FF', // indigo-100 paddingVertical: 16, paddingHorizontal: 24, borderRadius: 16, }, buttonLightText: { color: '#4338CA', // indigo-700 fontSize: 16, textAlign: 'center', }, buttonDark: { width: '100%', backgroundColor: '#4F46E5', // indigo-600 paddingVertical: 16, paddingHorizontal: 24, borderRadius: 16, }, buttonDarkText: { color: '#FFFFFF', fontSize: 16, textAlign: 'center', }, }); export default SubList;