diff --git a/app/rent/page.tsx b/app/rent/page.tsx new file mode 100644 index 0000000..7399d02 --- /dev/null +++ b/app/rent/page.tsx @@ -0,0 +1,94 @@ +"use client"; +import LinkButton from "@/components/linkButton"; +import { Button } from "@/components/ui/button"; +import React, { useState } from "react"; + +interface Ad { + title: string; + description: string; + location: string; + contact: string; +} + +export default function RentMePage() { + const [ads, setAds] = useState([ + { + title: "Turkamerat", + description: + "Bli med på tur i skog og mark. Jeg har godt humør og mye energi.", + location: "Oslo", + contact: "OleBrumm@example.com", + }, + { + title: "Eventplanlegger", + description: + "Kreativ og strukturert, hjelper deg med å planlegge ditt neste arrangement.", + location: "Bergen", + contact: "johanne@herheim.com", + }, + { + title: "Fotograf", + description: + "Erfaren fotograf tilgjengelig for portretter og arrangementer.", + location: "Stavanger", + contact: "Karo@gil.com", + }, + { + title: "Musiker", + description: + "Talentfull gitarist som kan spille på små og store arrangementer.", + location: "Trondheim", + contact: "Henrik@lomo.com", + }, + { + title: "Hundepasser", + description: "Elsker hunder, passer både store og små hunder.", + location: "Oslo", + contact: "Mille@hoeg.com", + }, + ]); + + const addAd = () => { + const newAd = { + title: "Hjelp med flytting", + description: "Sterk og arbeidsvillig, kan hjelpe med flytting og bæring.", + location: "Bergen", + contact: "flyttehjelp@kompis.com", + }; + setAds([...ads, newAd]); + }; + + return ( +
+
+
+

+ Lei en kompis +

+ {ads.map((ad, index) => ( +
+

{ad.title}

+

{ad.location}

+

{ad.description}

+

Kontakt: {ad.contact}

+ +
+ ))} + +
+
+
+ ); +} diff --git a/components/footer.tsx b/components/footer.tsx index b7c28d8..01b26c2 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -8,13 +8,16 @@ export function Footer() {