diff --git a/index.html b/index.html index 924a3f6..e7c43fc 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,12 @@ - victoria-way-voice - - + Save Victoria Way Carpark - Petition for Enterprise Place Residents + + - - + + diff --git a/src/assets/carpark-hero.jpg b/src/assets/carpark-hero.jpg new file mode 100644 index 0000000..4cbb30d Binary files /dev/null and b/src/assets/carpark-hero.jpg differ diff --git a/src/components/PetitionForm.tsx b/src/components/PetitionForm.tsx new file mode 100644 index 0000000..7d1e52e --- /dev/null +++ b/src/components/PetitionForm.tsx @@ -0,0 +1,59 @@ +import { useState } from "react"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; +import { toast } from "sonner"; + +export const PetitionForm = () => { + const [formData, setFormData] = useState({ + name: "", + email: "", + comment: "", + }); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + // In a real application, this would submit to a backend + toast.success("Thank you for signing! Your voice matters."); + setFormData({ name: "", email: "", comment: "" }); + }; + + return ( +
+
+ setFormData({ ...formData, name: e.target.value })} + required + className="bg-background border-border" + /> +
+
+ setFormData({ ...formData, email: e.target.value })} + required + className="bg-background border-border" + /> +
+
+