|
6 | 6 | import EventCard from './(components)/event-card.svelte';
|
7 | 7 | import ProfileCard from './(components)/profile-card.svelte';
|
8 | 8 |
|
9 |
| - $: year = new Date().getFullYear(); |
| 9 | + const year = new Date().getFullYear(); |
10 | 10 | </script>
|
11 | 11 |
|
12 | 12 | <svelte:head>
|
13 | 13 | <title>Overview - RIVAlumni Portal</title>
|
14 | 14 | </svelte:head>
|
15 | 15 |
|
16 | 16 | <div
|
17 |
| - class="p-4 sm:p-6 |
| 17 | + class="p-6 sm:p-8 |
18 | 18 | flex flex-col
|
19 |
| - gap-4 md:gap-6"> |
| 19 | + gap-8 md:gap-10"> |
20 | 20 | <nav>
|
21 | 21 | <Breadcrumb.Root class="flex flex-row">
|
22 | 22 | <Breadcrumb.List>
|
|
39 | 39 | </Breadcrumb.Root>
|
40 | 40 | </nav>
|
41 | 41 |
|
42 |
| - <!-- 3-column grid layout --> |
43 | 42 | <div
|
44 |
| - class="grid auto-rows-max |
45 |
| - items-start gap-8 lg:col-span-2"> |
46 |
| - <!-- Content --> |
47 |
| - <div |
48 |
| - class="grid gap-4 |
49 |
| - grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"> |
50 |
| - <ProfileCard /> |
| 43 | + class="grid gap-4 |
| 44 | + grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"> |
| 45 | + <ProfileCard /> |
51 | 46 |
|
52 |
| - <Card.Root> |
53 |
| - <Card.Header class="pb-4"> |
54 |
| - <Card.Description>Upcoming events</Card.Description> |
55 |
| - <Card.Title class="text-4xl">4</Card.Title> |
56 |
| - </Card.Header> |
57 |
| - <Card.Content> |
58 |
| - <p class="text-xs text-muted-foreground"> |
59 |
| - for the year of {year} |
60 |
| - </p> |
61 |
| - </Card.Content> |
62 |
| - </Card.Root> |
63 |
| - |
64 |
| - <Card.Root> |
65 |
| - <Card.Header class="pb-4"> |
66 |
| - <Card.Description>Upcoming volunteer hours</Card.Description> |
67 |
| - <Card.Title class="text-4xl">1,593</Card.Title> |
68 |
| - </Card.Header> |
69 |
| - <Card.Content> |
70 |
| - <p class="text-xs text-muted-foreground"> |
71 |
| - to be claimed for the year of {year} |
72 |
| - </p> |
73 |
| - </Card.Content> |
74 |
| - </Card.Root> |
75 |
| - </div> |
| 47 | + <Card.Root> |
| 48 | + <Card.Header class="pb-4"> |
| 49 | + <Card.Description>Upcoming events</Card.Description> |
| 50 | + <Card.Title class="text-4xl">4</Card.Title> |
| 51 | + </Card.Header> |
| 52 | + <Card.Content> |
| 53 | + <p class="text-xs text-muted-foreground"> |
| 54 | + for the year of {year} |
| 55 | + </p> |
| 56 | + </Card.Content> |
| 57 | + </Card.Root> |
76 | 58 |
|
77 |
| - <div class="flex flex-col"> |
78 |
| - <div class="space-y-1"> |
79 |
| - <h2 class="text-2xl font-semibold tracking-tight">Upcoming Events</h2> |
80 |
| - <p class="text-sm text-muted-foreground"> |
81 |
| - Next few events that are happening for the year |
| 59 | + <Card.Root> |
| 60 | + <Card.Header class="pb-4"> |
| 61 | + <Card.Description>Upcoming volunteer hours</Card.Description> |
| 62 | + <Card.Title class="text-4xl">1,593</Card.Title> |
| 63 | + </Card.Header> |
| 64 | + <Card.Content> |
| 65 | + <p class="text-xs text-muted-foreground"> |
| 66 | + to be claimed for the year of {year} |
82 | 67 | </p>
|
83 |
| - </div> |
| 68 | + </Card.Content> |
| 69 | + </Card.Root> |
| 70 | + </div> |
84 | 71 |
|
85 |
| - <Separator class="my-4" /> |
| 72 | + <div class="flex flex-col"> |
| 73 | + <div class="space-y-1"> |
| 74 | + <h2 class="text-2xl font-semibold tracking-tight">Upcoming Events</h2> |
| 75 | + <p class="text-sm text-muted-foreground"> |
| 76 | + Next few events that are happening for the year |
| 77 | + </p> |
| 78 | + </div> |
86 | 79 |
|
87 |
| - <div |
88 |
| - class="grid gap-8 sm:gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> |
89 |
| - <EventCard |
90 |
| - eventName="RIVA Homecoming 2024" |
91 |
| - eventLocation="Rivervale Primary School" |
92 |
| - backgroundImage="/homecoming.webp" /> |
| 80 | + <Separator class="my-4" /> |
93 | 81 |
|
94 |
| - <EventCard |
95 |
| - eventName="Teachers' Day 2024" |
96 |
| - eventLocation="Rivervale Primary School" |
97 |
| - backgroundImage="/teachers-day.webp" /> |
98 |
| - </div> |
| 82 | + <div class="grid gap-6 sm:gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> |
| 83 | + <EventCard |
| 84 | + eventName="RIVA Homecoming 2024" |
| 85 | + eventLocation="Rivervale Primary School" |
| 86 | + backgroundImage="/homecoming.webp" /> |
| 87 | + |
| 88 | + <EventCard |
| 89 | + eventName="Teachers' Day 2024" |
| 90 | + eventLocation="Rivervale Primary School" |
| 91 | + backgroundImage="/teachers-day.webp" /> |
99 | 92 | </div>
|
| 93 | + </div> |
100 | 94 |
|
101 |
| - <div class="flex flex-col"> |
102 |
| - <div class="space-y-1"> |
103 |
| - <h2 class="text-2xl font-semibold tracking-tight">Past Events</h2> |
104 |
| - <p class="text-sm text-muted-foreground"> |
105 |
| - Past few events that have already happened |
106 |
| - </p> |
107 |
| - </div> |
| 95 | + <div class="flex flex-col"> |
| 96 | + <div class="space-y-1"> |
| 97 | + <h2 class="text-2xl font-semibold tracking-tight">Past Events</h2> |
| 98 | + <p class="text-sm text-muted-foreground"> |
| 99 | + Past few events that have already happened |
| 100 | + </p> |
| 101 | + </div> |
108 | 102 |
|
109 |
| - <Separator class="my-4" /> |
| 103 | + <Separator class="my-4" /> |
110 | 104 |
|
111 |
| - <div |
112 |
| - class="grid gap-8 sm:gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> |
113 |
| - <EventCard |
114 |
| - eventName="RIVA Homecoming 2024" |
115 |
| - eventLocation="Rivervale Primary School" |
116 |
| - backgroundImage="/homecoming.webp" /> |
| 105 | + <div class="grid gap-6 sm:gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> |
| 106 | + <EventCard |
| 107 | + eventName="RIVA Homecoming 2024" |
| 108 | + eventLocation="Rivervale Primary School" |
| 109 | + backgroundImage="/homecoming.webp" /> |
117 | 110 |
|
118 |
| - <EventCard |
119 |
| - eventName="Teachers' Day 2024" |
120 |
| - eventLocation="Rivervale Primary School" |
121 |
| - backgroundImage="/teachers-day.webp" /> |
122 |
| - </div> |
| 111 | + <EventCard |
| 112 | + eventName="Teachers' Day 2024" |
| 113 | + eventLocation="Rivervale Primary School" |
| 114 | + backgroundImage="/teachers-day.webp" /> |
123 | 115 | </div>
|
124 | 116 | </div>
|
125 | 117 | </div>
|
0 commit comments