forked from Dshield-xyz/Dshield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.tsx
More file actions
102 lines (95 loc) · 3.27 KB
/
Copy pathFooter.tsx
File metadata and controls
102 lines (95 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import Image from "next/image";
import { truncateMiddle } from "@/lib/format";
const EXPLORER_BASE = "https://stellar.expert/explorer/testnet/contract";
const CONTRACTS = [
{
label: "Shielded Pool",
id: process.env.NEXT_PUBLIC_POOL_CONTRACT_ID,
},
{
label: "Compliance",
id: process.env.NEXT_PUBLIC_COMPLIANCE_CONTRACT_ID,
},
];
const LINKS = [
{ label: "GitHub", href: "https://github.com/tech-adrian/Dshield" },
{ label: "Stellar", href: "https://stellar.org" },
{ label: "Noir", href: "https://noir-lang.org" },
];
const linkClass =
"text-xs text-zinc-500 transition-colors hover:text-white";
export function Footer() {
return (
<footer className="mt-12 px-3 pb-3 sm:px-4 sm:pb-4">
<div className="aurora-border mx-auto max-w-5xl rounded-2xl border border-zinc-800/80 bg-zinc-900/40 px-5 py-8 backdrop-blur-sm sm:px-8 sm:py-10">
<div className="grid gap-6 sm:grid-cols-3 sm:gap-8">
<div>
<div className="flex items-center gap-2">
<Image
src="/dshield-mark.png"
alt="DShield"
width={22}
height={24}
/>
<h4 className="text-sm font-semibold text-white">DShield</h4>
</div>
<p className="mt-2 text-xs leading-relaxed text-zinc-500">
Private by Default. Compliant by Choice.
<br />A shielded stablecoin wallet built on Stellar using
Zero-Knowledge Proofs.
</p>
</div>
<div>
<h4 className="text-sm font-semibold text-white">Contracts</h4>
<ul className="mt-2 space-y-1.5">
{CONTRACTS.map(
({ label, id }) =>
id && (
<li key={id}>
<a
href={`${EXPLORER_BASE}/${id}`}
target="_blank"
rel="noopener noreferrer"
className={linkClass}
>
{label} 
<span className="font-mono">
{truncateMiddle(id, 4, 4)}
</span>
</a>
</li>
),
)}
</ul>
</div>
<div>
<h4 className="text-sm font-semibold text-white">Links</h4>
<ul className="mt-2 space-y-1.5">
{LINKS.map(({ label, href }) => (
<li key={href}>
<a
href={href}
target="_blank"
rel="noopener noreferrer"
className={linkClass}
>
{label}
</a>
</li>
))}
</ul>
</div>
</div>
<div className="mt-8 flex flex-col items-center gap-2 border-t border-zinc-800/50 pt-6">
<p className="text-xs text-zinc-600">
Built for{" "}
<span className="text-zinc-400">Stellar Hacks: Real-World ZK</span>
</p>
<p className="text-xs text-zinc-700">
Testnet demo only — unaudited. Not for production use.
</p>
</div>
</div>
</footer>
);
}