Skip to content

Commit 7e540a7

Browse files
committed
Update events stuff
1 parent 70e0509 commit 7e540a7

File tree

6 files changed

+28
-22
lines changed

6 files changed

+28
-22
lines changed

src/components/footer.astro

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ const links: Array<FooterLink> = [
99
description: "ML-Purdue Homepage",
1010
icon: "mdi:home",
1111
},
12-
{
13-
url: "https://github.com/ML-Purdue",
14-
description: "View source on GitHub",
15-
icon: "fa-brands:github-alt",
16-
},
1712
{
1813
url: "https://discord.gg/KphYQFSVsu",
1914
description: "ML-Purdue Discord",
2015
icon: "fa-brands:discord",
2116
},
17+
{
18+
url: "https://github.com/ML-Purdue",
19+
description: "View source on GitHub",
20+
icon: "fa-brands:github-alt",
21+
},
2222
{
2323
url: "https://www.instagram.com/mlpurdue/",
2424
description: "ML-Purdue on IG",
@@ -30,12 +30,18 @@ const links: Array<FooterLink> = [
3030
icon: "fa-brands:linkedin",
3131
},
3232
];
33+
34+
export interface Props {
35+
ignoreHome?: boolean
36+
}
37+
const { ignoreHome = false } = Astro.props;
38+
3339
---
3440

3541
<footer class="relative flex h-64 items-center justify-center">
36-
<ul class="relative grid grid-cols-2 gap-4 sm:grid-cols-5">
42+
<ul class=`relative grid grid-cols-2 gap-4 sm:grid-cols-${ignoreHome ? 4 : 5}`>
3743
{
38-
links.map((link) => (
44+
links.slice(ignoreHome ? 1 : 0).map((link) => (
3945
<li>
4046
<a
4147
class="flex h-16 w-16 items-center justify-center rounded-full border-2 border-current p-4"

src/components/header.astro

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,11 @@ export interface Props {
99
const navItems: Array<NavItem> = [
1010
{ title: "About", url: "/about" },
1111
{ title: "Projects", url: "https://jacob-zietek.notion.site/cb2f4b5c6c9a46d584ffbab4eb322336?v=9b9044caf9f243e1803d058673700963" },
12-
{
13-
title: "Events",
14-
sublinks: [
15-
{ title: "Events Calendar", url: "/events" },
16-
{ title: "DagsHub Hackathon", url: "/dagshub-hackathon" },
17-
{ title: "Coffee Chats", url: "/coffee-chats" },
18-
{ title: "Archive", url: "/events-archive" },
19-
],
20-
},
12+
{ title: "Events", url: "/#eventscalendar" },
2113
{ title: "AIGuide Blog", url: "/blog"},
2214
{ title: "Sponsor", url: "/sponsor"},
2315
{ title: "Contact", url: "/contact" },
24-
{ title: "Apply", url: "/apply" },
16+
{ title: "Archive", url: "/events-archive" },
2517
];
2618
const { fixed } = Astro.props;
2719
---

src/components/intro.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import Logo from "./logo.astro";
1010
ML@Purdue is the central club for <span class="text-primary">AI/ML career growth</span> for Purdue students. ML@Purdue supports careers in industry, research, and entrepreneurial ventures through projects and various events. The club serves to connect Purdue students to AI/ML leaders in and out of Purdue.
1111
</Fragment>
1212
</ContentSection>
13-
13+
<ContentSection id="eventscalendar" title="Events Calendar">
14+
<iframe id="events" style="width:75vw; height:65vh;filter:invert(0.9) saturate(2) hue-rotate(232deg)" src="https://calendar.google.com/calendar/u/0/embed?src=3951dbb2399906412eb63e032ca35716de8ccd8a871bfbfb89008309123454e0@group.calendar.google.com&ctz=America/Indiana/Indianapolis" />
15+
</ContentSection>
1416
<ContentSection title="Achievements" id="achievements">
1517
<div
1618
data-achievements

src/components/splash.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import Starfield from "~/components/starfield.astro";
33
import mlPurdueLogo from "~/assets/logo-main.webp";
4+
import Footer from "./footer.astro";
45
const widths = [450, 800];
56
const sizes = "(min-width: 640px) 42vw, 67vw";
67
---
@@ -17,6 +18,9 @@ const sizes = "(min-width: 640px) 42vw, 67vw";
1718
<div class="gradient-text text-center font-extrabold text-8xl">
1819
ML@Purdue
1920
</div>
21+
<div>
22+
<Footer ignoreHome={true}></Footer>
23+
</div>
2024
</h2>
2125
</div>
2226
</section>

src/pages/dagshub-hackathon.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ const description = "ML@Purdue DagsHub Hackathon";
223223
let hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
224224
let minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
225225
let seconds = Math.floor((diff % (1000 * 60)) / 1000);
226-
dayElements[0].innerHTML = days;
227-
dayElements[1].innerHTML = hours;
228-
dayElements[2].innerHTML = minutes;
229-
dayElements[3].innerHTML = seconds;
226+
dayElements[0].innerHTML = Math.max(0,days);
227+
dayElements[1].innerHTML = Math.max(0,hours);
228+
dayElements[2].innerHTML = Math.max(0,minutes);
229+
dayElements[3].innerHTML = Math.max(0,seconds);
230230
}
231231
updateDate();
232232
setInterval(updateDate, 1000);

src/pages/events-archive.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ const description = "ML@Purdue Website";
3737
<p>This page contains information and recordings from past ML@Purdue events. For upcoming events, please see the <a class="underline" href='/events'>events page</a>.</p>
3838
</ContentSection>
3939
<Spacer y={48} />
40+
<a href="/coffee-chats" class="underline decoration-dotted decoration-fuchsia-500"><ContentSection id="coffechats" title="Coffee Chats"></ContentSection></a>
41+
<a href="/dagshub-hackathon" class="underline decoration-dotted decoration-fuchsia-500"><ContentSection id="dagshubhackathon" title="DagsHub Hackathon"></ContentSection></a>
4042
<ContentSection id="workshops" title="Beginner Workshops">
4143

4244
<h1 class="font-bold text-xl text-center">Workshop Materials</h1>

0 commit comments

Comments
 (0)