diff --git a/package.json b/package.json index 5af3f57..bc4a767 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,7 @@ { - "name": "victoria_way_monorepo", - "version": "0.0.0", -"workspaces": ["./packages/*"] + "name": "victoria_way_monorepo", + "version": "0.0.0", + "workspaces": [ + "./packages/*" + ] } diff --git a/packages/frontend/src/App.tsx b/packages/frontend/src/App.tsx index a6709c2..212fd2b 100644 --- a/packages/frontend/src/App.tsx +++ b/packages/frontend/src/App.tsx @@ -7,6 +7,7 @@ import Index from "./pages/Index"; import Testimonies from "./pages/Testimonies"; import Contact from "./pages/Contact"; import Briefing from "./pages/Briefing"; +import OldIndex from "./pages/OldIndex"; import NotFound from "./pages/NotFound"; import { PetitionStateProvider } from "./state"; @@ -19,6 +20,7 @@ const App = () => ( } /> + } /> } /> } /> } /> diff --git a/packages/frontend/src/components/Navbar.tsx b/packages/frontend/src/components/Navbar.tsx index 0a7073d..2594c00 100644 --- a/packages/frontend/src/components/Navbar.tsx +++ b/packages/frontend/src/components/Navbar.tsx @@ -1,5 +1,5 @@ import { NavLink } from "react-router-dom"; -import { Home, MessageSquare, Mail, FileText } from "lucide-react"; +import { Home, MessageSquare, Mail, FileText, History } from "lucide-react"; export const Navbar = () => { const getNavClass = ({ isActive }: { isActive: boolean }) => @@ -15,7 +15,7 @@ export const Navbar = () => {

- Save Victoria Way Carpark + Victoria Way Carpark

@@ -36,6 +36,10 @@ export const Navbar = () => { Contact + + + Old Homepage +
diff --git a/packages/frontend/src/network/index.ts b/packages/frontend/src/network/index.ts index ef9e732..bea9030 100644 --- a/packages/frontend/src/network/index.ts +++ b/packages/frontend/src/network/index.ts @@ -1,5 +1,6 @@ import { z } from "zod"; import { signedPetitionSchema, signPetitionSchema } from "types"; +import { SIGNATURES } from "@/responses"; const backendUrl = import.meta.env.VITE_BACKEND_URL; @@ -12,10 +13,7 @@ const signedPetitionSignatures = z.array(signedPetitionWithParsedDate); export const getSignatures = async (): Promise< z.infer > => { - const res = await fetch(`${backendUrl}/sign`, { referrer: location.origin }); - - const body = await res.json(); - const validatedBody = signedPetitionSignatures.parse(body); + const validatedBody = signedPetitionSignatures.parse(SIGNATURES); return validatedBody; }; diff --git a/packages/frontend/src/pages/Index.tsx b/packages/frontend/src/pages/Index.tsx index 9186088..7910dc5 100644 --- a/packages/frontend/src/pages/Index.tsx +++ b/packages/frontend/src/pages/Index.tsx @@ -1,15 +1,7 @@ import { Button } from "@/components/ui/button"; import { TestimonialCard } from "@/components/TestimonialCard"; -import { PetitionForm } from "@/components/PetitionForm"; -import { StatCard } from "@/components/StatCard"; -import { Home, Users, Car, AlertTriangle, MessageSquare } from "lucide-react"; +import { MessageSquare, CheckCircle } from "lucide-react"; import carparkHero from "@/assets/victoria-way-carpark.jpg"; -import enterprisePlace from "@/assets/enterprise-place.jpg"; -import dukesCourt from "@/assets/dukes-court.jpg"; -import unusedSite from "@/assets/unused-site.jpg"; -import emptyBuildingParking from "@/assets/empty-building-parking.jpg"; -import asahiBuilding from "@/assets/asahi-building.jpg"; -import doubletreeHilton from "@/assets/doubletree-hilton.jpg"; import { useNavigate } from "react-router-dom"; import { usePetitions } from "@/state"; @@ -39,13 +31,8 @@ const Index = () => { const { signatures } = usePetitions(); - const scrollToPetition = () => { - document.getElementById("petition")?.scrollIntoView({ behavior: "smooth" }); - }; - return (
- {/* Hero Section with Petition */}
{

- Victoria Way Carpark: Woking Needs Parking Solutions + Petition Successful

-

- We support safety-first action, but this area of Woking needs - adequate parking and communication from the council -

-
-

- Sign the Petition -

-

- {signatures.length > 0 && ( - - {signatures.length} people - - )} - {signatures.length > 0 ? " have" : "Be the first to"} signed so - far + +

+ Thank You All for Your Support! +

+

+ Enterprise Place and Woking Borough Council have reached an + agreement to allow residents to use Duke's Court car park. We + welcome this change, and thank the council and Enterprise Place + Residents Association for all their work. +

+

+ I thank each and every single one of you for your support in + signing this petition. It helped more than you know. +

+ {signatures.length > 0 && ( +

+ {signatures.length} people signed this petition

-
- + )}
- {/* Impact Stats */} -
-
-
- - - - -
-
-
- - {/* Affected Area */} -
-
-

- The Affected Area -

-
-
- Victoria Way Carpark -
-

- Victoria Way Carpark -

-

- Closed due to safety concerns -

-
-
-
- Enterprise Place -
-

- Enterprise Place -

-

- Residents and workers without parking -

-
-
-
-
-
- - {/* Problem Statement */} -
-
-
-

- We Thank the Council for Prioritising Safety -

-

- We understand that Victoria Way Carpark was closed due to safety - concerns, and we fully support putting public safety first. The - council made the right decision to act on these concerns. -

-
- -

- The Problems We Face Today -

-
-

- However, since the closure, residents and workers in this area of - Woking have been left without communication or parking solutions. - We are asking the council to address three critical issues: -

-
-

- What Woking Needs: -

-
    -
  • - 1. - - Regular Updates: No information has been - provided on safety surveys, remediation progress, or future - plans for the site - -
  • -
  • - 2. - - Parking in This Area: This part of Woking - needs adequate parking facilities for residents, workers, - and visitors - -
  • -
  • - 3. - - Recognition of Impact: Parents, elderly - residents, disabled individuals, night workers, and local - businesses face daily hardship and safety risks - -
  • -
-
-
-

- This area deserves proper parking: Without - adequate parking facilities, families struggle with shopping, - elderly and disabled residents face accessibility challenges, - night shift workers worry about safety, and local businesses - lose customers. -

-
-
-
-
- - {/* Potential Solutions */} -
-
-

- Potential Solutions for Woking Residents -

- -
-

- The Ideal Solution Already Exists -

-

- The DoubleTree Hilton hotel, located directly in front of - Enterprise Place, has an underground car park that runs beneath - Enterprise Place itself. This existing infrastructure could - provide immediate relief to residents. Why don't Enterprise Place - residents have access to parking that sits directly beneath their - homes? -

-
- -
-

- Short-Term Solutions -

-
-
    -
  • - - - Negotiate with nearby facilities like Dukes Court and the - Asahi Building for shared parking arrangements - -
  • -
  • - - - Convert unused building sites in the area to temporary - parking facilities - -
  • -
  • - - - Utilize underutilized parking at empty buildings in the - vicinity - -
  • -
  • - - - Temporary parking permits for affected Enterprise Place - residents in nearby council-owned spaces - -
  • -
  • - - - Discounted rates at Victoria Place and other town centre - carparks for registered residents - -
  • -
-
-
- -
-

- Long-Term Solutions -

-
-
    -
  • - 1. - - - Provide Enterprise Place residents access to the - DoubleTree Hilton underground car park - {" "} - - the infrastructure already exists beneath their building - -
  • -
  • - 2. - - Repair and reopen Victoria Way Carpark with proper safety - measures - -
  • -
  • - 3. - - Build new multi-storey parking facility in this area of - Woking - -
  • -
  • - 4. - - Dedicated resident parking zones with permit systems - -
  • -
-
-
- -
-

- Available Parking Infrastructure -

-
-
- DoubleTree Hilton with underground parking beneath Enterprise Place -
-

- DoubleTree Hilton - The Ideal Solution -

-

- Underground car park directly beneath Enterprise Place - - existing infrastructure that could solve the problem - immediately -

-
-
- -
- Asahi Building with underground parking -
-

- Asahi Building -

-

- Underground parking facility that could accommodate - residents through negotiation -

-
-
- -
- Unused building site that could be converted to parking -
-

- Unused Building Site -

-

- This nearby site has been closed for a while and could be - temporarily converted to parking -

-
-
- -
- Dukes Court with car park facilities -
-

- Dukes Court -

-

- Nearby facility with parking that could be part of the - solution -

-
-
- -
- Empty building with available parking spaces -
-

- Underutilized Parking -

-

- Empty building with existing parking infrastructure that - could serve residents -

-
-
-
-
- -
-

- We Need Communication -

-

- The council hasn't shared any updates on remediation timelines, - safety surveys, or plans for alternative parking. Regular - communication would help residents plan and understand what - solutions are being considered for this area. -

-
-
-
- - {/* Testimonials */}

- Hear from Your Constituents + Voices That Made a Difference

- Real stories from real Woking residents affected by this decision + Stories from Woking residents who helped make this change happen

@@ -447,52 +96,10 @@ const Index = () => {
- {/* Additional Petition Section */} -
-
-

- Add Your Story -

-

- Share why this matters to you and add your full testimony to the - petition -

- -
-
- - {/* Call to Action */} -
-
-

Every Signature Counts

-

- Help us show Woking Council that this area deserves communication, - updates, and adequate parking facilities -

-
- - -
-
-
- - {/* Footer */}