@@ -19,7 +19,7 @@ function PageBody() {
1919 const response = await identityDetail ( )
2020 return response . data
2121 } ,
22- staleTime : Infinity , // Data won't change
22+ staleTime : Infinity ,
2323 gcTime : Infinity ,
2424 } )
2525
@@ -28,51 +28,63 @@ function PageBody() {
2828 }
2929
3030 return (
31- < >
32- < div className = "flex flex-col gap-2 bg-accent text-accent-foreground rounded-lg p-4 my-2" >
33- < div className = "flex flex-col gap-0.5" >
34- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Name</ span >
35- < span className = "font-bold" > { data . name } </ span >
36- </ div >
37-
38- < div className = "flex flex-col gap-0.5" >
39- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Email</ span >
40- < span className = "font-mono text-sm" > { data . email } </ span >
41- </ div >
42-
43- < div className = "flex flex-col gap-0.5" >
44- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Node ID</ span >
45- < span className = "font-mono text-sm break-all" > { data . node_id } </ span >
46- </ div >
47-
48- < div className = "flex flex-col gap-0.5" >
49- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Bitcoin Public Key</ span >
50- < span className = "font-mono text-sm break-all" > { data . bitcoin_public_key } </ span >
51- </ div >
52-
53- < div className = "flex flex-col gap-0.5" >
54- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Nostr Public Key</ span >
55- < span className = "font-mono text-sm break-all" > { data . npub } </ span >
31+ < div className = "flex flex-col gap-4" >
32+ < div className = "bg-card text-card-foreground rounded-lg border p-6" >
33+ < h3 className = "text-lg font-semibold mb-4" > Information</ h3 >
34+ < div className = "grid grid-cols-1 md:grid-cols-2 gap-4" >
35+ < div className = "flex flex-col gap-1" >
36+ < span className = "text-xs text-muted-foreground uppercase tracking-wide font-medium" > Name</ span >
37+ < span className = "font-semibold text-base" > { data . name } </ span >
38+ </ div >
39+ < div className = "flex flex-col gap-1" >
40+ < span className = "text-xs text-muted-foreground uppercase tracking-wide font-medium" > Email</ span >
41+ < span className = "font-mono text-sm text-muted-foreground" > { data . email } </ span >
42+ </ div >
43+ < div className = "flex flex-col gap-1" >
44+ < span className = "text-xs text-muted-foreground uppercase tracking-wide font-medium" > Date of Birth</ span >
45+ < span className = "text-sm" > { data . date_of_birth } </ span >
46+ </ div >
5647 </ div >
48+ </ div >
5749
58- < div className = "flex flex-col gap-0.5" >
59- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Date of Birth</ span >
60- < span className = "text-sm" > { data . date_of_birth } </ span >
50+ < div className = "bg-card text-card-foreground rounded-lg border p-6" >
51+ < h3 className = "text-lg font-semibold mb-4" > Keys</ h3 >
52+ < div className = "flex flex-col gap-4" >
53+ < div className = "flex flex-col gap-1" >
54+ < span className = "text-xs text-muted-foreground uppercase tracking-wide font-medium" > Node ID</ span >
55+ < span className = "font-mono text-sm break-all bg-muted p-2 rounded text-muted-foreground" >
56+ { data . node_id }
57+ </ span >
58+ </ div >
59+ < div className = "flex flex-col gap-1" >
60+ < span className = "text-xs text-muted-foreground uppercase tracking-wide font-medium" >
61+ Bitcoin Public Key
62+ </ span >
63+ < span className = "font-mono text-sm break-all bg-muted p-2 rounded text-muted-foreground" >
64+ { data . bitcoin_public_key }
65+ </ span >
66+ </ div >
67+ < div className = "flex flex-col gap-1" >
68+ < span className = "text-xs text-muted-foreground uppercase tracking-wide font-medium" > Nostr Public Key</ span >
69+ < span className = "font-mono text-sm break-all bg-muted p-2 rounded text-muted-foreground" > { data . npub } </ span >
70+ </ div >
6171 </ div >
72+ </ div >
6273
63- < div className = "flex flex-col gap-0.5" >
64- < span className = "text-xs text-accent-foreground/50 uppercase tracking-wide" > Address</ span >
65- < div className = "text-sm" >
66- < div > { data . postal_address . address } </ div >
67- < div >
74+ < div className = "bg-card text-card-foreground rounded-lg border p-6" >
75+ < h3 className = "text-lg font-semibold mb-4" > Address</ h3 >
76+ < div className = "flex flex-col gap-1" >
77+ < div className = "text-sm leading-relaxed" >
78+ < div className = "font-medium" > { data . postal_address . address } </ div >
79+ < div className = "text-muted-foreground" >
6880 { data . postal_address . city }
6981 { data . postal_address . zip && `, ${ data . postal_address . zip } ` }
7082 </ div >
71- < div > { data . postal_address . country } </ div >
83+ < div className = "text-muted-foreground" > { data . postal_address . country } </ div >
7284 </ div >
7385 </ div >
7486 </ div >
75- </ >
87+ </ div >
7688 )
7789}
7890
0 commit comments