resetSuccessful.tsx 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { View, Text, StyleSheet, Image, SafeAreaView } from 'react-native';
  2. import { Link } from 'expo-router';
  3. import { Dimensions } from 'react-native';
  4. const ResetSuccessful = ({}) => {
  5. const width = Dimensions.get('window').width;
  6. const height = Dimensions.get('window').height;
  7. const imageSize = 300;
  8. return (
  9. <View
  10. className="flex-1 items-center justify-center"
  11. style={{ width: width, height: height - height * 0.2 }}
  12. >
  13. <View className="items-center justify-center space-y-5">
  14. <Text style={styles.titleText}>重置密碼成功</Text>
  15. <Text style={styles.text}>歡迎使用 Crazy Charge</Text>
  16. <Text style={styles.text}>祝你一路順“瘋“</Text>
  17. </View>
  18. <View className="items-center justify-center">
  19. <Image
  20. style={{
  21. width: imageSize,
  22. height: imageSize,
  23. alignSelf: 'center',
  24. marginVertical: 9,
  25. resizeMode: 'contain'
  26. }}
  27. source={require('../../../../assets/successLogo.png')}
  28. />
  29. </View>
  30. <View
  31. style={{
  32. maxWidth: '100%',
  33. backgroundColor: '#025c72',
  34. justifyContent: 'center',
  35. alignItems: 'center',
  36. borderRadius: 12,
  37. padding: 20
  38. }}
  39. >
  40. <Link replace href="/">
  41. <Text
  42. style={{
  43. color: 'white',
  44. fontSize: 16,
  45. fontWeight: 500
  46. }}
  47. >
  48. 返回登錄畫面
  49. </Text>
  50. </Link>
  51. </View>
  52. </View>
  53. );
  54. };
  55. const styles = StyleSheet.create({
  56. titleText: { fontSize: 32, fontWeight:"400" },
  57. text: {
  58. fontSize: 18
  59. }
  60. });
  61. export default ResetSuccessful;