Files
HaBit/app/page.tsx
Harkamal Randhawa 93af01dec1 Rename daily quiz to check-in and add collapsible journal calendar.
Replace user-facing quiz wording with daily check-in, add journal history on the Bit page with month browsing and read-only entry modals, and keep legacy quiz routes redirecting to the new anchor.
2026-05-24 10:20:03 -06:00

72 lines
2.5 KiB
TypeScript

import { Suspense } from "react";
import { LandingPetPreview } from "@/components/landing/landing-pet-preview";
import { LandingHeroActions } from "@/components/layout/landing-hero-actions";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
export default function Home() {
return (
<main className="flex flex-1 flex-col pb-nav">
<div className="mx-auto flex w-full max-w-5xl flex-1 flex-col gap-12 px-5 py-12">
<section className="grid gap-10 lg:grid-cols-[1.1fr_0.9fr] lg:items-center">
<div className="space-y-6">
<h1 className="text-4xl font-semibold tracking-tight sm:text-5xl">
Build habits. Grow your digital self.
</h1>
<p className="max-w-xl text-base text-muted-foreground sm:text-lg">
HaBit turns daily check-ins, wellness sliders, and journaling into
a simple game. Keep streaks alive, take your once-per-day check-in,
and watch your bit change with you.
</p>
<Suspense fallback={null}>
<LandingHeroActions />
</Suspense>
</div>
<Card className="border-dashed">
<CardContent className="flex flex-col items-center gap-6 pt-8">
<LandingPetPreview />
<div className="space-y-2 text-center">
<p className="text-sm font-medium">Your daily loop</p>
<p className="text-sm text-muted-foreground">
Habits, wellness, journal, check-in, shop.
</p>
</div>
</CardContent>
</Card>
</section>
<section className="grid gap-4 md:grid-cols-3">
{[
{
title: "Daily habits",
description: "Custom checkmarks and streak tracking.",
},
{
title: "Wellness + journal",
description: "Sliders and a daily reflection box.",
},
{
title: "A bit that responds",
description: "Your digital self reflects your daily input.",
},
].map((feature) => (
<Card key={feature.title}>
<CardHeader>
<CardTitle className="text-base">{feature.title}</CardTitle>
<CardDescription>{feature.description}</CardDescription>
</CardHeader>
</Card>
))}
</section>
</div>
</main>
);
}