diff --git a/src/app/associations/page.tsx b/src/app/associations/page.tsx index e4760a9..fb50f0a 100644 --- a/src/app/associations/page.tsx +++ b/src/app/associations/page.tsx @@ -14,7 +14,7 @@ export default async function AssociationsPage() { const associations = await getAllAssociations() return ( -
+
diff --git a/src/app/chi-siamo/page.tsx b/src/app/chi-siamo/page.tsx index 0fdae58..60286f0 100644 --- a/src/app/chi-siamo/page.tsx +++ b/src/app/chi-siamo/page.tsx @@ -14,7 +14,8 @@ export const metadata: Metadata = { export default function ChiSiamoPage() { return ( -
+ // Narrower content column (1200px, as in Figma): `page-container` caps its padding on this variable +
diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index 256adc9..c5aa405 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -11,7 +11,7 @@ export const metadata: Metadata = { export default function Contact() { return ( -
+
+
diff --git a/src/app/groups/page.tsx b/src/app/groups/page.tsx index 1b6a4e1..b3c35c1 100644 --- a/src/app/groups/page.tsx +++ b/src/app/groups/page.tsx @@ -27,30 +27,28 @@ export const metadata: Metadata = { export default function Home() { return ( -
-
-
-

- Groups -

- -
+
+
+

+ Groups +

+ +
-
- {groups.map((group) => ( - - ))} -
+
+ {groups.map((group) => ( + + ))}
) diff --git a/src/app/guides/page.tsx b/src/app/guides/page.tsx index e9d039f..36326e2 100644 --- a/src/app/guides/page.tsx +++ b/src/app/guides/page.tsx @@ -26,29 +26,27 @@ export const metadata: Metadata = { export default function GuidesHome() { return ( -
-
-
-

- Guide -

-
+
+
+

+ Guide +

+
-
- {guides.map((guide) => ( - - ))} -
+
+ {guides.map((guide) => ( + + ))}
) diff --git a/src/app/matricole/guida/page.tsx b/src/app/matricole/guida/page.tsx index 91334bf..09926d0 100644 --- a/src/app/matricole/guida/page.tsx +++ b/src/app/matricole/guida/page.tsx @@ -22,8 +22,8 @@ export default async function GuidaMatricolaPage() { const formattedDate = new Intl.DateTimeFormat("it-IT", { dateStyle: "long" }).format(new Date(guida.date)) return ( -
-
+
+

Guida della Matricola

diff --git a/src/app/matricole/page.tsx b/src/app/matricole/page.tsx index 9d1e36d..2e7355e 100644 --- a/src/app/matricole/page.tsx +++ b/src/app/matricole/page.tsx @@ -10,7 +10,7 @@ export const metadata: Metadata = { export default function MatricolePage() { return ( -
+
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 532b729..390f82b 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -6,7 +6,7 @@ import { Button } from "@/components/ui/button" export default function NotFound() { return ( -
+
diff --git a/src/app/page.tsx b/src/app/page.tsx index 0296908..a2612c0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,7 +5,7 @@ import { Projects } from "@/components/home/projects" export default function Home() { return ( -
+
diff --git a/src/app/projects/page.tsx b/src/app/projects/page.tsx index fbfb0d7..5120d5a 100644 --- a/src/app/projects/page.tsx +++ b/src/app/projects/page.tsx @@ -19,7 +19,7 @@ export default async function Home() { const deprecated = projects.filter((project) => project.category === "deprecated") return ( -
+
diff --git a/src/components/chi-siamo/answer-section.tsx b/src/components/chi-siamo/answer-section.tsx index 0e718fc..84fd5ef 100644 --- a/src/components/chi-siamo/answer-section.tsx +++ b/src/components/chi-siamo/answer-section.tsx @@ -23,7 +23,7 @@ const cards = [ export function AnswerSection() { return ( -
+

La nostra risposta diff --git a/src/components/chi-siamo/history-section.tsx b/src/components/chi-siamo/history-section.tsx index 4a2fbf4..7212a28 100644 --- a/src/components/chi-siamo/history-section.tsx +++ b/src/components/chi-siamo/history-section.tsx @@ -23,7 +23,7 @@ const blocks = [ export function HistorySection() { return ( -
+
{blocks.map((block) => ( diff --git a/src/components/chi-siamo/numbers-section.tsx b/src/components/chi-siamo/numbers-section.tsx index 947591b..a4e5412 100644 --- a/src/components/chi-siamo/numbers-section.tsx +++ b/src/components/chi-siamo/numbers-section.tsx @@ -13,7 +13,7 @@ const stats = [ export function NumbersSection() { return ( -
+

I numeri diff --git a/src/components/chi-siamo/path-section.tsx b/src/components/chi-siamo/path-section.tsx index 2b83534..3967c25 100644 --- a/src/components/chi-siamo/path-section.tsx +++ b/src/components/chi-siamo/path-section.tsx @@ -18,7 +18,7 @@ const steps = [ export function PathSection() { return ( -
+

Il tuo percorso, sempre al tuo fianco

diff --git a/src/components/chi-siamo/problem-section.tsx b/src/components/chi-siamo/problem-section.tsx index d2bb57d..85daeee 100644 --- a/src/components/chi-siamo/problem-section.tsx +++ b/src/components/chi-siamo/problem-section.tsx @@ -9,7 +9,7 @@ const questions = [ export function ProblemSection() { return ( -
+

Il problema diff --git a/src/components/chi-siamo/support-section.tsx b/src/components/chi-siamo/support-section.tsx index 8f3493c..3d099ef 100644 --- a/src/components/chi-siamo/support-section.tsx +++ b/src/components/chi-siamo/support-section.tsx @@ -4,7 +4,7 @@ import { GradientIcon } from "@/components/gradient-icon" export function SupportSection() { return ( -
+
diff --git a/src/components/chi-siamo/vision-section.tsx b/src/components/chi-siamo/vision-section.tsx index ec6ba6d..895b233 100644 --- a/src/components/chi-siamo/vision-section.tsx +++ b/src/components/chi-siamo/vision-section.tsx @@ -4,7 +4,7 @@ import { Button } from "@/components/ui/button" export function VisionSection() { return ( -
+

Un Politecnico in cui nessuno studente resti indietro per mancanza di{" "} informazioni. diff --git a/src/components/contact/collabora-section.tsx b/src/components/contact/collabora-section.tsx index e035b39..979a42a 100644 --- a/src/components/contact/collabora-section.tsx +++ b/src/components/contact/collabora-section.tsx @@ -4,7 +4,7 @@ import { Button } from "@/components/ui/button" export function CollaboraSection() { return ( -
+

Vuoi sviluppare un progetto insieme a noi? diff --git a/src/components/contact/email-section.tsx b/src/components/contact/email-section.tsx index dfa71c1..3cf2840 100644 --- a/src/components/contact/email-section.tsx +++ b/src/components/contact/email-section.tsx @@ -43,19 +43,21 @@ const contactCards: ContactCardData[] = [ 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. -

+
+
+

+ 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 index 37440fc..a0666a7 100644 --- a/src/components/contact/groups-section.tsx +++ b/src/components/contact/groups-section.tsx @@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button" export function GroupsSection() { return ( -
+

Hai mille dubbi sul Poli? diff --git a/src/components/faqs/faqs-tabs.tsx b/src/components/faqs/faqs-tabs.tsx index ea36a7e..0b82f28 100644 --- a/src/components/faqs/faqs-tabs.tsx +++ b/src/components/faqs/faqs-tabs.tsx @@ -32,12 +32,15 @@ export function FaqsTabs({ categories }: { categories: FaqCategory[] }) { })) return ( -
+
{tabs.length === 0 ? (

Nessuna FAQ disponibile al momento.

) : ( - + {tabs.map((tab) => ( diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index 58568b4..d3bce5d 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -7,8 +7,8 @@ import { CardMultipleIcons } from "../card-multiple-icons" export function Footer() { return ( -
-

+
+

Keep in touch!

@@ -74,7 +74,7 @@ export function Footer() { />

-
+
Unisciti a noi! Contattaci @@ -89,7 +89,7 @@ export function Footer() {
-
+
diff --git a/src/components/groups/extra-groups.tsx b/src/components/groups/extra-groups.tsx index 6140f2f..53ac1ab 100644 --- a/src/components/groups/extra-groups.tsx +++ b/src/components/groups/extra-groups.tsx @@ -12,38 +12,40 @@ export async function ExtraGroups() { ) return ( -
-
- - - -
-

Gruppi Extra

-
-
+
+
+
+ + + +
+

Gruppi Extra

+
+
- {extraGroups.length > 0 ? ( -
- {extraGroups.map((g) => ( - - ))} -
- ) : ( -

- Nessun gruppo extra disponibile al momento. -

- )} + {extraGroups.length > 0 ? ( +
+ {extraGroups.map((g) => ( + + ))} +
+ ) : ( +

+ Nessun gruppo extra disponibile al momento. +

+ )} +
) } diff --git a/src/components/groups/groups-result.tsx b/src/components/groups/groups-result.tsx index c1b3ba6..2f3063b 100644 --- a/src/components/groups/groups-result.tsx +++ b/src/components/groups/groups-result.tsx @@ -41,14 +41,14 @@ function GroupSection({ title, groups }: { title: string; groups: VisibleGroup[] if (merged.length === 0) return null return ( -
+

{title}

{merged.length} Gruppi

-
+
{merged.map((g) => ( ))} @@ -102,64 +102,66 @@ export async function GroupsResult({ courseGroups.length > 0 return ( -
-
- - - -
-

{courseName}

-

- Laurea {currentLevel.name} -

-
- - - -
+
+
+
+ + + +
+

{courseName}

+

+ Laurea {currentLevel.name} +

+
+ + + +
- {(mergedSiteGroups.length > 0 || - mergedSchoolGroups.length > 0 || - mergedLevelGroups.length > 0 || - mergedGeneralCourseGroups.length > 0) && ( -
- {mergedSiteGroups.map((g) => ( - - ))} - {mergedSchoolGroups.map((g) => ( - - ))} - {mergedLevelGroups.map((g) => ( - - ))} - {mergedGeneralCourseGroups.map((g) => ( - - ))} -
- )} + {(mergedSiteGroups.length > 0 || + mergedSchoolGroups.length > 0 || + mergedLevelGroups.length > 0 || + mergedGeneralCourseGroups.length > 0) && ( +
+ {mergedSiteGroups.map((g) => ( + + ))} + {mergedSchoolGroups.map((g) => ( + + ))} + {mergedLevelGroups.map((g) => ( + + ))} + {mergedGeneralCourseGroups.map((g) => ( + + ))} +
+ )} - {cohorts.map((cohort) => ( - - ))} + {cohorts.map((cohort) => ( + + ))} - {!hasAnyGroup && ( -

- Nessun gruppo disponibile al momento per questo corso. -

- )} + {!hasAnyGroup && ( +

+ Nessun gruppo disponibile al momento per questo corso. +

+ )} +
) } diff --git a/src/components/guides/general-guides.tsx b/src/components/guides/general-guides.tsx index 48b6290..9a15127 100644 --- a/src/components/guides/general-guides.tsx +++ b/src/components/guides/general-guides.tsx @@ -5,35 +5,35 @@ import { LOREM_GUIDES } from "@/components/guides/constants" export function GeneralGuides() { return ( -
-
- - - -
-

Guide Generali

-
- - - -
+
+
+
+ + + +
+

Guide Generali

+
+ + + +
- {LOREM_GUIDES.length > 0 ? ( - - ) : ( -

- Nessuna guida disponibile al momento. -

- )} + {LOREM_GUIDES.length > 0 ? ( + + ) : ( +

Nessuna guida disponibile al momento.

+ )} +
) } diff --git a/src/components/guides/guides-result.tsx b/src/components/guides/guides-result.tsx index bf98f20..f1c57f2 100644 --- a/src/components/guides/guides-result.tsx +++ b/src/components/guides/guides-result.tsx @@ -29,38 +29,40 @@ export async function GuidesResult({ const courseName = humanizeSlug(course) return ( -
-
- - - -
-

{courseName}

-

- Laurea {currentLevel.name} -

-
- - - -
+
+
+
+ + + +
+

{courseName}

+

+ Laurea {currentLevel.name} +

+
+ + + +
- {LOREM_GUIDES.length > 0 ? ( - - ) : ( -

- Nessuna guida disponibile al momento per questo corso. -

- )} + {LOREM_GUIDES.length > 0 ? ( + + ) : ( +

+ Nessuna guida disponibile al momento per questo corso. +

+ )} +
) } diff --git a/src/components/header/desktop-layout.tsx b/src/components/header/desktop-layout.tsx index f4a8007..c08c2de 100644 --- a/src/components/header/desktop-layout.tsx +++ b/src/components/header/desktop-layout.tsx @@ -21,7 +21,7 @@ export const DesktopLayout = ({ logoOnly = false }: { logoOnly?: boolean }) => { const customHoverEffectClass = "hover:underline focus-visible:underline decoration-1 decoration-blue-secondary " return ( -
+
{ }, [logoOnly]) return ( - +
{!logoOnly && ( diff --git a/src/components/home/about-us.tsx b/src/components/home/about-us.tsx index f879f91..615309e 100644 --- a/src/components/home/about-us.tsx +++ b/src/components/home/about-us.tsx @@ -4,8 +4,8 @@ import { Button } from "@/components/ui/button" export function AboutUs() { return ( -
-

+
+

PoliNetwork unisce gli studenti del Poli: gruppi, risorse e supporto, tutti in un'unica community.

diff --git a/src/components/home/hero.tsx b/src/components/home/hero.tsx index 6f28b27..236b2b8 100644 --- a/src/components/home/hero.tsx +++ b/src/components/home/hero.tsx @@ -5,8 +5,8 @@ import { GroupSearch } from "./group-search" export function Hero() { return ( -
-
+
+

Trova gruppi, risorse e supporto tra gli studenti del Polimi

diff --git a/src/components/home/materials.tsx b/src/components/home/materials.tsx index 102a8a1..8396d88 100644 --- a/src/components/home/materials.tsx +++ b/src/components/home/materials.tsx @@ -36,7 +36,7 @@ const quickLinks = [ export function Materials() { return ( -
+
{/* Desktop Cards */}
diff --git a/src/components/home/projects.tsx b/src/components/home/projects.tsx index b66fafc..3ecaccb 100644 --- a/src/components/home/projects.tsx +++ b/src/components/home/projects.tsx @@ -31,7 +31,7 @@ const featuredCards = [ export function Projects() { return ( -
+

15+ Projects diff --git a/src/components/layout/TextChildrenSection.tsx b/src/components/layout/TextChildrenSection.tsx index be1436c..e1c3352 100644 --- a/src/components/layout/TextChildrenSection.tsx +++ b/src/components/layout/TextChildrenSection.tsx @@ -73,14 +73,7 @@ export default function TextChildrenLayout({ : "min-[1616px]:flex-row" return ( -
+

diff --git a/src/components/matricole/faqs.tsx b/src/components/matricole/faqs.tsx index 9643cab..0e2653b 100644 --- a/src/components/matricole/faqs.tsx +++ b/src/components/matricole/faqs.tsx @@ -4,7 +4,7 @@ import { accordionItems } from "./constants" export function FAQsPage() { return ( -
+

Domande Frequenti tra le Matricole

diff --git a/src/components/matricole/guides.tsx b/src/components/matricole/guides.tsx index d952b32..582567a 100644 --- a/src/components/matricole/guides.tsx +++ b/src/components/matricole/guides.tsx @@ -4,8 +4,8 @@ import { guides, hub, materiali, techTools } from "./constants" export function MatricoleGuides() { return ( -
-
+
+

Guide e Utility

diff --git a/src/components/matricole/intro.tsx b/src/components/matricole/intro.tsx index a0c7363..1e58d7a 100644 --- a/src/components/matricole/intro.tsx +++ b/src/components/matricole/intro.tsx @@ -1,24 +1,19 @@ import { CardIcon } from "@/components/card-icon" +import { Hero } from "@/components/ui/hero" import { resources } from "./constants" export function MatricoleIntro() { return ( -
-
-
-

- Matricole -

-

- Ecco una raccolta curata di risorse utili, guide e strumenti per supportare il tuo percorso. -

-
+
+ -
- {resources.map((resource) => ( - - ))} -
+
+ {resources.map((resource) => ( + + ))}
) diff --git a/src/components/projects/collection.tsx b/src/components/projects/collection.tsx index 6134501..c863396 100644 --- a/src/components/projects/collection.tsx +++ b/src/components/projects/collection.tsx @@ -18,7 +18,7 @@ export function Collection({ projects }: { projects: Project[] }) { const visibleProjects = expanded ? projects : projects.slice(0, INITIAL_PROJECT_COUNT) return ( -
+

Esplora la raccolta completa dei progetti diff --git a/src/components/projects/community-news.tsx b/src/components/projects/community-news.tsx index ee7440e..cbaa0e2 100644 --- a/src/components/projects/community-news.tsx +++ b/src/components/projects/community-news.tsx @@ -8,10 +8,10 @@ type Project = ApiOutput["web"]["projects"]["getAllProjects"][number] export function CommunityNews({ projects }: { projects: Project[] }) { return ( -
+
-
+

Le novità della community diff --git a/src/components/projects/deprecated.tsx b/src/components/projects/deprecated.tsx index 34a0fd0..f20a5d9 100644 --- a/src/components/projects/deprecated.tsx +++ b/src/components/projects/deprecated.tsx @@ -17,8 +17,8 @@ export function Deprecated({ projects }: { projects: Project[] }) { const visibleProjects = expanded ? projects : projects.slice(0, INITIAL_PROJECT_COUNT) return ( -
-
+
+

Progetti deprecati

diff --git a/src/components/projects/upload.tsx b/src/components/projects/upload.tsx index 5bcd90b..22d0980 100644 --- a/src/components/projects/upload.tsx +++ b/src/components/projects/upload.tsx @@ -26,7 +26,7 @@ const cards = [ export function Upload() { return ( -

+

Hai un'idea?

diff --git a/src/components/wizard/wizard-shell.tsx b/src/components/wizard/wizard-shell.tsx index f4adad5..99e5965 100644 --- a/src/components/wizard/wizard-shell.tsx +++ b/src/components/wizard/wizard-shell.tsx @@ -33,8 +33,8 @@ export function WizardShell({ const router = useRouter() return ( -
- +
+
s keep spanning the whole viewport. + */ +@utility page-container { + width: 100%; + padding-inline: max(var(--spacing-gutter), calc((100% - var(--container-page)) / 2)); +} + +/* `page-container` for a whole
: also clears the fixed header and leaves room before the footer. */ +@utility page-layout { + width: 100%; + padding-inline: max(var(--spacing-gutter), calc((100% - var(--container-page)) / 2)); + padding-top: var(--spacing-page-top); + padding-bottom: var(--spacing-section); } @layer base {