import { useState } from "react"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; export default function HomePage() { const [sections, setSections] = useState([ { title: "Welcome", content: "This is keepingkidssafe.info" }, { title: "Mission", content: "Our mission is to provide clear resources and guidance for child safety." }, ]); const [newTitle, setNewTitle] = useState(""); const [newContent, setNewContent] = useState(""); const addSection = () => { if (!newTitle || !newContent) return; setSections([...sections, { title: newTitle, content: newContent }]); setNewTitle(""); setNewContent(""); }; return (

Keeping Kids Safe

{sections.map((section, idx) => (

{section.title}

{section.content}

))}

Add New Section

setNewTitle(e.target.value)} className="mb-2" /> setNewContent(e.target.value)} className="mb-2" />

Subscribe to our Newsletter

); }