@@ -22,37 +22,42 @@ const featuredCards = [
2222] as const
2323
2424const quickLinks = [
25- { title : "Dispense" , icon : FiBook , size : "sm" , href : "#" } ,
26- { title : "Esami" , icon : FiFileText , size : "sm" , href : "#" } ,
27- { title : "Appunti" , icon : FiClipboard , size : "sm" , href : "#" } ,
25+ { title : "Dispense" , icon : FiBook , size : { base : "xs" , sm : "sm" } , href : "#" } ,
26+ { title : "Esami" , icon : FiFileText , size : { base : "xs" , sm : "sm" } , href : "#" } ,
27+ { title : "Appunti" , icon : FiClipboard , size : { base : "xs" , sm : "sm" } , href : "#" } ,
2828] as const
2929
3030export function Materials ( ) {
3131 return (
32- < section className = "mx-auto flex max-w-500 flex-col-reverse gap-8 px-4 py-10 sm:px-8 sm:py-12 lg:gap-10 lg:px-12 xl:flex-row xl:items-start xl:gap-12 xl:px-16 2xl:gap-32 2xl:px-32" >
33- < div className = "flex grow flex-col gap-5 lg:gap-6 xl:gap-8 xl:pt-12 2xl:pt-44" >
34- < div className = "grid gap-12 md:grid-cols-2 2xl:gap-20" >
32+ < section className = "mx-auto flex max-w-400 flex-col-reverse gap-24 p-11 sm:px-20 sm:py-28 2xl:flex-row 2xl:items-start 2xl:gap-32" >
33+ < div className = "flex grow flex-col gap-5 sm:gap-6 2xl:gap-8 2xl:pt-44" >
34+ < div className = "grid gap-4 sm:grid-cols-2 sm:gap-12 2xl:gap-20" >
35+ { /* TODO sotto sm usare le altre card fatte da Diubi */ }
3536 { featuredCards . map ( ( card ) => (
3637 < CardIcon key = { card . title } { ...card } className = "h-full" />
3738 ) ) }
3839 </ div >
3940
40- < div className = "grid gap-4 sm: grid-cols-2 sm: gap-12 lg:grid-cols-3 2xl:gap-20" >
41+ < div className = "grid grid-cols-3 gap-4 sm:gap-12 2xl:gap-20" >
4142 { quickLinks . map ( ( card ) => (
4243 < CardIcon key = { card . title } { ...card } className = "h-full" />
4344 ) ) }
4445 </ div >
4546 </ div >
4647
47- < div className = "flex flex-col items-start gap-8 xl:justify-self-end " >
48- < h2 className = "typo-display-large sm:typo-display-extralarge w-fit bg-linear-to-b from-text-primary to-text-secondary bg-clip-text py-4 text-transparent" >
48+ < div className = "flex flex-col items-center gap-8 text-center sm:ml-auto sm:items-start sm:text-start " >
49+ < h2 className = "typo-display-large sm:typo-display-extralarge bg-linear-to-b from-text-primary to-text-secondary bg-clip-text text-transparent sm:py-4 " >
4950 Materials
5051 </ h2 >
51- < p className = "typo-body-large max-w-lg" >
52+ < p className = "typo-body-large hidden max-w-lg sm:block " >
5253 Il piu grande archivio didattico creato dagli studenti per gli studenti del Politecnico di Milano. Cerca tra
5354 migliaia di appunti, dispense, temi d'esame e molto altro. Carica i tuoi file per far crescere la community e
5455 trova tutto cio che ti serve, organizzato per corso di studi.
5556 </ p >
57+ < p className = "typo-body-large max-w-lg sm:hidden" >
58+ Il più grande archivio didattico degli studenti del Politecnico. Trova appunti, dispense ed esami, oppure
59+ carica i tuoi file per far crescere la community.
60+ </ p >
5661 < Button variant = "primary" size = "lg" className = "w-fit" >
5762 Scopri di piu
5863 < FiArrowUpRight />
0 commit comments