diff --git a/apps/docs/src/components/HomepageFeatures/index.tsx b/apps/docs/src/components/HomepageFeatures/index.tsx index 637e65a5..7f0aa527 100644 --- a/apps/docs/src/components/HomepageFeatures/index.tsx +++ b/apps/docs/src/components/HomepageFeatures/index.tsx @@ -67,11 +67,11 @@ function Feature({ title, emoji, description }: FeatureItem) { export default function HomepageFeatures() { return ( -
+
- {FeatureList.map((props, idx) => ( - + {FeatureList.map((props, index) => ( + ))}
diff --git a/apps/docs/src/components/HomepageFeatures/styles.module.css b/apps/docs/src/components/HomepageFeatures/styles.module.css index f4beaf36..3589ab15 100644 --- a/apps/docs/src/components/HomepageFeatures/styles.module.css +++ b/apps/docs/src/components/HomepageFeatures/styles.module.css @@ -1,7 +1,6 @@ .features { display: flex; align-items: center; - padding: 2rem 0; width: 100%; } diff --git a/apps/docs/src/components/HomepageSponsors/index.tsx b/apps/docs/src/components/HomepageSponsors/index.tsx new file mode 100644 index 00000000..880d67ce --- /dev/null +++ b/apps/docs/src/components/HomepageSponsors/index.tsx @@ -0,0 +1,114 @@ +import styles from "./styles.module.css"; +import Heading from "@theme/Heading"; +import { ReactNode } from "react"; + +type SponsorItem = { + title: string; + image: ReactNode; + href: string; +}; + +const SponsorList: SponsorItem[] = [ + { + title: "Polkadot OpenGov", + image: ( + + + + + + + + + + + + OpenGov + + + + ), + href: "https://polkadot.network/features/opengov", + }, +]; + +function Sponsor({ title, image, href }: SponsorItem) { + return ( + +
+ {image} +
{title}
+
+
+ ); +} + +export default function HomepageSponsors() { + return ( +
+
+ + Sponsored by + +
+
+ {SponsorList.map((props, index) => ( + + ))} +
+
+ ); +} diff --git a/apps/docs/src/components/HomepageSponsors/styles.module.css b/apps/docs/src/components/HomepageSponsors/styles.module.css new file mode 100644 index 00000000..407aa69a --- /dev/null +++ b/apps/docs/src/components/HomepageSponsors/styles.module.css @@ -0,0 +1,20 @@ +.sponsors { + display: flex; + justify-content: center; + align-items: center; +} + +.sponsor { + display: contents; + color: inherit; + + figure { + svg { + width: 14rem; + } + + figcaption { + display: none; + } + } +} diff --git a/apps/docs/src/pages/index.tsx b/apps/docs/src/pages/index.tsx index 9285a93d..2ad58bc8 100644 --- a/apps/docs/src/pages/index.tsx +++ b/apps/docs/src/pages/index.tsx @@ -1,3 +1,4 @@ +import HomepageSponsors from "../components/HomepageSponsors"; import styles from "./index.module.css"; import Link from "@docusaurus/Link"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; @@ -34,6 +35,7 @@ export default function Home() {
+
);