Skip to content

Commit

Permalink
Use PNGs
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 18, 2023
1 parent 634a302 commit aba8489
Show file tree
Hide file tree
Showing 22 changed files with 11 additions and 482 deletions.
25 changes: 10 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,29 +245,24 @@ const config = {
customFields: {
logos: {
Gruntwork: {
dark: "/logos/gruntwork-dark.svg",
light: "/logos/gruntwork-light.svg",
textRatio: 1,
dark: "/logos/gruntwork-dark.png",
light: "/logos/gruntwork-light.png",
},
Spacelift: {
dark: "/logos/spacelift-dark.svg",
light: "/logos/spacelift-light.svg",
textRatio: 2.1,
dark: "/logos/spacelift-dark.png",
light: "/logos/spacelift-light.png",
},
env0: {
dark: "/logos/env0-dark.svg",
light: "/logos/env0-light.svg",
textRatio: 0.9,
dark: "/logos/env0-dark.png",
light: "/logos/env0-light.png",
},
Scalr: {
dark: "/logos/scalr-dark.svg",
light: "/logos/scalr-light.svg",
textRatio: 1.1,
dark: "/logos/scalr-dark.png",
light: "/logos/scalr-light.png",
},
Harness: {
dark: "/logos/harness-dark.svg",
light: "/logos/harness-light.svg",
textRatio: 1.1,
dark: "/logos/harness-dark.png",
light: "/logos/harness-light.png",
},
},
},
Expand Down
3 changes: 1 addition & 2 deletions src/components/SupportersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ export default function SupportersList({ list }: SupportersListProps) {
"--dark-img": `url('${useBaseUrl(
logos[supporter.name].dark
)}')`,
height: `calc(${logos[supporter.name].textRatio} * 18px)`,
}}
className="w-28 [background-image:--light-img] dark:[background-image:--dark-img] bg-no-repeat bg-center"
className="w-28 h-10 [background-image:--light-img] dark:[background-image:--dark-img] bg-no-repeat bg-contain bg-left"
/>
) : (
supporter.name
Expand Down
Binary file added static/logos/env0-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions static/logos/env0-dark.svg

This file was deleted.

Binary file added static/logos/env0-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions static/logos/env0-light.svg

This file was deleted.

Binary file added static/logos/gruntwork-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit aba8489

Please sign in to comment.