Skip to content

Commit bb5fc28

Browse files
committed
feat: implement complete landing page with light/dark theme support
- Add LandingPage component with fixed navigation, hero section, features, and footer - Implement 5 feature sections with icons and responsive design - Add profile section with social media links (Twitter, Instagram, LinkedIn) - Create build section with Cursor AI branding and profile box - Add comprehensive light/dark mode color system with improved contrast - Include responsive design with mobile-first approach - Add all necessary assets: images, icons, and illustrations - Update app routing to show landing page for unauthenticated users - Enhance CSS variables system for theme-aware styling - Implement hover/active states for all interactive elements
1 parent 348e258 commit bb5fc28

20 files changed

Lines changed: 752 additions & 10 deletions

app/globals.css

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
--fg-default: #191919;
1212
--fg-soft: #414141;
1313
--bg-default: #ffffff;
14+
--accent: #b12c2f;
15+
--bg-active: #F4F4F4;
16+
--nav-border: #191919;
17+
--hero-gradient-start: rgba(249, 249, 249, 0.00);
18+
--hero-gradient-end: #F9F9F9;
19+
--divider-color: #E8E8E8;
20+
--hero-border-color: #000000;
21+
--hero-shadow-color: rgba(0, 0, 0, 0.08);
1422
--fg-default-rgb: 25, 25, 25;
1523
--fg-soft-rgb: 65, 65, 65;
1624
--bg-default-rgb: 255, 255, 255;
@@ -19,11 +27,19 @@
1927
@media (prefers-color-scheme: dark) {
2028
:root {
2129
--fg-default: #FFFFFF;
22-
--fg-soft: #D6D6D6;
23-
--bg-default: #191919;
30+
--fg-soft: #B8B8B8;
31+
--bg-default: #0F0F0F;
32+
--accent: #FF6B6B;
33+
--bg-active: #1F1F1F;
34+
--nav-border: #333333;
35+
--hero-gradient-start: rgba(31, 31, 31, 0.00);
36+
--hero-gradient-end: #1F1F1F;
37+
--divider-color: #333333;
38+
--hero-border-color: #FFFFFF;
39+
--hero-shadow-color: rgba(255, 255, 255, 0.1);
2440
--fg-default-rgb: 255, 255, 255;
25-
--fg-soft-rgb: 214, 214, 214;
26-
--bg-default-rgb: 25, 25, 25;
41+
--fg-soft-rgb: 184, 184, 184;
42+
--bg-default-rgb: 15, 15, 15;
2743
}
2844
}
2945

app/page.tsx

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"use client";
22

3-
import AuthGuard from "@/components/AuthGuard";
43
import Footer from "@/components/Footer";
4+
import LandingPage from "@/components/LandingPage";
5+
56
import TodoItem, { Todo, TodoStatus } from "@/components/TodoItem";
67
import TopBar from "@/components/TopBar";
78
import { useAuth } from "@/contexts/AuthContext";
@@ -313,9 +314,34 @@ function HomeContent() {
313314
}
314315

315316
export default function Home() {
316-
return (
317-
<AuthGuard>
318-
<HomeContent />
319-
</AuthGuard>
320-
);
317+
const { user, loading } = useAuth();
318+
319+
// Show loading state
320+
if (loading) {
321+
return (
322+
<div className="min-h-screen bg-bg-default flex items-center justify-center">
323+
<svg
324+
width="27"
325+
height="27"
326+
viewBox="0 0 54 54"
327+
fill="none"
328+
xmlns="http://www.w3.org/2000/svg"
329+
className="text-fg-default animate-spin"
330+
>
331+
<path
332+
d="M28.2812 0.00671387C42.5975 0.673119 53.9999 12.4906 54 26.9716C54 41.8805 41.9138 53.9666 27.0049 53.9667C12.0959 53.9667 0.00976562 41.8805 0.00976562 26.9716C0.00986887 12.5116 11.3791 0.70742 25.666 0.00964355C11.9114 0.720031 9.04005 12.519 9.04004 26.9706C9.04004 41.8795 12.096 53.9656 27.0049 53.9657C41.9138 53.9657 43.8477 41.8795 43.8477 26.9706C43.8477 12.4981 42.0255 0.685921 28.2812 0.00671387Z"
333+
fill="currentColor"
334+
/>
335+
</svg>
336+
</div>
337+
);
338+
}
339+
340+
// Show landing page for unauthenticated users
341+
if (!user) {
342+
return <LandingPage />;
343+
}
344+
345+
// Show todo app for authenticated users
346+
return <HomeContent />;
321347
}

0 commit comments

Comments
 (0)