Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: /archive Page enhancements #104

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
54 changes: 0 additions & 54 deletions components/ArchiveItem.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions components/ArchiveSection.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default function Navbar() {
<Link className={styles.hoverable} href="/blog">
<li>Blog</li>
</Link>
{/* <Link className={styles.hoverable} href="/archive">
<Link className={styles.hoverable} href="/archive">
<li>Archive</li>
</Link> */}
</Link>
</ul>
</nav>
);
Expand Down
67 changes: 39 additions & 28 deletions data/archive.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export interface ArchivedEvent {
export interface EventArchive {
name: string;
type: string;
date: Date;
time: string;
location?: string;
description: string;
recording: string;
Expand All @@ -12,90 +10,103 @@ export interface ArchivedEvent {
}

export interface SeriesArchive {
seriesName: string;
events: ArchivedEvent[];
name: string;
events: EventArchive[];
}

export interface QuarterArchive {
name: string;
series: SeriesArchive[];
}

const archive = [
const archive: QuarterArchive[] = [
/*WINTER2023*/
{
name: "Winter 2023",
series: [
{
seriesName: "Cyber Academy: Web Hacking",
name: "Cyber Academy: Web Hacking",
events: [
{
name: "Week 6: SQL Injection",
date: new Date('5/9/24'),
location: "Math Sciences 5200",
description:
"Event description Event descriptionEvent description Event description",
"Event description event description event description event description event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
tags: ["web", "sql", "hacking"],
graphicPath: "/images/archive.svg",
},
{
name: "XSS",
name: "Week 5: XSS",
date: new Date('5/9/24'),
location: "Math Sciences 5200",
description: "Event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
tags: ["web", "xss", "hacking"],
graphicPath: "/images/archive.svg",
},
{
name: "XSS",
name: "Example 3",
date: new Date('5/9/24'),
description: "Event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
tags: ["web", "xss", "hacking"],
graphicPath: "/images/archive.svg",
tags: ["test3"],
graphicPath: "/images/cyber-symposium.png",
},
{
name: "XSS",
name: "Example 2",
date: new Date('5/9/24'),
location: "Math Sciences 5200",
description: "Event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
tags: ["web", "xss", "hacking"],
graphicPath: "/images/archive.svg",
tags: ["test2"],
graphicPath: "/images/cyber-symposium.png",
},
{
name: "XSS",
name: "Example 1",
date: new Date('5/9/24'),
location: "Math Sciences 5200",
description: "Event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
tags: ["web", "xss", "hacking"],
tags: ["test1"],
graphicPath: "/images/archive.svg",
},
],
},

{
name: "Special Topics",
events: [],
},
],
},

/*FALL2022*/
{
name: "Fall 2023",
name: "Fall 2022",
series: [
{
seriesName: "Cyber Academy: Forensics",
name: "Cyber Academy: Forensics",
events: [
{
name: "Binwalk",
name: "Example 2",
date: new Date('5/9/24'),
description: "Event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
tags: ["web", "binwalk", "hacking"],
tags: ["test2"],
graphicPath: "/images/cyber-symposium.png",
},
{
name: "IDK",
name: "Example 1",
date: new Date('5/9/24'),
location: "Math Sciences 5200",
description: "Event description",
recording: "https://youtube.com/<link_here>",
slides: "https://docs.google.com/",
Expand All @@ -106,12 +117,12 @@ const archive = [
},
],
},

/*Spring2022*/
{
name: "Spring 2022",
series: [],
},
];

/*
quarter {

}
*/

export default archive;
Loading
Loading