Skip to content

Commit

Permalink
fix: use proper svg assets for Hack.Diversity (#122)
Browse files Browse the repository at this point in the history
💖
  • Loading branch information
JoshuaKGoldberg authored Sep 23, 2024
1 parent 1d2ac4b commit d41fce1
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 2 deletions.
Binary file removed src/assets/partners/hack-diversity-blue.png
Binary file not shown.
24 changes: 24 additions & 0 deletions src/assets/partners/hack-diversity-blue.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 removed src/assets/partners/hack-diversity-white.png
Binary file not shown.
24 changes: 24 additions & 0 deletions src/assets/partners/hack-diversity-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 23 additions & 2 deletions src/components/Partners.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ import HeadingFlanked from "./HeadingFlanked.astro";
alt=""
class="partner-logo partner-logo-dark"
src={partner.logos.dark}
height={120}
width={
partner.logos.light.width > partner.logos.light.height * 2
? 250
: 150
}
/>
<Image
alt=""
class="partner-logo partner-logo-light"
src={partner.logos.light}
height={120}
width={
partner.logos.light.width > partner.logos.light.height * 2
? 250
: 150
}
/>
</a>
))
Expand All @@ -60,6 +68,13 @@ import HeadingFlanked from "./HeadingFlanked.astro";
margin: 0 auto;
}

.partner {
align-items: center;
display: flex;
justify-content: center;
min-height: 7rem;
}

.partner-logo {
transform: scale(0.9);
user-select: none;
Expand Down Expand Up @@ -91,4 +106,10 @@ import HeadingFlanked from "./HeadingFlanked.astro";
width: 100%;
}
}

@media (min-width: 1024px) {
.partner {
max-width: calc(35% - 5rem);
}
}
</style>
10 changes: 10 additions & 0 deletions src/data/partners.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import afhBlack from "../assets/partners/afh-black.svg";
import afhWhite from "../assets/partners/afh-white.svg";
import conTejasCode from "../assets/partners/contejas-code.png";
import hackDiversityBlue from "../assets/partners/hack-diversity-blue.svg";
import hackDiversityWhite from "../assets/partners/hack-diversity-white.svg";
import jsParty from "../assets/partners/js-party.png";
import thisWeekInReactDarkMode from "../assets/partners/this-week-in-react-dark-mode.png";
import thisWeekInReactLightMode from "../assets/partners/this-week-in-react-light-mode.png";
Expand All @@ -22,6 +24,14 @@ export const partnersBySlug = {
},
title: "ConTejas Code Podcast",
},
hackDiversity: {
href: "https://www.hackdiversity.com/?utm_source=squiggleconf",
logos: {
dark: hackDiversityWhite,
light: hackDiversityBlue,
},
title: "Hack.Diversity",
},
jsparty: {
href: "https://changelog.com/jsparty?utm_source=squiggleconf",
logos: {
Expand Down

0 comments on commit d41fce1

Please sign in to comment.