Skip to content

Commit

Permalink
Remove logos (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik authored Sep 19, 2023
1 parent ddf33f5 commit 6279fd0
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 66 deletions.
18 changes: 0 additions & 18 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,24 +250,6 @@ const config = {
},
image: "/img/og.png",
}),
customFields: {
logos: {
Gruntwork: {
dark: "/logos/gruntwork.png",
light: "/logos/gruntwork-light.svg",
},
Spacelift: {
dark: "/logos/spacelift.svg",
light: "/logos/spacelift-light.svg",
},
env0: { dark: "/logos/env0.svg", light: "/logos/env0-light.svg" },
Scalr: { dark: "/logos/scalr.svg", light: "/logos/scalr-light.png" },
Harness: {
dark: "/logos/harness.svg",
light: "/logos/harness-light.png",
},
},
},

themes: [
[
Expand Down
7 changes: 3 additions & 4 deletions src/components/Supporters/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import supporters from "../../../supporters.json";

import Button from "../Button";
Expand Down Expand Up @@ -36,12 +35,12 @@ function SupporterType({ type, withSeparator, count }: SupporterTypeProps) {
);
}

const MAX_LIST_COUNT = 5;

export default function Supporters() {
const { siteConfig } = useDocusaurusContext();
const groupedSupporters = groupSupportersByType(supporters);
const types = Object.entries(groupedSupporters);
const { logos } = siteConfig.customFields;
const list = supporters.filter((supporter) => logos[supporter.name]);
const list = supporters.slice(0, MAX_LIST_COUNT);

return (
<section className="py-12 mx-auto container items-center flex flex-col px-4">
Expand Down
21 changes: 2 additions & 19 deletions src/components/SupportersList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React from "react";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import ThemedImage from "@theme/ThemedImage";
import useBaseUrl from "@docusaurus/useBaseUrl";

type SupportersListProps = {
list: {
Expand All @@ -14,9 +11,6 @@ type SupportersListProps = {
};

export default function SupportersList({ list }: SupportersListProps) {
const { siteConfig } = useDocusaurusContext();
const { logos } = siteConfig.customFields;

return (
<ul
className="mt-6 md:mt-12 mb-6 sm:max-w-2xl md:max-w-3xl lg:max-w-4xl mx-auto w-full text-gray-600 dark:text-gray-500"
Expand All @@ -31,21 +25,10 @@ export default function SupportersList({ list }: SupportersListProps) {
href={supporter.url}
target="_blank"
rel="noopener noreferrer"
className="w-1/3 text-inherit"
className="w-1/3 text-inherit font-bold text-gray-900 dark:text-gray-100"
aria-label={`Go to ${supporter.name} website`}
>
{logos[supporter.name] ? (
<ThemedImage
alt={supporter.name}
sources={{
light: useBaseUrl(logos[supporter.name].light),
dark: useBaseUrl(logos[supporter.name].dark),
}}
className="w-28"
/>
) : (
supporter.name
)}
{supporter.name}
</Link>

<p className="w-2/3 text-right">{supporter.pledge}</p>
Expand Down
1 change: 0 additions & 1 deletion static/logos/env0-light.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/logos/env0.svg

This file was deleted.

14 changes: 0 additions & 14 deletions static/logos/gruntwork-light.svg

This file was deleted.

Binary file removed static/logos/gruntwork.png
Binary file not shown.
Binary file removed static/logos/harness-light.png
Binary file not shown.
4 changes: 0 additions & 4 deletions static/logos/harness.svg

This file was deleted.

Binary file removed static/logos/scalr-light.png
Binary file not shown.
Loading

0 comments on commit 6279fd0

Please sign in to comment.