Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a0cf479
feat(home): refine homepage layout, proportions and card states
viganogabriele Oct 27, 2026
d85d8a4
fix(home): plain archive tiles, content-sized hero, visible carousel …
BIA3IA Nov 2, 2026
67e6669
fix(home): center the hero on screen, restore About us, keep descende…
BIA3IA Nov 2, 2026
74ef0e8
fix(ui): give every card the same white glass border
BIA3IA Nov 2, 2026
b10fcbf
fix(home): scale the About us statement with the viewport like the he…
BIA3IA Nov 2, 2026
1f7131f
feat(team): calmer team sections with non-interactive specialisms (#203)
viganogabriele Nov 2, 2026
5967edc
feat(join): restore Figma's rhythm and drop the extra path cards on /…
viganogabriele Nov 2, 2026
8769168
feat(collabora): hold the page together between the Figma frames; sha…
viganogabriele Nov 2, 2026
63a8c11
feat(contact): align Contattaci with the shared layout and fix the ca…
viganogabriele Nov 2, 2026
3dd3cfb
feat(projects): content-sized project cards and a working collection …
viganogabriele Nov 2, 2026
f141722
feat(groups): fix the results layout and give every link a hover stat…
viganogabriele Nov 2, 2026
f24f8c7
feat(matricole): align Matricole with the shared layout; fix CardIcon…
viganogabriele Nov 2, 2026
320e93a
feat(associations): honest logo fallback and a steadier accordion (#210)
viganogabriele Nov 2, 2026
4584cfe
feat(faqs): open on a non-empty category and tighten the FAQ layout (…
viganogabriele Nov 2, 2026
7fd1b24
feat(guides): align the guides hub and pages, drop the lorem placehol…
viganogabriele Nov 2, 2026
dc46b29
feat(matricole): align the Guida della Matricola page with the shared…
viganogabriele Nov 2, 2026
38abe68
feat(header): readable glass menus, mobile menu fixes and a single h1…
viganogabriele Nov 2, 2026
8579d2f
feat(footer): rebuild the footer on the designers' Figma exploration …
viganogabriele Nov 2, 2026
29374be
fix(a11y): fit the 404 page on phones and declare the page language (…
viganogabriele Nov 2, 2026
42508ca
Merge branch 'main' into feat/home-visual-refinement
BIA3IA Nov 2, 2026
b2f5ba2
feat(footer): refine footer layout and update document links
BIA3IA Nov 2, 2026
00ae4a6
fix: backend-driven home projects, admin how-to, HR applications, tra…
BIA3IA Nov 2, 2026
d219c88
fix(materials): make pending cards interactive with activation notice
BIA3IA Nov 3, 2026
2b56fbe
fix(home): rename about call to action in Italian
BIA3IA Nov 3, 2026
ca2af65
fix: polish chi siamo, storia and join pages, mobile card carousels
BIA3IA Nov 13, 2026
ba9e1f3
Merge branch 'main' of https://github.com/PoliNetworkOrg/web into fix…
BIA3IA Nov 13, 2026
a7dd494
feat(carousel): autoplay every carousel and switch to grids at md sit…
BIA3IA Nov 13, 2026
2d5b1e8
fix(home): tighten section spacing on phones
BIA3IA Nov 13, 2026
3894eda
Refactor code structure for improved readability and maintainability
BIA3IA Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"prestart": "mkdir -p .next/standalone/.next && cp -R .next/static .next/standalone/.next/ && cp -R public .next/standalone/"
},
"dependencies": {
"@polinetwork/auth-kit": "^1.1.0",
"@polinetwork/backend": "^4.0.0",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-tabs": "^1.1.13",
"@polinetwork/auth-kit": "^1.3.0",
"@polinetwork/backend": "9.2.0",
"@radix-ui/react-accordion": "^1.3.1",
"@radix-ui/react-select": "^2.4.1",
"@radix-ui/react-separator": "^1.2.0",
"@radix-ui/react-slot": "^1.5.0",
"@radix-ui/react-tabs": "^1.2.1",
"@t3-oss/env-nextjs": "^0.13.11",
"@tanstack/react-pacer": "^0.22.1",
"@tanstack/react-table": "^8.21.3",
Expand All @@ -32,29 +32,29 @@
"clsx": "^2.1.1",
"cmdk": "1.1.1",
"embla-carousel-react": "^8.6.0",
"geist": "^1.5.1",
"geist": "^1.9.2",
"next": "16.4.1",
"next-themes": "^0.4.6",
"radix-ui": "^1.4.3",
"radix-ui": "^1.8.1",
"react": "19.3.0",
"react-dom": "19.3.0",
"react-hook-form": "^7.68.0",
"react-icons": "^5.6.0",
"react-hook-form": "^7.92.0",
"react-icons": "^5.7.0",
"superjson": "^2.2.6",
"tailwind-merge": "^3.4.0",
"tailwind-merge": "^3.7.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^4.2.1"
"zod": "^4.6.7"
},
"devDependencies": {
"@biomejs/biome": "2.2.5",
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/postcss": "^4.3.5",
"@trpc/server": "11.5.1",
"@types/node": "^24.10.4",
"@types/node": "^24.19.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"cross-env": "^10.1.0",
"postcss": "^8.5.23",
"tailwindcss": "^4.1.14",
"postcss": "^8.5.32",
"tailwindcss": "^4.3.5",
"tw-animate-css": "^1.4.0",
"typescript": "^7.0.2"
},
Expand Down
1,850 changes: 901 additions & 949 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/app/collabora/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default function CollaboraPage() {
<Hero
title="Collabora con Noi"
description="Mettiamo la nostra infrastruttura e i nostri talenti a disposizione di chi ha buone idee per gli studenti del PoliMi"
gradientDescription
/>
</section>
<AboutSection />
Expand Down
6 changes: 1 addition & 5 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ export default function Contact() {
return (
<main className={PAGE_MAIN}>
<section className={`${CONTAINER} ${PAGE_HERO}`}>
<Hero
title="Contattaci"
description="Qualunque sia la tua domanda, PoliNetwork è a disposizione."
gradientDescription
/>
<Hero title="Contattaci" description="Qualunque sia la tua domanda, PoliNetwork è a disposizione." />
</section>
<GroupsSection />
<CollaboraSection />
Expand Down
1 change: 0 additions & 1 deletion src/app/join/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function JoinPage() {
<Hero
title="Unisciti a Noi"
description="Nessuna simulazione, solo progetti reali. Scopri come fare la differenza per migliaia di studenti del PoliMi"
gradientDescription
/>
</section>
<Introduction />
Expand Down
6 changes: 4 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AboutUs } from "@/components/home/about-us"
import { Hero } from "@/components/home/hero"
import { Materials } from "@/components/home/materials"
// Temporarily hidden from the home page
// import { Materials } from "@/components/home/materials"
import { Projects } from "@/components/home/projects"

// The featured projects come from the backend at request time, like /projects
Expand All @@ -10,7 +11,8 @@ export default function Home() {
return (
<main className="w-full">
<Hero />
<Materials />
{/* Temporarily hidden from the home page */}
{/* <Materials /> */}
<Projects />
<AboutUs />
</main>
Expand Down
1 change: 0 additions & 1 deletion src/app/team/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function TeamPage() {
<Hero
title="I Team"
description="PoliNetwork si muove grazie a quattro anime operative distinte, guidate dai rispettivi Capi Dipartimento."
gradientDescription
/>
</section>
{teams.map((team, index) => (
Expand Down
Binary file modified src/assets/images/join/members.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 12 additions & 8 deletions src/components/chi-siamo/answer-section.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FiAward, FiBookOpen, FiUsers } from "react-icons/fi"
import { CardIcon } from "@/components/card-icon"
import { CONTAINER, SECTION_LEAD, SECTION_TITLE } from "@/components/layout/page"
import { PeekCarousel } from "@/components/peek-carousel"

const cards = [
{
Expand All @@ -22,6 +23,8 @@ const cards = [
},
] as const

const CARD_CLASS = "h-full p-0 [&_h3]:text-balance [&_p]:max-w-none"

export function AnswerSection() {
return (
<section className={`${CONTAINER} flex flex-col gap-10 md:gap-14`}>
Expand All @@ -32,17 +35,18 @@ export function AnswerSection() {
</p>
</div>

<div className="grid gap-6 lg:grid-cols-3">
<div className="hidden gap-6 md:grid md:grid-cols-3">
{cards.map((card) => (
<CardIcon
key={card.title}
{...card}
size="compact"
align="start"
className="h-full p-0 [&_h3]:text-balance [&_p]:max-w-none"
/>
<CardIcon key={card.title} {...card} size="compact" align="start" className={CARD_CLASS} />
))}
</div>
{/* Phones: a carousel instead of three stacked cards */}
<PeekCarousel
items={cards}
getKey={(card) => card.title}
render={(card) => <CardIcon {...card} size="compact" align="start" className={CARD_CLASS} />}
className="md:hidden"
/>
</section>
)
}
51 changes: 51 additions & 0 deletions src/components/chi-siamo/copy-tax-code.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"use client"

import { useEffect, useState } from "react"
import { FiCheck, FiCopy } from "react-icons/fi"
import { cn } from "@/lib/utils"

/** The tax code as a button that copies it, so nobody has to retype eleven digits into their tax return. */
export function CopyTaxCode({ value, className }: { value: string; className?: string }) {
const [copied, setCopied] = useState(false)

useEffect(() => {
if (!copied) return
const timeout = setTimeout(() => setCopied(false), 2000)
return () => clearTimeout(timeout)
}, [copied])

async function copy() {
try {
await navigator.clipboard.writeText(value)
setCopied(true)
} catch {
// Clipboard unavailable (plain HTTP or denied): the code stays visible and selectable
}
}

return (
<button
type="button"
onClick={copy}
className={cn(
"group flex w-full items-center justify-between gap-4 rounded-buttonsM border border-white/70 bg-white/60 px-5 py-4 text-left outline-none transition-colors hover:bg-white/90 focus-visible:ring-2 focus-visible:ring-blue-secondary",
className
)}
>
<span className="flex min-w-0 flex-col gap-0.5">
<span className="typo-label-medium text-slate-600">Codice fiscale</span>
<span className="typo-headline-small sm:typo-headline-medium select-all text-blue-secondary tabular-nums tracking-wider">
{value}
</span>
</span>
<span className="typo-label-large flex shrink-0 items-center gap-1.5 text-slate-600 group-hover:text-text-primary">
{copied ? (
<FiCheck aria-hidden className="size-5 text-blue-secondary" />
) : (
<FiCopy aria-hidden className="size-5" />
)}
<span aria-live="polite">{copied ? "Copiato" : "Copia"}</span>
</span>
</button>
)
}
29 changes: 21 additions & 8 deletions src/components/chi-siamo/numbers-section.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FiBook, FiBookOpen, FiHeadphones, FiSend, FiUser, FiUsers } from "react-icons/fi"
import { GradientIcon } from "@/components/gradient-icon"
import { CONTAINER, SECTION_LEAD, SECTION_TITLE } from "@/components/layout/page"
import { PeekCarousel } from "@/components/peek-carousel"
import { Card } from "@/components/ui/card"

const stats = [
Expand All @@ -12,6 +13,18 @@ const stats = [
{ value: "100%", label: "progetti tecnici rilasciati open source", icon: FiBookOpen },
] as const

function StatCard({ stat }: { stat: (typeof stats)[number] }) {
return (
<Card className="h-full w-full flex-row items-center gap-5 p-6">
<GradientIcon icon={stat.icon} className="size-10 shrink-0" />
<div className="flex min-w-0 flex-col gap-1">
<p className="typo-headline-large text-blue-secondary tabular-nums">{stat.value}</p>
<p className="typo-body-large text-pretty">{stat.label}</p>
</div>
</Card>
)
}

export function NumbersSection() {
return (
<section className={`${CONTAINER} flex flex-col gap-10 md:gap-14`}>
Expand All @@ -23,19 +36,19 @@ export function NumbersSection() {
</div>

<div className="flex flex-col gap-8">
<ul className="grid gap-4 sm:grid-cols-2 sm:gap-6 xl:grid-cols-3">
<ul className="hidden gap-6 md:grid md:grid-cols-2 xl:grid-cols-3">
{stats.map((stat) => (
<li key={stat.label}>
<Card className="h-full w-full flex-row items-center gap-5 p-6">
<GradientIcon icon={stat.icon} className="size-10 shrink-0" />
<div className="flex min-w-0 flex-col gap-1">
<p className="typo-headline-large text-blue-secondary tabular-nums">{stat.value}</p>
<p className="typo-body-large text-pretty">{stat.label}</p>
</div>
</Card>
<StatCard stat={stat} />
</li>
))}
</ul>
<PeekCarousel
items={stats}
getKey={(stat) => stat.label}
render={(stat) => <StatCard stat={stat} />}
className="md:hidden"
/>

<p className="typo-body-large lg:text-center">
Dal <span className="text-blue-secondary">2016</span> al fianco degli studenti del PoliMi
Expand Down
70 changes: 52 additions & 18 deletions src/components/chi-siamo/support-section.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,60 @@
import { CopyTaxCode } from "@/components/chi-siamo/copy-tax-code"
import { Glass } from "@/components/glass"
import { CONTAINER, SECTION_TITLE } from "@/components/layout/page"

const TAX_CODE = "97927490157"

const steps = [
"Nella dichiarazione dei redditi (730, Redditi PF o CU) cerca il riquadro del 5x1000.",
"Firma nella sezione dedicata al sostegno degli Enti del Terzo Settore.",
"Sotto la firma, inserisci il nostro codice fiscale.",
] as const

export function SupportSection() {
return (
// `id`: the footer's 5x1000 card links here
<section id="sostienici" className={`${CONTAINER} grid scroll-mt-40 gap-10 lg:grid-cols-2 lg:gap-16`}>
<div className="flex min-w-0 flex-col gap-6">
<h2 className={SECTION_TITLE}>Sostieni PoliNetwork</h2>
<p className="typo-body-large max-w-140 text-pretty">
Se vuoi supportare PoliNetwork economicamente, puoi destinarci il 5x1000 nella dichiarazione dei redditi. Si
tratta di una quota IRPEF che verseresti comunque, e che puoi scegliere di indirizzare a noi senza alcun costo
aggiuntivo.
</p>
</div>
<div className="flex min-w-0 flex-col gap-4 lg:pt-3">
<h3 className="typo-headline-medium text-balance">
Il tuo <span className="text-blue-secondary">5x1000</span> può fare la differenza
</h3>
<p className="typo-body-large max-w-120 text-pretty">
Nella sezione dedicata agli Enti del Terzo Settore, indica il nostro codice fiscale:
</p>
<p className="typo-headline-small text-blue-secondary tabular-nums tracking-wide">97927490157</p>
</div>
<section id="sostienici" className={`${CONTAINER} scroll-mt-40`}>
<Glass className="relative grid gap-10 overflow-hidden rounded-rectangles border-white/60 bg-background-blur p-6 sm:p-10 lg:grid-cols-2 lg:gap-16 lg:p-14">
{/* A soft blue glow behind the figure, so the panel doesn't read as one more flat card */}
<div
aria-hidden
className="-top-32 -right-32 pointer-events-none absolute size-96 rounded-full bg-blue-secondary/15 blur-3xl"
/>

<div className="relative flex min-w-0 flex-col gap-6">
<h2 className={SECTION_TITLE}>Sostieni PoliNetwork</h2>
<p className="typo-body-large max-w-140 text-pretty">
Se vuoi supportare PoliNetwork economicamente, puoi destinarci il 5x1000 nella dichiarazione dei redditi. Si
tratta di una quota IRPEF che verseresti comunque, e che puoi scegliere di indirizzare a noi senza alcun
costo aggiuntivo.
</p>

<ol className="flex flex-col gap-4">
{steps.map((step, index) => (
<li key={step} className="flex items-start gap-4">
<span className="typo-label-large flex size-8 shrink-0 items-center justify-center rounded-full bg-linear-to-b from-blue-secondary to-blue-primary text-white tabular-nums">
{index + 1}
</span>
<p className="typo-body-large text-pretty pt-0.5">{step}</p>
</li>
))}
</ol>
</div>

<div className="relative flex min-w-0 flex-col justify-center gap-6">
<p
aria-hidden
className="typo-display-large sm:typo-display-extralarge bg-linear-to-b from-blue-secondary to-blue-primary bg-clip-text text-transparent tabular-nums leading-none"
>
5x1000
</p>
<h3 className="typo-headline-medium text-balance">Il tuo 5x1000 può fare la differenza</h3>
<CopyTaxCode value={TAX_CODE} />
<p className="typo-body-medium text-pretty text-slate-600">
Non costa nulla e non sostituisce l’8x1000 o il 2x1000: puoi sceglierli tutti.
</p>
</div>
</Glass>
</section>
)
}
22 changes: 7 additions & 15 deletions src/components/collabora/about-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import groupIcon from "@/assets/icons/collabora/group.svg"
import handshakeIcon from "@/assets/icons/collabora/handshake.svg"
import schoolIcon from "@/assets/icons/collabora/school.svg"
import { CONTAINER, SECTION_LEAD, SECTION_TITLE } from "@/components/layout/page"
import { PeekCarousel } from "@/components/peek-carousel"
import { Button } from "@/components/ui/button"
import { Carousel, CarouselContent, CarouselDots, CarouselItem } from "@/components/ui/carousel"
import { cn } from "@/lib/utils"
import { InfoCard, type InfoCardData } from "./info-card"
import { Aside, Highlight } from "./section"
Expand Down Expand Up @@ -98,20 +98,12 @@ export function AboutSection() {
))}
</div>

{/* Bleeds to the screen edges like the Figma carousel, so the next card peeks in */}
<Carousel opts={{ containScroll: false }} className="w-screen max-w-none self-center md:hidden">
<CarouselContent className="-ml-2">
{cards.map((card) => (
<CarouselItem key={card.title} className="basis-auto pl-2">
<InfoCard card={card} className="h-26.25 w-62.75" />
</CarouselItem>
))}
</CarouselContent>
{/* The dots only render once Embla has measured the slides: reserve their row to avoid a layout shift */}
<div className="mt-6 h-4">
<CarouselDots />
</div>
</Carousel>
<PeekCarousel
items={cards}
getKey={(card) => card.title}
render={(card) => <InfoCard card={card} className="h-full min-h-26.25" />}
className="md:hidden"
/>
</div>
</section>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/contact-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type ContactCardData = {

export function ContactCard({ title, description, email }: ContactCardData) {
return (
<Card className="h-auto w-full gap-4 p-6">
<Card className="h-full w-full gap-4 p-6">
<CardHeader>
<CardTitle className="typo-headline-small xl:typo-headline-extrasmall">{title}</CardTitle>
</CardHeader>
Expand Down
Loading
Loading