-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🦀adding swc * Revert "🦀adding swc" This reverts commit e74c84b. * 🦀 Adding SWC * ✨ Updating SWC for CJS build * ✨ Updating SWC - Reverting Type Declaration * ✨ SWC clean up and adding removed tests * 🎖GitPOAP integration * ✨ Update swc - package installation * ✨ Updating packages and passing all tests * ✨Updating GitPoap docusaurus * ✅ Update for tests - passing Previously would fail test for provider.getGasPrice as the received time would be less than the expected time. Updated file comments out the expected to be greater than duration.
- Loading branch information
Showing
7 changed files
with
2,100 additions
and
5,079 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import CodeBlock from '@theme/CodeBlock'; | ||
import clsx from 'clsx'; | ||
import React from 'react'; | ||
// import styles from './styles.module.css'; | ||
// organize-imports-ignore | ||
import * as ee from '../../../../src/index'; | ||
import Link from '@docusaurus/Link'; | ||
|
||
interface ContributeItem { | ||
title: string; | ||
src: string; | ||
description: JSX.Element; | ||
} | ||
|
||
const ContributeList: ContributeItem[] = [ | ||
{ | ||
title: 'GitPOAP - Recognition for Contributions ', | ||
src: 'https://www.gitpoap.io/_next/image?url=https%3A%2F%2Fassets.poap.xyz%2Fgitpoap3a-2022-essential-eth-contributor-2022-logo-1667245904706.png&w=2048&q=75', | ||
description: ( | ||
<> | ||
In partnership with GitPOAP, Essential ETH wants to recognize | ||
<b>all</b> contributors for their contributions toward the growth of | ||
this library. Developers can validate their contributions on Github and | ||
showcase their GitPOAP as proof-of-work toward their Web3 identity. | ||
</> | ||
), | ||
}, | ||
]; | ||
|
||
function Contribute({ title, src, description }: ContributeItem) { | ||
return ( | ||
<div className={clsx('col col--9')}> | ||
<div className="text--center" style={{ marginRight: '2rem' }}> | ||
<img | ||
src={src} | ||
style={{ | ||
height: '300px', | ||
paddingBottom: '20px', | ||
float: 'left', | ||
paddingRight: '3rem', | ||
}} | ||
/> | ||
</div> | ||
<div | ||
className={'text--left padding-horiz--md'} | ||
style={{ padding: '3rem' }} | ||
> | ||
<h3>{title}</h3> | ||
<p>{description}</p> | ||
<div> | ||
<Link | ||
className="button button--secondary button--md" | ||
to="https://github.com/dawsbot/essential-eth#gitpoap" | ||
> | ||
Learn More | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default function HomepageContributions(): JSX.Element { | ||
return ( | ||
<> | ||
<section> | ||
<div className="container"> | ||
<section style={{ marginTop: '120px', marginBottom: '100px' }}> | ||
<div> | ||
<div className="row" style={{ justifyContent: 'center' }}> | ||
{ContributeList.map((props, idx) => ( | ||
<Contribute key={idx} {...props} /> | ||
))} | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
} |
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
Oops, something went wrong.