Skip to content

Add sponsors #6

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

Merged
merged 1 commit into from
Mar 29, 2024
Merged
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
19 changes: 19 additions & 0 deletions public/sponsors/1password.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/cocalc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/codecrafters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/desmos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/echo3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/hhkb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/northrop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/pololu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/quokka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/wolfram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import styles from './page.module.scss';
import Hero from '@/sections/landing/hero';
import Welcome from '@/sections/landing/welcome';
import Tracks from '@/sections/landing/tracks';
import Sponsors from '@/sections/landing/sponsors';

export default function Home() {
return (
<main className={styles.main}>
<Hero />
<Welcome />
<Tracks />
<Sponsors />
</main>
);
}
24 changes: 24 additions & 0 deletions src/sections/landing/sponsors/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styles from './style.module.scss';
import { SPONSORS } from './sponsors';
import Link from 'next/link';

const Sponsors = () => {
return (
<div className={styles.pageContainer}>
<h2>Sponsors</h2>
<div className={styles.sponsors}>
{SPONSORS.map(({ url, src }) => (
<Link href={url} target="_blank" rel="noopener noreferrer" key={url}>
<img src={`/sponsors/${src}`} alt={url} className={styles.sponsor} />
</Link>
))}
</div>
<span>
Interested in collaborating with us to make DiamondHacks happen? Reach out at{' '}
<Link href="mailto:[email protected]">[email protected]</Link>!
</span>
</div>
);
};

export default Sponsors;
47 changes: 47 additions & 0 deletions src/sections/landing/sponsors/sponsors.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
interface Sponsor {
url: string;
src: string;
}

export const SPONSORS = [
{
url: 'https://www.quokkabrew.com/',
src: 'quokka.png',
},
{
url: 'https://hhkeyboard.us/',
src: 'hhkb.png',
},
{
url: 'https://cocalc.com/',
src: 'cocalc.png',
},
{
url: 'https://www.wolfram.com/',
src: 'wolfram.png',
},
{
url: 'https://www.pololu.com/',
src: 'pololu.png',
},
{
url: 'https://1password.com/',
src: '1password.svg',
},
{
url: 'https://www.echo3d.com/',
src: 'echo3d.png',
},
{
url: 'https://www.desmos.com/',
src: 'desmos.png',
},
{
url: 'https://www.northropgrumman.com/',
src: 'northrop.png',
},
{
url: 'https://codecrafters.io/event/diamondhacks',
src: 'codecrafters.png',
},
];
27 changes: 27 additions & 0 deletions src/sections/landing/sponsors/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.pageContainer {
margin-top: 8rem;
width: 100%;
display: flex;
flex-direction: column;
gap: 1rem;

h2 {
font-size: 36px;
}

.sponsors {
display: flex;
flex-direction: row;
gap: 1rem;
flex-wrap: wrap;
align-items: center;

.sponsor {
max-width: 10rem;
height: fit-content;
background-color: white;
padding: 1rem;
border-radius: 0.75rem;
}
}
}
2 changes: 1 addition & 1 deletion src/sections/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const LINKS = [
href: '/',
},
{
name: 'FAQ',
name: 'FAQs',
href: '/faq',
},
];
Expand Down