-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaterials.tsx
More file actions
68 lines (63 loc) · 2.87 KB
/
materials.tsx
File metadata and controls
68 lines (63 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { FiArrowUpRight, FiBook, FiBookOpen, FiClipboard, FiFileText, FiUploadCloud } from "react-icons/fi"
import { CardIcon } from "@/components/card-icon"
import { Button } from "@/components/ui/button"
const featuredCards = [
{
title: "Carica",
description:
"Hai appunti, dispense o temi d'esame che vuoi condividere? Caricali qui! Il tuo contributo é prezioso per aiutare migliaia di colleghi con materiale aggiornato!",
icon: FiUploadCloud,
size: "lg",
href: "#",
},
{
title: "Visualizza",
description:
"Cerca cio che ti serve per il tuo prossimo esame. Naviga tra i corsi di studio e trova facilmente appunti, esercizi e dispense condivisi da altri studenti come te.",
icon: FiBookOpen,
size: "lg",
href: "#",
},
] as const
const quickLinks = [
{ title: "Dispense", icon: FiBook, size: { base: "xs", sm: "sm" }, href: "#" },
{ title: "Esami", icon: FiFileText, size: { base: "xs", sm: "sm" }, href: "#" },
{ title: "Appunti", icon: FiClipboard, size: { base: "xs", sm: "sm" }, href: "#" },
] as const
export function Materials() {
return (
<section className="mx-auto flex max-w-400 flex-col-reverse gap-24 p-11 py-28 sm:px-20 2xl:flex-row 2xl:items-start 2xl:gap-32">
<div className="flex grow flex-col gap-5 sm:gap-6 2xl:gap-8 2xl:pt-44">
<div className="grid gap-4 sm:grid-cols-2 sm:gap-12 2xl:gap-20">
{/* TODO sotto sm usare le altre card fatte da Diubi */}
{featuredCards.map((card) => (
<CardIcon key={card.title} {...card} className="h-full" />
))}
</div>
<div className="grid grid-cols-3 gap-4 sm:gap-12 2xl:gap-20">
{quickLinks.map((card) => (
<CardIcon key={card.title} {...card} className="h-full" />
))}
</div>
</div>
<div className="flex flex-col items-center gap-8 text-center sm:ml-auto sm:items-start sm:text-start">
<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">
Materials
</h2>
<p className="typo-body-large hidden max-w-lg sm:block">
Il piu grande archivio didattico creato dagli studenti per gli studenti del Politecnico di Milano. Cerca tra
migliaia di appunti, dispense, temi d'esame e molto altro. Carica i tuoi file per far crescere la community e
trova tutto cio che ti serve, organizzato per corso di studi.
</p>
<p className="typo-body-large max-w-lg sm:hidden">
Il più grande archivio didattico degli studenti del Politecnico. Trova appunti, dispense ed esami, oppure
carica i tuoi file per far crescere la community.
</p>
<Button variant="primary" size="lg" className="w-fit">
Scopri di piu
<FiArrowUpRight />
</Button>
</div>
</section>
)
}