-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.features { | ||
display: flex; | ||
align-items: center; | ||
padding: 2rem 0; | ||
width: 100%; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: ( | ||
<svg viewBox="0 0 144.09077 39.600665"> | ||
<g | ||
transform="matrix(0.01976877,0,0,0.01976877,-0.139045,0.0520228)" | ||
style={{ fill: `#e6007a` }} | ||
> | ||
<ellipse | ||
className="cls-1" | ||
cx="1000" | ||
cy="441.78" | ||
rx="254.27" | ||
ry="147.95" | ||
/> | ||
<ellipse | ||
className="cls-1" | ||
cx="1000" | ||
cy="1556.15" | ||
rx="254.27" | ||
ry="147.95" | ||
/> | ||
<ellipse | ||
className="cls-1" | ||
cx="517.46997" | ||
cy="720.38" | ||
rx="254.27" | ||
ry="147.95" | ||
transform="rotate(-60,517.46931,720.37686)" | ||
/> | ||
<ellipse | ||
className="cls-1" | ||
cx="1482.53" | ||
cy="1277.5601" | ||
rx="254.27" | ||
ry="147.95" | ||
transform="rotate(-60,1482.5334,1277.5569)" | ||
/> | ||
<ellipse | ||
className="cls-1" | ||
cx="517.46997" | ||
cy="1277.5601" | ||
rx="147.95" | ||
ry="254.27" | ||
transform="rotate(-30,517.46066,1277.5532)" | ||
/> | ||
<ellipse | ||
className="cls-1" | ||
cx="1482.53" | ||
cy="720.38" | ||
rx="147.95" | ||
ry="254.27" | ||
transform="rotate(-30,1482.5338,720.38372)" | ||
/> | ||
</g> | ||
<text | ||
xmlSpace="preserve" | ||
style={{ | ||
fill: "currentcolor", | ||
fontFamily: "Unbounded", | ||
fontSize: 186.667, | ||
fontWeight: 500, | ||
fontStyle: "oblique 11deg", | ||
}} | ||
transform="matrix(0.09464894,0,0,0.09464894,-123.10569,-7.9919671)" | ||
> | ||
<tspan x="1695.6562" y="364.89008"> | ||
OpenGov | ||
</tspan> | ||
</text> | ||
</svg> | ||
), | ||
href: "https://polkadot.network/features/opengov", | ||
}, | ||
]; | ||
|
||
function Sponsor({ title, image, href }: SponsorItem) { | ||
return ( | ||
<a href={href} target="_blank" className={styles.sponsor}> | ||
<figure> | ||
{image} | ||
<figcaption>{title}</figcaption> | ||
</figure> | ||
</a> | ||
); | ||
} | ||
|
||
export default function HomepageSponsors() { | ||
return ( | ||
<section className="margin-vert--lg"> | ||
<header className="text--center"> | ||
<Heading as="h2" className="text--primary"> | ||
Sponsored by | ||
</Heading> | ||
</header> | ||
<div className={styles.sponsors}> | ||
{SponsorList.map((props, index) => ( | ||
<Sponsor key={index} {...props} /> | ||
))} | ||
</div> | ||
</section> | ||
); | ||
} |
20 changes: 20 additions & 0 deletions
20
apps/docs/src/components/HomepageSponsors/styles.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters