"use client" import { useState, useEffect } from 'react' import { motion } from 'framer-motion' import { Shield, Lock, Zap, Globe, ArrowUp, Key } from 'lucide-react' import { PasswordGenerator } from '@/components/PasswordGenerator' import { FAQ } from '@/components/FAQ' import { FloatingCTA } from '@/components/FloatingCTA' export default function HomePage() { const [showScrollTop, setShowScrollTop] = useState(false) useEffect(() => { const handleScroll = () => { setShowScrollTop(window.scrollY > 400) } window.addEventListener('scroll', handleScroll) return () => window.removeEventListener('scroll', handleScroll) }, []) const scrollToTop = () => { window.scrollTo({ top: 0, behavior: 'smooth' }) } const features = [ { icon: Lock, title: "End-to-End Client-Side Encryption", description: "Your passwords are generated locally in your browser. Nothing is ever sent to our servers." }, { icon: Zap, title: "Works Offline (PWA)", description: "Install as an app and generate passwords even without an internet connection." }, { icon: Globe, title: "100% Open Source", description: "Transparent code that you can audit, modify, and contribute to on GitHub." } ] return (
{/* Hero Section */}

Free Offline Secure Password Generator

Generate strong, unique passwords in seconds — fully client-side, private, and open-source.

{/* Primary CTA */} Generate Password
{/* Features Section */}

Why PassMaster is Safer

Built with privacy and security as the foundation, not an afterthought.

{features.map((feature, index) => (

{feature.title}

{feature.description}

))}
{/* Password Generator Section */}

Generate Your Strong Password

Customize your password settings and generate secure passwords instantly.

{/* FAQ Section */}

Frequently Asked Questions

Everything you need to know about PassMaster and password security.

{/* Floating CTA */} {/* Scroll to Top Button */} {showScrollTop && ( )}
) }