|
| 1 | +import React from "react"; |
| 2 | +import { View, StyleSheet, Dimensions } from "react-native"; |
| 3 | +import { ThemedText } from "./ThemedText"; |
| 4 | +import { ThemedView } from "./ThemedView"; |
| 5 | +import GirlManagingTree from "@/assets/svg/GirlManagingTrees.svg"; |
| 6 | +import { Colors } from "@/constants/Colors"; |
| 7 | + |
| 8 | +const { width } = Dimensions.get("screen"); |
| 9 | + |
| 10 | +export function TokenComponent() { |
| 11 | + return ( |
| 12 | + <View style={styles.container}> |
| 13 | + <ThemedView style={styles.tokenCard}> |
| 14 | + <View style={styles.headerContainer}> |
| 15 | + <View style={styles.logoContainer}> |
| 16 | + <View style={styles.leafIcon} /> |
| 17 | + <ThemedText style={styles.brandName}>Greenstand</ThemedText> |
| 18 | + </View> |
| 19 | + <ThemedText style={styles.subtitle}>Wallet App</ThemedText> |
| 20 | + </View> |
| 21 | + |
| 22 | + <View style={styles.illustrationContainer}> |
| 23 | + <GirlManagingTree |
| 24 | + width={width * 0.5} |
| 25 | + height={width * 0.35} |
| 26 | + /> |
| 27 | + </View> |
| 28 | + </ThemedView> |
| 29 | + </View> |
| 30 | + ); |
| 31 | +} |
| 32 | + |
| 33 | +const styles = StyleSheet.create({ |
| 34 | + container: { |
| 35 | + alignItems: "center", |
| 36 | + justifyContent: "center", |
| 37 | + }, |
| 38 | + tokenCard: { |
| 39 | + backgroundColor: Colors.white, |
| 40 | + borderRadius: 20, |
| 41 | + borderWidth: 3, |
| 42 | + borderColor: Colors.green, |
| 43 | + borderStyle: "dashed", |
| 44 | + padding: 20, |
| 45 | + marginVertical: 20, |
| 46 | + width: width * 0.85, |
| 47 | + height: width * 0.55, |
| 48 | + position: "relative", |
| 49 | + shadowColor: Colors.shadowDark, |
| 50 | + shadowOffset: { |
| 51 | + width: 0, |
| 52 | + height: 4, |
| 53 | + }, |
| 54 | + shadowOpacity: 0.1, |
| 55 | + shadowRadius: 8, |
| 56 | + elevation: 5, |
| 57 | + }, |
| 58 | + headerContainer: { |
| 59 | + position: "absolute", |
| 60 | + top: 20, |
| 61 | + right: 20, |
| 62 | + alignItems: "flex-end", |
| 63 | + zIndex: 1, |
| 64 | + }, |
| 65 | + logoContainer: { |
| 66 | + flexDirection: "row", |
| 67 | + alignItems: "center", |
| 68 | + marginBottom: 2, |
| 69 | + }, |
| 70 | + leafIcon: { |
| 71 | + width: 20, |
| 72 | + height: 20, |
| 73 | + borderRadius: 10, |
| 74 | + backgroundColor: Colors.green, |
| 75 | + marginRight: 6, |
| 76 | + borderTopLeftRadius: 2, |
| 77 | + borderBottomRightRadius: 2, |
| 78 | + }, |
| 79 | + brandName: { |
| 80 | + fontSize: 24, |
| 81 | + fontWeight: "bold", |
| 82 | + color: Colors.green, |
| 83 | + letterSpacing: 0.5, |
| 84 | + }, |
| 85 | + subtitle: { |
| 86 | + fontSize: 14, |
| 87 | + color: Colors.charcoal, |
| 88 | + fontWeight: "500", |
| 89 | + textAlign: "right", |
| 90 | + }, |
| 91 | + illustrationContainer: { |
| 92 | + flex: 1, |
| 93 | + alignItems: "center", |
| 94 | + justifyContent: "center", |
| 95 | + paddingTop: 40, |
| 96 | + }, |
| 97 | +}); |
0 commit comments