import { useAuth } from '../contexts/AuthContext'; import Layout from '../components/Layout'; import HeroSection from '../components/home/HeroSection'; import UserProfileCard from '../components/home/UserProfileCard'; import FeatureGrid from '../components/home/FeatureGrid'; import ProfileCompletionCard from '../components/home/ProfileCompletionCard'; import InfoSection from '../components/home/InfoSection'; import { Link } from 'react-router-dom'; import { Button } from '@/components/ui/button'; import { Home } from 'lucide-react'; const HomePage = () => { const { user, profile } = useAuth(); return (
{/* Decorative background elements */}
{/* Header Navigation Bar */}
{/* Logo */}
Periodicity Logo
{/* APK Download Link */} Click here to download the APK for android {/* Navigation Buttons */} {!user && (
)}
{/* Main Content Area */}
{/* Hero Section */} {/* User Profile Information */} {user && profile && } {/* Features Grid */} {/* Welcome Message for Logged In Users without profile info */} {user && (!profile || (!profile.name && !profile.age)) && } {/* Info Section */} {!user && }
); }; export default HomePage;