"use client" import { Navbar } from "@/components/landing/navbar" import { Footer } from "@/components/landing/footer" import { LandingHero } from "@/components/landing/hero-section" import { ComicCreationForm } from "@/components/landing/comic-creation-form" import { useState, useEffect } from "react" export default function Home() { const [currentPage, setCurrentPage] = useState(1) const [prompt, setPrompt] = useState("") const [style, setStyle] = useState("noir") const [characterFiles, setCharacterFiles] = useState([]) const [isLoading, setIsLoading] = useState(false) // Auto-loop through pages every 6 seconds useEffect(() => { const interval = setInterval(() => { setCurrentPage((prev) => (prev === 3 ? 1 : prev + 1)) }, 6000) return () => clearInterval(interval) }, []) const goToPage = (page: number) => { setCurrentPage(page) } return (
{/* Background gradient blurs */}
{/* Left: Controls & Input */}
{/* Right: Visual Preview / Canvas */}
{/* Dot grid background */}
{/* Background floating comics - less prominent */}
Background comic
Background comic
Background comic
Background comic
{/* Page transition container */}
{/* Page 1 */}
Comic preview page 1
Page 1
{'"The city needs a hero..."'}
{/* Page 2 */}
Comic preview page 2
Page 2
{'"And a hero shall rise!"'}
Comic preview page 3
Page 3
{'"The battle begins!"'}
) }