|
1 | | -// app/link-accounts/page.tsx |
2 | 1 | "use client"; |
3 | 2 |
|
4 | 3 | import React from "react"; |
5 | | -import { signIn, useSession } from "next-auth/react"; |
| 4 | +import Link from "next/link"; |
| 5 | +import { useSession } from "next-auth/react"; |
6 | 6 |
|
7 | | -export default function LinkAccounts() { |
| 7 | +export default function HomePage() { |
8 | 8 | const { data: session } = useSession(); |
9 | 9 |
|
10 | 10 | return ( |
11 | | - <div className="p-6"> |
12 | | - <h1 className="text-xl font-bold mb-4">Link your accounts</h1> |
13 | | - <div className="space-y-3"> |
14 | | - <button onClick={() => signIn("github")} className="btn"> |
15 | | - Link GitHub |
16 | | - </button> |
17 | | - <button onClick={() => signIn("twitter")} className="btn"> |
18 | | - Link Twitter |
19 | | - </button> |
20 | | - <button onClick={() => signIn("discord")} className="btn"> |
21 | | - Link Discord |
22 | | - </button> |
| 11 | + <div className="min-h-screen flex flex-col items-center justify-center p-6"> |
| 12 | + <div className="max-w-2xl w-full text-center space-y-8"> |
| 13 | + <h1 className="text-4xl font-bold tracking-tight"> |
| 14 | + Welcome to StellarHunts |
| 15 | + </h1> |
| 16 | + <p className="text-lg text-gray-600"> |
| 17 | + Solve cryptographic puzzles and blockchain challenges to earn |
| 18 | + on-chain NFT rewards while learning about web3 technologies. |
| 19 | + </p> |
| 20 | + |
| 21 | + <div className="grid grid-cols-1 sm:grid-cols-3 gap-4 mt-8"> |
| 22 | + <Link |
| 23 | + href="/puzzles" |
| 24 | + className="block p-6 rounded-lg border border-gray-200 hover:border-blue-500 hover:shadow-md transition-all" |
| 25 | + > |
| 26 | + <h2 className="text-xl font-semibold mb-2">Puzzles</h2> |
| 27 | + <p className="text-sm text-gray-500"> |
| 28 | + Challenge yourself with blockchain riddles |
| 29 | + </p> |
| 30 | + </Link> |
| 31 | + |
| 32 | + <Link |
| 33 | + href="/leaderboard" |
| 34 | + className="block p-6 rounded-lg border border-gray-200 hover:border-blue-500 hover:shadow-md transition-all" |
| 35 | + > |
| 36 | + <h2 className="text-xl font-semibold mb-2">Leaderboard</h2> |
| 37 | + <p className="text-sm text-gray-500"> |
| 38 | + Compete with other players globally |
| 39 | + </p> |
| 40 | + </Link> |
| 41 | + |
| 42 | + <Link |
| 43 | + href="/rewards" |
| 44 | + className="block p-6 rounded-lg border border-gray-200 hover:border-blue-500 hover:shadow-md transition-all" |
| 45 | + > |
| 46 | + <h2 className="text-xl font-semibold mb-2">Rewards</h2> |
| 47 | + <p className="text-sm text-gray-500"> |
| 48 | + Claim your earned NFT badges |
| 49 | + </p> |
| 50 | + </Link> |
| 51 | + </div> |
| 52 | + |
| 53 | + {!session && ( |
| 54 | + <div className="mt-8"> |
| 55 | + <Link |
| 56 | + href="/auth/login" |
| 57 | + className="inline-block px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors" |
| 58 | + > |
| 59 | + Get Started |
| 60 | + </Link> |
| 61 | + </div> |
| 62 | + )} |
| 63 | + |
| 64 | + {session && ( |
| 65 | + <div className="mt-8 text-gray-600"> |
| 66 | + Signed in as {session.user?.email || session.user?.name} |
| 67 | + </div> |
| 68 | + )} |
23 | 69 | </div> |
24 | 70 | </div> |
25 | 71 | ); |
|
0 commit comments