Skip to content

Commit

Permalink
Fix Sponsors Color Issue (#7)
Browse files Browse the repository at this point in the history
* Fix Sponsers Color Issue

* Delete Sponsers SVG's

* Revert "Delete Sponsers SVG's"

This reverts commit 1d60ce8.

* fix: use svg files

---------

Co-authored-by: Princesseuh <[email protected]>
  • Loading branch information
newtoallofthis123 and Princesseuh committed Oct 5, 2023
1 parent 90e3d3b commit 19b555e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/assets/sponsors/nuxt.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/assets/sponsors/prefect.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/sponsors/stackblitz.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/assets/sponsors/vue.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 28 additions & 12 deletions src/components/Sponsors.astro
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
---
import { Image } from "astro:assets";
import nuxt from "../assets/sponsors/nuxt.svg";
import prefect from "../assets/sponsors/prefect.svg";
import stackblitz from "../assets/sponsors/stackblitz.svg";
import vue from "../assets/sponsors/vue.svg";
import nuxt from "../assets/sponsors/nuxt.svg?raw";
import prefect from "../assets/sponsors/prefect.svg?raw";
import stackblitz from "../assets/sponsors/stackblitz.svg?raw";
import vue from "../assets/sponsors/vue.svg?raw";
---

<hr />
<section id="sponsors">
<h2>Sponsors</h2>

<a href="https://stackblitz.com"><Image src={stackblitz} alt="StackBlitz's logo" /></a>
<a href="https://stackblitz.com">
<Fragment set:html={stackblitz} />
</a>

<a href="https://vuejs.org/"><Image src={vue} alt="Vue's logo" /></a>
<a href="https://vuejs.org/">
<Fragment set:html={vue} />
</a>

<a href="https://nuxt.com/"><Image src={nuxt} alt="Nuxt's logo" /></a>
<a href="https://nuxt.com/">
<Fragment set:html={nuxt} />
</a>

<a href="https://www.prefect.io/"
><Image src={prefect} alt="Prefect's Logo" style="width: 196px;" /></a
>
<a href="https://www.prefect.io/">
<Fragment set:html={prefect} />
</a>
</section>

<hr style="margin-bottom: 5rem;" />
Expand All @@ -44,10 +49,21 @@ import vue from "../assets/sponsors/vue.svg";
align-self: center;
}

@media screen and (max-width: 50em) {
@media screen and (max-width: 1024px) {
#sponsors {
justify-content: center;
max-height: fit-content;
}

#sponsors h2 {
width: 100%;
text-align: center;
}
}
</style>

<style is:global>
:root[data-theme="light"] .sponsor-name {
fill: black;
}
</style>
4 changes: 0 additions & 4 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,3 @@
--sl-color-gray-7: #f6f6f6;
--sl-color-black: #ffffff;
}

:root[data-theme="light"] #sponsor-icon {
fill: black;
}

0 comments on commit 19b555e

Please sign in to comment.