-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage.tsx
More file actions
36 lines (34 loc) · 1.04 KB
/
page.tsx
File metadata and controls
36 lines (34 loc) · 1.04 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
"use client";
import Steps from "@/components/Steps";
import Footer from "@/components/Footer";
import { useAccount, useDisconnect } from "wagmi";
export default function Home() {
const { address } = useAccount();
const { disconnect } = useDisconnect();
return (
<div className="grid items-center justify-items-center min-h-screen p-8 gap-4 font-geist-sans">
{address && (
<header className="absolute top-4 right-4">
<button
onClick={() => disconnect()}
className="text-gray-400 hover:text-white text-sm transition-colors"
>
Disconnect
</button>
</header>
)}
<main className="flex flex-col gap-6 row-start-2">
<div className="text-center">
<h1 className="text-3xl font-bold text-white mb-2">
Invitation Links
</h1>
<p className="text-white/70">
Create and share invitation links for rewards
</p>
</div>
<Steps />
</main>
<Footer />
</div>
);
}