|
1 | 1 | import { Button } from "@/components/ui/button"; |
2 | | -import { fiefAuth } from "@/helpers/fief"; |
3 | 2 | import { LogIn } from "lucide-react"; |
4 | 3 |
|
5 | 4 | export default async function Home() { |
6 | 5 | return ( |
7 | | - <main className="flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8"> |
8 | | - <div className="mx-auto text-center"> |
9 | | - <h1 className="text-4xl font-semi-bold tracking-tight text-foreground sm:text-5xl"> |
10 | | - Welcome to Code Carbon! |
11 | | - </h1> |
12 | | - <p className="mt-4 text-lg text-muted-foreground"> |
13 | | - Get started by signing in with your preferred service. |
| 6 | + <> |
| 7 | + <main className="flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8"> |
| 8 | + <div className="mx-auto text-center"> |
| 9 | + <h1 className="text-4xl font-semi-bold tracking-tight text-foreground sm:text-5xl"> |
| 10 | + Welcome to Code Carbon! |
| 11 | + </h1> |
| 12 | + <p className="mt-4 text-lg text-muted-foreground"> |
| 13 | + Get started by signing in with your preferred service. |
| 14 | + </p> |
| 15 | + <div className="mt-6"> |
| 16 | + <a |
| 17 | + href={`${process.env.NEXT_PUBLIC_API_URL}/auth/login?redirect=${process.env.NEXT_PUBLIC_BASE_URL}/home?auth=true`} |
| 18 | + > |
| 19 | + <Button className="w-full max-w-[300px]"> |
| 20 | + <LogIn className="mr-2 h-5 w-5" /> |
| 21 | + Sign in or create an account |
| 22 | + </Button> |
| 23 | + </a> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + </main> |
| 27 | + <footer className="mx-auto text-center mb-4 text-sm text-muted-foreground space-y-2"> |
| 28 | + <p> |
| 29 | + New to Code Carbon? Learn more at{" "} |
| 30 | + <a |
| 31 | + href="https://codecarbon.io" |
| 32 | + className="text-primary underline" |
| 33 | + > |
| 34 | + codecarbon.io |
| 35 | + </a> |
| 36 | + . |
14 | 37 | </p> |
15 | | - <div className="mt-6"> |
| 38 | + <p> |
| 39 | + Want to contribute? Visit our{" "} |
16 | 40 | <a |
17 | | - href={`${process.env.NEXT_PUBLIC_API_URL}/auth/login?redirect=${process.env.NEXT_PUBLIC_BASE_URL}/home?auth=true`} |
| 41 | + href="https://github.com/mlco2/codecarbon" |
| 42 | + className="text-primary underline" |
18 | 43 | > |
19 | | - <Button className="w-full max-w-[300px]"> |
20 | | - <LogIn className="mr-2 h-5 w-5" /> |
21 | | - Sign in or create an account |
22 | | - </Button> |
| 44 | + GitHub repository |
23 | 45 | </a> |
24 | | - </div> |
25 | | - </div> |
26 | | - </main> |
| 46 | + . |
| 47 | + </p> |
| 48 | + </footer> |
| 49 | + </> |
27 | 50 | ); |
28 | 51 | } |
0 commit comments