resetSuccessful.tsx 2.1 KB

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