Skip to content

Commit 59b54a0

Browse files
feat(web): add landing page (#77)
Co-authored-by: Chenxin Yan <[email protected]> Co-authored-by: Chenxin Yan <[email protected]>
1 parent 7b3e86c commit 59b54a0

File tree

11 files changed

+463
-140
lines changed

11 files changed

+463
-140
lines changed

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"cmdk": "^1.1.1",
3737
"convex": "^1.29.0",
3838
"date-fns": "^4.1.0",
39+
"framer-motion": "^12.23.24",
3940
"lucide-react": "^0.553.0",
4041
"next": "16.0.1",
4142
"next-themes": "^0.4.6",

apps/web/public/feature.png

397 KB
Loading

apps/web/public/features2.png

233 KB
Loading

apps/web/public/logo-dark.png

34.9 KB
Loading

apps/web/public/logo.png

33 KB
Loading

apps/web/src/app/(Landing)/layout.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/web/src/app/(Landing)/page.tsx

Lines changed: 0 additions & 111 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { SignedIn, SignedOut, UserButton } from "@clerk/nextjs";
2+
import Image from "next/image";
3+
import Link from "next/link";
4+
import { Button } from "@/components/ui/button";
5+
6+
export default function HomeLayout({
7+
children,
8+
}: Readonly<{
9+
children: React.ReactNode;
10+
}>) {
11+
return (
12+
<>
13+
<header className="flex justify-between w-full items-center p-10 px-12 gap-4 h-16">
14+
<div>
15+
<Image
16+
src="/logo.png"
17+
alt="AlbertPlus"
18+
width={120}
19+
height={32}
20+
className="h-8 w-auto block dark:hidden"
21+
/>
22+
<Image
23+
src="/logo-dark.png"
24+
alt="AlbertPlus"
25+
width={120}
26+
height={32}
27+
className="h-8 w-auto hidden dark:block"
28+
/>
29+
</div>
30+
31+
<SignedOut>
32+
<Button asChild variant="default">
33+
<Link href="/sign-in">Sign In</Link>
34+
</Button>
35+
</SignedOut>
36+
37+
<SignedIn>
38+
<UserButton />
39+
</SignedIn>
40+
</header>
41+
42+
{children}
43+
</>
44+
);
45+
}

0 commit comments

Comments
 (0)