Skip to content

Commit f12b4a5

Browse files
authored
feat(webapp): add more info to main login page (#875)
* feat(webapp): add more info to main login page * fix: html semantics + less verbose
1 parent ccb309b commit f12b4a5

2 files changed

Lines changed: 40 additions & 17 deletions

File tree

webapp/src/app/favicon.ico

-10.3 KB
Binary file not shown.

webapp/src/app/page.tsx

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,51 @@
11
import { Button } from "@/components/ui/button";
2-
import { fiefAuth } from "@/helpers/fief";
32
import { LogIn } from "lucide-react";
43

54
export default async function Home() {
65
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+
.
1437
</p>
15-
<div className="mt-6">
38+
<p>
39+
Want to contribute? Visit our{" "}
1640
<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"
1843
>
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
2345
</a>
24-
</div>
25-
</div>
26-
</main>
46+
.
47+
</p>
48+
</footer>
49+
</>
2750
);
2851
}

0 commit comments

Comments
 (0)