Skip to content

Commit

Permalink
feat: add Sponsors components
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh95 committed May 29, 2022
1 parent 9a9276e commit 30565f3
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
39 changes: 39 additions & 0 deletions website/src/components/Sponsors/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from 'react';
import styles from './styles.module.css';

export default function Sponsors() {
return (
<div className={styles.wrapper}>
<div className="row">
<div className="col">
<h2 className={styles.sponsorsHeading}>Sponsors</h2>
</div>
</div>
<div className={styles.description}>
Support on{' '}
<a
href="https://opencollective.com/jest-preview"
target="_blank"
rel="noopener noreferrer"
>
Open Collective
</a>
, starting from <b>$1</b>.
</div>
<div className="row">
<div className="col">
<h3 className={styles.bronzeHeading}>Bronze Sponsor 🥉</h3>
</div>
</div>
<div className={styles.sponsorWrapper}>
<a className={styles.bronzeSponsor} href="https://webuild.community/">
<img
src="https://user-images.githubusercontent.com/8603085/170883918-8b9f111d-f3c6-4647-9cc1-de56dd98ea60.png"
width="94"
height="94"
/>
</a>
</div>
</div>
);
}
29 changes: 29 additions & 0 deletions website/src/components/Sponsors/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.wrapper {
padding-bottom: 32px;
}

.sponsorsHeading {
display: flex;
justify-content: center;
font-size: 2rem;
}

.description {
font-size: 1rem;
text-align: center;
padding: 0 16px 20px;
}

.bronzeHeading {
display: flex;
justify-content: center;
}

.sponsorWrapper {
display: flex;
justify-content: center;
}

.bronzeSponsor {
text-align: center;
}
2 changes: 2 additions & 0 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Sponsors from '@site/src/components/Sponsors';

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
Expand Down Expand Up @@ -36,6 +37,7 @@ export default function Home(): JSX.Element {
<HomepageHeader />
<main>
<HomepageFeatures />
<Sponsors />
</main>
</Layout>
);
Expand Down

0 comments on commit 30565f3

Please sign in to comment.