|
1 | | -import { Wallet as WalletIcon, ArrowUpRight, ArrowDownLeft, Plus } from "lucide-react"; |
| 1 | +import { Wallet as WalletIcon, ArrowUpRight, ArrowDownLeft, Plus, History, Activity } from "lucide-react"; |
| 2 | +import { motion } from "framer-motion"; |
2 | 3 |
|
3 | 4 | export default function Wallet() { |
4 | 5 | const transactions = [ |
5 | 6 | { |
6 | 7 | title: "Murchison Falls Safari", |
7 | 8 | date: "Mar 25, 2026", |
8 | | - amount: "1450 cUSD", |
| 9 | + amount: "1,450 cUSD", |
9 | 10 | type: "out", |
| 11 | + status: "Confirmed" |
10 | 12 | }, |
11 | 13 | { |
12 | 14 | title: "Flight to Tokyo", |
13 | 15 | date: "Mar 15, 2026", |
14 | | - amount: "$890", |
| 16 | + amount: "$890.00", |
15 | 17 | type: "out", |
| 18 | + status: "Confirmed" |
16 | 19 | }, |
17 | 20 | { |
18 | 21 | title: "Top-up via USDC", |
19 | 22 | date: "Mar 14, 2026", |
20 | | - amount: "+$2000", |
| 23 | + amount: "+$2,000.00", |
21 | 24 | type: "in", |
| 25 | + status: "Completed" |
22 | 26 | }, |
23 | 27 | { |
24 | 28 | title: "Park Hyatt Tokyo", |
25 | 29 | date: "Mar 14, 2026", |
26 | | - amount: "$1540", |
| 30 | + amount: "$1,540.00", |
27 | 31 | type: "out", |
| 32 | + status: "Confirmed" |
28 | 33 | }, |
29 | 34 | { |
30 | 35 | title: "Top-up via cUSD", |
31 | 36 | date: "Mar 10, 2026", |
32 | | - amount: "+$1500", |
| 37 | + amount: "+$1,500.00", |
33 | 38 | type: "in", |
| 39 | + status: "Completed" |
34 | 40 | }, |
35 | 41 | ]; |
36 | 42 |
|
37 | 43 | return ( |
38 | | - <div className="p-6 md:p-10 max-w-4xl mx-auto"> |
39 | | - <div className="mb-10"> |
40 | | - <h1 className="font-display text-3xl font-bold mb-2">MiniPay Wallet</h1> |
41 | | - <p className="text-muted-foreground text-sm"> |
42 | | - Manage your crypto balance for seamless travel payments. |
| 44 | + <div className="p-6 md:p-10 max-w-5xl mx-auto py-16"> |
| 45 | + <div className="mb-12"> |
| 46 | + <h1 className="font-display text-4xl font-bold mb-3 tracking-tight">MiniPay Wallet</h1> |
| 47 | + <p className="text-muted-foreground text-sm font-medium"> |
| 48 | + Manage your travel liquidity and authenticated on-chain transactions. |
43 | 49 | </p> |
44 | 50 | </div> |
45 | 51 |
|
46 | | - {/* Balance Card */} |
47 | | - <div className="rounded-3xl bg-gradient-to-br from-card/80 to-background border border-border/50 p-8 shadow-xl relative overflow-hidden mb-12"> |
48 | | - <div className="absolute top-0 right-0 w-64 h-64 bg-primary/10 blur-[100px] rounded-full pointer-events-none" /> |
| 52 | + {/* Balance Card - Refined Parity */} |
| 53 | + <motion.div |
| 54 | + initial={{ opacity: 0, y: 20 }} |
| 55 | + animate={{ opacity: 1, y: 0 }} |
| 56 | + className="rounded-[32px] bg-gradient-to-br from-card/80 via-card/40 to-background border border-border/50 p-10 shadow-2xl relative overflow-hidden mb-16" |
| 57 | + > |
| 58 | + <div className="absolute top-0 right-0 w-[500px] h-[500px] bg-primary/5 blur-[120px] rounded-full pointer-events-none" /> |
| 59 | + <div className="absolute -bottom-20 -left-20 w-[300px] h-[300px] bg-purple-500/5 blur-[100px] rounded-full pointer-events-none" /> |
49 | 60 |
|
50 | | - <div className="flex flex-col sm:flex-row gap-6 justify-between items-start sm:items-end relative z-10"> |
| 61 | + <div className="flex flex-col lg:flex-row gap-10 justify-between items-start lg:items-center relative z-10"> |
51 | 62 | <div> |
52 | | - <div className="flex items-center gap-2 text-muted-foreground mb-3"> |
53 | | - <div className="h-8 w-8 rounded-lg bg-primary/20 flex items-center justify-center"> |
54 | | - <WalletIcon className="h-4 w-4 text-primary" /> |
| 63 | + <div className="flex items-center gap-3 text-muted-foreground mb-4"> |
| 64 | + <div className="h-10 w-10 rounded-xl bg-primary/10 flex items-center justify-center border border-primary/20"> |
| 65 | + <WalletIcon className="h-5 w-5 text-primary" /> |
55 | 66 | </div> |
56 | | - <span className="text-sm font-medium">Available Balance</span> |
| 67 | + <span className="text-sm font-bold uppercase tracking-widest opacity-80">Available Balance</span> |
57 | 68 | </div> |
58 | | - <div className="font-display text-5xl font-bold tracking-tight text-foreground"> |
59 | | - $1,535.00 |
| 69 | + <div className="flex items-baseline gap-4"> |
| 70 | + <div className="font-display text-6xl font-bold tracking-tighter text-foreground"> |
| 71 | + $1,535.00 |
| 72 | + </div> |
| 73 | + <div className="text-xl font-medium text-muted-foreground opacity-60 italic"> |
| 74 | + ≈ 1,535 cUSD |
| 75 | + </div> |
60 | 76 | </div> |
61 | | - <div className="flex items-center gap-3 mt-3 text-xs font-semibold text-muted-foreground"> |
62 | | - <span className="px-2 py-1 rounded bg-secondary">≈ 1,535 cUSD</span> |
63 | | - <span className="flex items-center gap-1.5"> |
64 | | - <span className="h-1.5 w-1.5 rounded-full bg-emerald-500" /> MiniPay Network |
65 | | - </span> |
| 77 | + <div className="flex items-center gap-4 mt-6"> |
| 78 | + <div className="flex items-center gap-2 px-3 py-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20"> |
| 79 | + <Activity className="h-3.5 w-3.5 text-emerald-500" /> |
| 80 | + <span className="text-[11px] font-bold text-emerald-500 uppercase tracking-wider">MiniPay Network Active</span> |
| 81 | + </div> |
| 82 | + <span className="text-[11px] font-mono text-muted-foreground opacity-50">Addr: 0x82...fA12</span> |
66 | 83 | </div> |
67 | 84 | </div> |
68 | 85 |
|
69 | | - <button className="flex items-center gap-2 bg-primary text-primary-foreground px-6 py-3 rounded-xl font-bold hover:opacity-90 transition-opacity glow-primary w-full sm:w-auto justify-center"> |
70 | | - <Plus className="h-4 w-4" /> Top Up |
| 86 | + <button className="flex items-center gap-3 bg-gradient-primary text-primary-foreground px-8 py-5 rounded-2xl font-bold text-sm shadow-xl shadow-primary/20 hover:scale-[1.02] transition-all active:scale-[0.98] w-full lg:w-auto justify-center"> |
| 87 | + <Plus className="h-5 w-5" /> Top Up Wallet |
71 | 88 | </button> |
72 | 89 | </div> |
73 | | - </div> |
| 90 | + </motion.div> |
74 | 91 |
|
75 | | - {/* Transactions */} |
76 | | - <div> |
77 | | - <h3 className="font-bold text-lg mb-6 flex items-center gap-2"> |
78 | | - Recent Transactions |
79 | | - </h3> |
| 92 | + {/* Transactions - Full Parity List */} |
| 93 | + <div className="space-y-6"> |
| 94 | + <div className="flex items-center justify-between px-2"> |
| 95 | + <h3 className="font-display text-xl font-bold flex items-center gap-3"> |
| 96 | + <History className="h-5 w-5 text-primary" /> Transaction History |
| 97 | + </h3> |
| 98 | + <button className="text-xs font-bold text-primary hover:underline">View All</button> |
| 99 | + </div> |
80 | 100 |
|
81 | | - <div className="flex flex-col gap-3"> |
| 101 | + <div className="grid grid-cols-1 gap-3"> |
82 | 102 | {transactions.map((tx, i) => ( |
83 | | - <div key={i} className="flex items-center justify-between p-4 rounded-xl border border-border/50 bg-card/20 hover:bg-card/40 transition-colors"> |
84 | | - <div className="flex items-center gap-4"> |
85 | | - <div className={`h-10 w-10 rounded-full flex items-center justify-center ${ |
86 | | - tx.type === 'in' ? 'bg-emerald-500/10 text-emerald-500' : 'bg-red-500/10 text-red-500' |
| 103 | + <motion.div |
| 104 | + key={i} |
| 105 | + initial={{ opacity: 0, x: -10 }} |
| 106 | + animate={{ opacity: 1, x: 0 }} |
| 107 | + transition={{ delay: i * 0.05 }} |
| 108 | + className="flex items-center justify-between p-6 rounded-2xl border border-border/40 bg-card/20 hover:bg-card/40 hover:border-border/60 transition-all group" |
| 109 | + > |
| 110 | + <div className="flex items-center gap-5"> |
| 111 | + <div className={`h-12 w-12 rounded-2xl flex items-center justify-center transition-transform group-hover:scale-110 ${ |
| 112 | + tx.type === 'in' ? 'bg-emerald-500/10 text-emerald-500' : 'bg-primary/10 text-primary uppercase' |
87 | 113 | }`}> |
88 | | - {tx.type === 'in' ? <ArrowDownLeft className="h-5 w-5" /> : <ArrowUpRight className="h-5 w-5" />} |
| 114 | + {tx.type === 'in' ? <ArrowDownLeft className="h-6 w-6" /> : <ArrowUpRight className="h-6 w-6" />} |
89 | 115 | </div> |
90 | 116 | <div> |
91 | | - <p className="font-semibold text-sm">{tx.title}</p> |
92 | | - <p className="text-xs text-muted-foreground mt-0.5">{tx.date}</p> |
| 117 | + <p className="font-bold text-foreground tracking-tight">{tx.title}</p> |
| 118 | + <p className="text-[11px] text-muted-foreground font-medium mt-1 uppercase tracking-wider">{tx.date} • {tx.status}</p> |
93 | 119 | </div> |
94 | 120 | </div> |
95 | | - <div className={`font-bold ${tx.type === 'in' ? 'text-emerald-500' : 'text-foreground'}`}> |
96 | | - {tx.amount} |
| 121 | + <div className="text-right"> |
| 122 | + <p className={`text-lg font-bold ${tx.type === 'in' ? 'text-emerald-500' : 'text-foreground'}`}> |
| 123 | + {tx.amount} |
| 124 | + </p> |
| 125 | + <span className="text-[10px] font-mono opacity-30">Confirmed</span> |
97 | 126 | </div> |
98 | | - </div> |
| 127 | + </motion.div> |
99 | 128 | ))} |
100 | 129 | </div> |
101 | 130 | </div> |
|
0 commit comments