Skip to content

Commit

Permalink
fix discord button, remove empty sponsors, fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
Marit Radder authored and Marit Radder committed Jan 12, 2024
1 parent ec1a4cf commit 3be8e9a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 46 deletions.
10 changes: 0 additions & 10 deletions data/sponsors.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,5 @@
"title": "X TU Delft"
}
]
},
{
"type": "primary",
"title": "Primary",
"items": []
},
{
"type": "secondary",
"title": "Supporting",
"items": []
}
]
4 changes: 2 additions & 2 deletions src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const Header: FunctionalComponent = () => (
{/* TODO: uncomment when tickets are online */}
{/* <button>Tickets</button> */}
{/* <button class={style.secondary}>Join Discord</button> */}
<button href="https://discord.gg/rB2ucUaFnc" target="_blank">
<a href="https://discord.gg/rB2ucUaFnc" target="_blank">
<Icon icon={faDiscord} pad />
Join Discord
</button>
</a>
</div>
</div>

Expand Down
7 changes: 6 additions & 1 deletion src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@
margin-top: 60px;
}

button {
a {
border-radius: 10px;
border: 1px solid $background-color;
background-color: $primary-color;
color: $background-color;
font-size: 18px;
padding: 10px 15px;
width: 200px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
margin-bottom: 16px;

&:hover {
background-color: $primary-color-darker;
Expand Down
68 changes: 35 additions & 33 deletions src/components/sponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as style from "./style.scss";
* Renders the sponsors section.
*/
export const Sponsors: FunctionalComponent = () => (
<section class={style.sponsors}>
<section class={style.sponsors} id='sponsors'>
<h2>Sponsors</h2>
{sponsorData.map((sponsor: SponsorCategory) => sponsorItem(sponsor))}
</section>
Expand All @@ -26,41 +26,43 @@ export const sponsorItem = (category: SponsorCategory) => {

return (
<Fragment>
<h3>{category.title}</h3>
<ul class={style.sponsorlist}>
{sponsors.map((sponsor: Sponsor) => (
<li key={sponsor.logoKey} data-type={category.type}>

<a
href={sponsor.url}
target="_blank"
rel="noopener"
title={sponsor.title}
>
<div>
{/* <h3>{category.title}</h3> */}
<ul class={style.sponsorlist}>
{sponsors.map((sponsor: Sponsor) => (
<li key={sponsor.logoKey} data-type={category.type}>

<div class={style.topbar}>
<hr/>
</div>

<div class={style.img}>
<img
src={sponsorLogoMap[
sponsor.logoKey
].toString()}
alt={sponsor.title}
/>

</div>
<p>{sponsor.title}</p>
<a
href={sponsor.url}
target="_blank"
rel="noopener"
title={sponsor.title}
>

<div class={style.bottombar}>
<hr/>
</div>
<div class={style.topbar}>
<hr />
</div>

</a>
</li>
))}
</ul>
<div class={style.img}>
<img
src={sponsorLogoMap[
sponsor.logoKey
].toString()}
alt={sponsor.title}
/>

</div>
<p>{sponsor.title}</p>

<div class={style.bottombar}>
<hr />
</div>

</a>
</li>
))}
</ul>
</div>
</Fragment>
);
};
Expand Down

0 comments on commit 3be8e9a

Please sign in to comment.