Skip to content

Commit

Permalink
Add sponsor packet (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostOf0days authored Jul 31, 2024
1 parent 8169fa7 commit 4151349
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
Binary file added public/Sponsorship_24_25.pdf
Binary file not shown.
14 changes: 14 additions & 0 deletions src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ function Toolbar({ collapsed }: { collapsed: Boolean }) {
>
/events
</Link>
<Link
href="/sponsors"
passHref
className={`link ${styles.navLink}`}
>
/sponsors
</Link>
</div>
</div>
) : null}
Expand Down Expand Up @@ -89,6 +96,13 @@ function Toolbar({ collapsed }: { collapsed: Boolean }) {
>
/events
</Link>
<Link
href="/sponsors"
passHref
className={`link ${styles.navLink}`}
>
/sponsors
</Link>
</div>
</div>
);
Expand Down
28 changes: 28 additions & 0 deletions src/pages/sponsors.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import BaseLayout from 'layouts/BaseLayout';
import styles from 'styles/Sponsors.module.scss';

export default function Sponsors() {
const sponsorPacketURL = 'Sponsorship_24_25.pdf';

return (
<BaseLayout collapsedNavBar>
<div className={styles.pageContent}>
<div className={styles.sponsorPacketContainer}>
<object
data={sponsorPacketURL}
type="application/pdf"
className={styles.sponsorPacket}
>
<p>
You don`&apos;`t have a PDF viewer for this browser.
You can{' '}
<a href={sponsorPacketURL}>
click here to download the sponsor packet.
</a>
</p>
</object>
</div>
</div>
</BaseLayout>
);
}
12 changes: 12 additions & 0 deletions src/styles/Sponsors.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.sponsorPacketContainer {
width: 100%;
height: calc(100vh - 64px);
padding: 20px;
box-sizing: border-box;
}

.sponsorPacket {
width: 100%;
height: 100%;
border: none;
}

0 comments on commit 4151349

Please sign in to comment.