"use client"; import Link from "next/link"; import { Compass, Loader2, LogIn, Sparkles } from "lucide-react"; import { useAuth } from "@/components/auth/auth-provider"; import { SadhnaStreakCTA } from "@/components/sadhna/streak-cta"; import { VaniOfTheDayCTA } from "@/components/vani/vani-of-the-day-cta"; import { HomeFeed } from "@/components/feed/home-feed"; import { QuizzesCTA } from "@/components/quiz/quizzes-cta"; /** * / — the Home (Feed) gate. * * • Signed in → the daily sādhana streak on top, then the global, * personalised infinite-scroll feed of community posts. * • Anonymous → a welcome screen: sign in (the feed is personalised, so an * account is the prerequisite) or jump into the Knowledgebase. */ export default function HomePage() { const { user, loading } = useAuth(); if (loading) { return (
); } if (user) { return ( // Narrower single-column feed on desktop (≈Instagram width) — the cards // are fluid, so the column width is what sizes the square media. On // mobile this max-width is wider than the viewport, so it's full-bleed // as before.
{/* A compact sādhana tile beside a wider Vāṇī of the Day: the streak is a daily habit you already know how to reach, so it needs only a recognisable mark; the vāṇī changes daily and earns the room to say what it is. */}
{/* Only while something is left to take. */}
); } return (

Welcome to Prabhupāda Says

Sign in to follow seekers and see their quotes in your feed, or jump straight into the Knowledgebase — the original, unedited writings of His Divine Grace A.C. Bhaktivedanta Swami Prabhupāda.

Sign in to view feed Explore Knowledgebase

No account?{" "} Create one {" "} — it's free.

{/* Daily sādhana streak + Vāṇī of the day — entry points for visitors. */}
{/* A compact sādhana tile beside a wider Vāṇī of the Day: the streak is a daily habit you already know how to reach, so it needs only a recognisable mark; the vāṇī changes daily and earns the room to say what it is. */}
{/* Only while something is left to take. */}
); }