This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new component * add layout footer * add layout block * add layout * add layout footer * add layout footer * add layout footer and fixed styles * Remove idea from git * Revert docs * fix layout main page * fix links for image * add light theme * fix styles * add fonts * add adaptive layout * fix texts and add background gradient * fixes * fixes * fixes Co-authored-by: shoom3301 <shoom3301@gmail.com>
- Loading branch information
1 parent
654be97
commit b82cc26
Showing
43 changed files
with
3,120 additions
and
183 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 |
---|---|---|
|
@@ -18,3 +18,5 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.idea |
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
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
83 changes: 83 additions & 0 deletions
83
src/components/homepage-developer-links/HomepageDeveloperLinks.js
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,83 @@ | ||
import React from 'react'; | ||
import styles from './HomepageDeveloperLinks.module.css'; | ||
import Link from '@docusaurus/Link'; | ||
import grantsProgramImage from '../../../static/img/grants-program.png'; | ||
import bugBountyImage from '../../../static/img/bug-bounty.png'; | ||
import smartImage from '../../../static/img/smart.png'; | ||
import web3Image from '../../../static/img/web3.png'; | ||
|
||
const DeveloperList = [ | ||
{ | ||
link: 'https://1inch.io', | ||
image: grantsProgramImage, | ||
title: 'Grants program', | ||
description: ( | ||
<> | ||
Incentivizing individual developers and teams to build on the 1inch Network's protocols and contribute | ||
to protocol evolution. | ||
</> | ||
), | ||
}, | ||
{ | ||
link: 'https://1inch.io', | ||
image: bugBountyImage, | ||
title: 'Bug bounty', | ||
description: ( | ||
<> | ||
Engaging adopters and maximizing the network's decentralization through growing stakeowner numbers and | ||
their participation | ||
</> | ||
), | ||
}, | ||
{ | ||
link: 'https://1inch.io', | ||
image: smartImage, | ||
title: 'Smartcontracts', | ||
description: ( | ||
<ul className={styles.developerCardList}> | ||
<li>cumukative-merkle-drop</li> | ||
<li>offchain-oracle</li> | ||
<li>cumukative-merkle-drop</li> | ||
<li>offchain-oracle</li> | ||
</ul> | ||
), | ||
}, | ||
{ | ||
link: 'https://1inch.io', | ||
image: web3Image, | ||
title: 'Web 3.0', | ||
description: ( | ||
<ul className={styles.developerCardList}> | ||
<li>permit-signed-approvals-utils</li> | ||
<li>multicall</li> | ||
<li>multicall</li> | ||
<li>more</li> | ||
</ul> | ||
), | ||
} | ||
]; | ||
|
||
function DeveloperLink({image, title, description, link}) { | ||
return ( | ||
<Link className={styles.developerCard} to={link}> | ||
<img className={styles.developerCardImage} src={image} alt={title}/> | ||
<h3 className={styles.developerCardTitle}>{title}</h3> | ||
<div className={styles.developerCardText}>{description}</div> | ||
</Link> | ||
); | ||
} | ||
|
||
export default function HomepageDeveloperLinks() { | ||
return ( | ||
<section className="page-container"> | ||
<h2 className={styles.developerLinksTitle}>Developer links</h2> | ||
<div className={styles.developerLinksWrap}> | ||
{ | ||
DeveloperList.map((props, idx) => ( | ||
<DeveloperLink key={idx} {...props} /> | ||
)) | ||
} | ||
</div> | ||
</section> | ||
); | ||
} |
66 changes: 66 additions & 0 deletions
66
src/components/homepage-developer-links/HomepageDeveloperLinks.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,66 @@ | ||
.developerLinksTitle { | ||
font-size: 32px; | ||
margin-bottom: 24px; | ||
color: var(--1inch-title); | ||
} | ||
|
||
.developerLinksWrap { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr 1fr; | ||
grid-column-gap: 28px; | ||
} | ||
|
||
.developerCard { | ||
border: 1px solid var(--1inch-border); | ||
border-radius: 16px; | ||
padding: 32px 24px; | ||
display: block; | ||
} | ||
|
||
.developerCard:hover { | ||
text-decoration: none; | ||
} | ||
|
||
.developerCardImage { | ||
width: 64px; | ||
height: 64px; | ||
margin-bottom: 24px; | ||
} | ||
|
||
.developerCardTitle { | ||
color: var(--1inch-title); | ||
margin-bottom: 16px; | ||
font-weight: 500; | ||
} | ||
|
||
.developerCardText { | ||
color: var(--1inch-text); | ||
font-size: 16px; | ||
line-height: 26px; | ||
} | ||
|
||
.developerCardList { | ||
padding-left: 24px; | ||
margin-bottom: 0; | ||
} | ||
|
||
|
||
@media (max-width: 1200px) { | ||
.developerLinksWrap { | ||
grid-column-gap: 16px; | ||
} | ||
} | ||
|
||
@media (max-width: 900px) { | ||
.developerLinksWrap { | ||
grid-template-columns: 1fr 1fr; | ||
grid-row-gap: 16px; | ||
} | ||
} | ||
|
||
|
||
@media (max-width: 600px) { | ||
.developerLinksWrap { | ||
grid-template-columns: 1fr; | ||
} | ||
} |
Oops, something went wrong.