diff --git a/public/contact-group.png b/public/contact-group.png new file mode 100644 index 0000000..ca3862e Binary files /dev/null and b/public/contact-group.png differ diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx new file mode 100644 index 0000000..256adc9 --- /dev/null +++ b/src/app/contact/page.tsx @@ -0,0 +1,25 @@ +import type { Metadata } from "next" +import { CollaboraSection } from "@/components/contact/collabora-section" +import { EmailSection } from "@/components/contact/email-section" +import { GroupsSection } from "@/components/contact/groups-section" +import { Hero } from "@/components/ui/hero" + +export const metadata: Metadata = { + title: "Contattaci", + description: "Contatta PoliNetwork o trova il gruppo del tuo corso al Politecnico di Milano.", +} + +export default function Contact() { + return ( +
+ + + + +
+ ) +} diff --git a/src/components/contact-card.tsx b/src/components/contact-card.tsx new file mode 100644 index 0000000..742a816 --- /dev/null +++ b/src/components/contact-card.tsx @@ -0,0 +1,22 @@ +import type { ReactNode } from "react" +import { Card, CardBottomButton, CardContent, CardHeader, CardTitle } from "@/components/ui/card" + +export type ContactCardData = { + title: string + description: ReactNode + email: string +} + +export function ContactCard({ title, description, email }: ContactCardData) { + return ( + + + {title} + + {description} + + {email} + + + ) +} diff --git a/src/components/contact/collabora-section.tsx b/src/components/contact/collabora-section.tsx new file mode 100644 index 0000000..ac68fdc --- /dev/null +++ b/src/components/contact/collabora-section.tsx @@ -0,0 +1,30 @@ +import { FiArrowUpRight } from "react-icons/fi" +import { Button } from "@/components/ui/button" + +export function CollaboraSection() { + return ( +
+
+

+ Vuoi sviluppare un progetto insieme a noi? +

+ +
+

+ Siamo sempre felici di{" "} + collaborare con aziende o associazioni studentesche per portare + agli studenti del PoliMi eventi e attività di valore. +

+

+ Consulta la pagina dedicata per scoprire come possiamo unire le forze! +

+
+ + +
+
+ ) +} diff --git a/src/components/contact/email-section.tsx b/src/components/contact/email-section.tsx new file mode 100644 index 0000000..e39276c --- /dev/null +++ b/src/components/contact/email-section.tsx @@ -0,0 +1,67 @@ +import Link from "next/link" +import { ContactCard, type ContactCardData } from "../contact-card" + +const contactCards: ContactCardData[] = [ + { + title: "Informazioni Generali", + description: "Per qualsiasi domanda su PoliNetwork, sui nostri strumenti o servizi.", + email: "info@polinetwork.org", + }, + { + title: "Consiglio Direttivo", + description: "Per richieste formali, segnalazioni di problemi o questioni che non rientrano nelle categorie sopra.", + email: "direttivo@polinetwork.org", + }, + { + title: "Candidature", + description: ( + <> + Se vuoi candidarti come admin o come membro di un team, ti consigliamo di passare dal form disponibile nella + pagina{" "} + + Struttura + + . + + ), + email: "hr@polinetwork.org", + }, + { + title: "Collaborazioni", + description: ( + <> + Se sei un'azienda o associazione e vuoi proporre una collaborazione, puoi anche consultare la pagina{" "} + + Collabora con Noi + {" "} + per capire cosa offriamo. + + ), + email: "events@polinetwork.org", + }, +] + +export function EmailSection() { + return ( +
+

+ Hai una richiesta specifica? +

+

+ Per tutto il resto,{" "} + + puoi scriverci direttamente + + . +
+ Qui sotto trovi i contatti in base al tipo di richiesta. +

+ +
+ {contactCards.map((card) => ( + + ))} +
+
+ ) +} diff --git a/src/components/contact/groups-section.tsx b/src/components/contact/groups-section.tsx new file mode 100644 index 0000000..37440fc --- /dev/null +++ b/src/components/contact/groups-section.tsx @@ -0,0 +1,40 @@ +import Image from "next/image" +import Link from "next/link" +import { FiArrowUpRight } from "react-icons/fi" +import { Button } from "@/components/ui/button" + +export function GroupsSection() { + return ( +
+
+

+ Hai mille dubbi sul Poli? +
+ Siamo pronti ad aiutarti! +

+ +

+ Il modo più rapido per ottenere risposte su esami, burocrazia universitaria o sulla vita al Politecnico è{" "} + + entrare nel gruppo del tuo corso + + , su Telegram o su WhatsApp, dove gli admin sono presenti ogni giorno. +

+ +
+ +
+ Foto di gruppo della community PoliNetwork +
+
+ ) +} diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index f403e40..c45c487 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -28,7 +28,7 @@ export function Footer() {
Unisciti a noi! - Contattaci + Contattaci Qualche problema?
Segnalalo! diff --git a/src/components/home/hero.tsx b/src/components/home/hero.tsx index a2d679f..6f28b27 100644 --- a/src/components/home/hero.tsx +++ b/src/components/home/hero.tsx @@ -6,7 +6,7 @@ import { GroupSearch } from "./group-search" export function Hero() { return (
-
+

Trova gruppi, risorse e supporto tra gli studenti del Polimi

diff --git a/src/components/ui/hero.tsx b/src/components/ui/hero.tsx index 18d0b47..c270c5c 100644 --- a/src/components/ui/hero.tsx +++ b/src/components/ui/hero.tsx @@ -9,7 +9,7 @@ export function Hero({ }) { return (
-

+

{title}