diff --git a/src/components/homepage-developer-links/HomepageDeveloperLinks.js b/src/components/homepage-developer-links/HomepageDeveloperLinks.js index aa007e7da..cd4e824b4 100644 --- a/src/components/homepage-developer-links/HomepageDeveloperLinks.js +++ b/src/components/homepage-developer-links/HomepageDeveloperLinks.js @@ -1,16 +1,14 @@ 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'; import clsx from "clsx"; const DeveloperList = [ { link: 'https://1inch.io/foundation-grant-program/', - image: grantsProgramImage, + image: ( +
+ ), title: 'Grants program', description: ( <> @@ -21,7 +19,9 @@ const DeveloperList = [ }, { link: 'https://airtable.com/shrddQOOkm3hOLuzd', - image: bugBountyImage, + image: ( +
+ ), title: 'Bug bounty', description: ( <> @@ -32,7 +32,9 @@ const DeveloperList = [ }, { link: '', - image: smartImage, + image: ( +
+ ), title: 'Smartcontracts', description: (
    @@ -50,7 +52,9 @@ const DeveloperList = [ }, { link: '', - image: web3Image, + image: ( +
    + ), title: 'Web 3.0', description: (
      @@ -72,14 +76,14 @@ function DeveloperLink({image, title, description, link}) { return link ? ( - {title}/ +
      {image}

      {title}

      {description}
      ) : (
      - {title}/ +
      {image}

      {title}

      {description}
      diff --git a/src/components/homepage-developer-links/HomepageDeveloperLinks.module.css b/src/components/homepage-developer-links/HomepageDeveloperLinks.module.css index b483bdfdd..349d6ff53 100644 --- a/src/components/homepage-developer-links/HomepageDeveloperLinks.module.css +++ b/src/components/homepage-developer-links/HomepageDeveloperLinks.module.css @@ -17,6 +17,12 @@ display: block; } +html[data-theme="light"] .developerCard { + background-color: var(--1inch-bg-card); + border: none; + box-shadow: 0 0 4px rgba(71, 73, 79, 0.1), 0 1px 2px rgba(71, 73, 79, 0.25); +} + .developerCard:hover { text-decoration: none; } @@ -36,6 +42,7 @@ color: var(--1inch-title); margin-bottom: 16px; font-weight: 500; + font-size: 24px; } .developerCardText { @@ -58,6 +65,51 @@ margin-bottom: 0; } +.developerCardImage { + width: 64px; + height: 64px; + margin-bottom: 24px; +} + +.developerCardImage::after { + content: ''; + transform: scale(.5) translate(-64px, -64px); + width: 128px; + height: 128px; + display: block; +} + +.foundationGrantProgramImage::after { + content: url("../../../static/img/grant-program-dark.png"); +} + +html[data-theme='light'] .foundationGrantProgramImage::after { + content: url("../../../static/img/grant-program-light.png"); +} + +.bugBountyImage::after { + content: url("../../../static/img/bug-bounty-dark.png"); +} + +html[data-theme='light'] .bugBountyImage::after { + content: url("../../../static/img/bug-bounty-light.png"); +} + +.smartContractsImage::after { + content: url("../../../static/img/smart-contracts-dark.png"); +} + +html[data-theme='light'] .smartContractsImage::after { + content: url("../../../static/img/smart-contracts-light.png"); +} + +.web3Image::after { + content: url("../../../static/img/web3-dark.png"); +} + +html[data-theme='light'] .web3Image::after{ + content: url("../../../static/img/web3-light.png"); +} @media (max-width: 1200px) { .developerLinksWrap { diff --git a/src/components/homepage-features/HomepageFeatures.js b/src/components/homepage-features/HomepageFeatures.js index 55f0f623e..a38a2315f 100644 --- a/src/components/homepage-features/HomepageFeatures.js +++ b/src/components/homepage-features/HomepageFeatures.js @@ -2,8 +2,6 @@ import React from 'react'; import clsx from 'clsx'; import styles from './HomepageFeatures.module.css'; import Link from '@docusaurus/Link'; -import aggregationProtocolImage from '../../../static/img/aggregationProtocol.png'; -import limitOrderProtocolImage from '../../../static/img/limit-order-protocol.png'; import GithubImage from '../../../static/img/icons/github-link.svg'; import ArrowOutside from '../../../static/img/icons/arrow-outside.svg'; @@ -11,7 +9,9 @@ const FeatureList = [ { title: 'Aggregation protocol', description: 'Engaging adopters and maximizing the network\'s decentralization through growing stakeowner numbers', - image: aggregationProtocolImage, + image: ( +
      + ), hrefGithub: 'https://github.com/1inch', links: [ { @@ -31,7 +31,9 @@ const FeatureList = [ { title: 'Limit order protocol', description: 'Running yield farming programs that have proven to be efficient bootstrapping tools for potential bluechips of the DeFi space', - image: limitOrderProtocolImage, + image: ( +
      + ), hrefGithub: 'https://github.com/1inch', links: [ { @@ -62,7 +64,7 @@ function Feature({title, description, image, hrefGithub, links}) {

      {description}

      - {title}/ + {image}
      { links.map((link, index) => ( @@ -79,12 +81,15 @@ function Feature({title, description, image, hrefGithub, links}) { export default function HomepageFeatures() { return ( -
      - { - FeatureList.map((props, idx) => ( - - )) - } +
      +

      Protocols

      +
      + { + FeatureList.map((props, idx) => ( + + )) + } +
      ); } diff --git a/src/components/homepage-features/HomepageFeatures.module.css b/src/components/homepage-features/HomepageFeatures.module.css index f9d82ff3a..b141ed78a 100644 --- a/src/components/homepage-features/HomepageFeatures.module.css +++ b/src/components/homepage-features/HomepageFeatures.module.css @@ -1,6 +1,12 @@ +.featureListTitle { + font-size: 32px; + margin-bottom: 24px; + color: var(--1inch-title); +} + .featureList { display: grid; - grid-template-columns: 1fr 1fr 1fr; + grid-template-columns: 1fr 1fr; grid-column-gap: 28px; } @@ -8,12 +14,17 @@ border: 1px solid var(--1inch-border); border-radius: 16px; padding: 32px 24px; - backdrop-filter: blur(100px); display: flex; flex-direction: column; justify-content: space-between; } +html[data-theme='light'] .featureCard { + background-color: var(--1inch-bg-card); + border: none; + box-shadow: 0 0 4px rgba(71, 73, 79, 0.1), 0 1px 2px rgba(71, 73, 79, 0.25); +} + .featureCard:hover { text-decoration: none; } @@ -29,6 +40,7 @@ .featureCardTitle { color: var(--1inch-title); font-weight: 500; + font-size: 24px; } .featureCardGithubLink { @@ -50,6 +62,27 @@ max-height: 172px; } +.featureCardImage::after { + content: ''; +} + +.aggregationProtocolImage::after { + content: url("../../../static/img/aggregation-protocol-dark.png"); +} + +html[data-theme='light'] .aggregationProtocolImage::after { + content: url("../../../static/img/aggregation-protocol-light.png"); +} + +.limitOrderProtocolImage::after { + content: url("../../../static/img/limit-order-protocol-dark.png"); +} + +html[data-theme='light'] .limitOrderProtocolImage::after { + content: url("../../../static/img/limit-order-protocol-light.png"); +} + + .featureCardLinkWrap { display: flex; justify-content: space-between; @@ -91,8 +124,44 @@ } } -@media (max-width: 640px) { +@media (max-width: 780px) { .featureList { grid-template-columns: 1fr; } } + +@media (max-width: 400px) { + .aggregationProtocolImage::after { + zoom: 0.8; + } + + html[data-theme='light'] .aggregationProtocolImage::after { + zoom: 0.8; + } + + .limitOrderProtocolImage::after { + zoom: 0.8; + } + + html[data-theme='light'] .limitOrderProtocolImage::after { + zoom: 0.8; + } +} + +@media (max-width: 340px) { + .aggregationProtocolImage::after { + zoom: 0.6; + } + + html[data-theme='light'] .aggregationProtocolImage::after { + zoom: 0.6; + } + + .limitOrderProtocolImage::after { + zoom: 0.6; + } + + html[data-theme='light'] .limitOrderProtocolImage::after { + zoom: 0.6; + } +} diff --git a/src/components/homepage-prefooter/img/image-footer.png b/src/components/homepage-prefooter/img/image-footer.png index e5fa68448..a33daf4a3 100644 Binary files a/src/components/homepage-prefooter/img/image-footer.png and b/src/components/homepage-prefooter/img/image-footer.png differ diff --git a/src/css/custom.css b/src/css/custom.css index f262dbca6..d46e2e411 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -11,6 +11,7 @@ --1inch-bg-1: #000000; --1inch-bg-2: #202835; --1inch-bg-3: #FBFBFB; + --1inch-bg-card: #FFFFFF; --1inch-shadow-1: 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25); } @@ -18,7 +19,7 @@ --1inch-page-bg: #f3f5fa; --1inch-text: #6C86AD; --1inch-bg-image: rgba(108, 134, 173, 0.12); - --1inch-title: #06070A; + --1inch-title: #484848; --1inch-border: rgba(0, 0, 0, 0.24); --1inch-button: #2F8AF5; --1inch-bg-1: #FFFFFF; diff --git a/static/img/aggregation-protocol-dark.png b/static/img/aggregation-protocol-dark.png new file mode 100644 index 000000000..94d157c9b Binary files /dev/null and b/static/img/aggregation-protocol-dark.png differ diff --git a/static/img/aggregation-protocol-light.png b/static/img/aggregation-protocol-light.png new file mode 100644 index 000000000..f790fa792 Binary files /dev/null and b/static/img/aggregation-protocol-light.png differ diff --git a/static/img/aggregationProtocol.png b/static/img/aggregationProtocol.png deleted file mode 100644 index 73f8dcdfa..000000000 Binary files a/static/img/aggregationProtocol.png and /dev/null differ diff --git a/static/img/bug-bounty-dark.png b/static/img/bug-bounty-dark.png new file mode 100644 index 000000000..7842f793f Binary files /dev/null and b/static/img/bug-bounty-dark.png differ diff --git a/static/img/bug-bounty-light.png b/static/img/bug-bounty-light.png new file mode 100644 index 000000000..5ef7ed373 Binary files /dev/null and b/static/img/bug-bounty-light.png differ diff --git a/static/img/bug-bounty.png b/static/img/bug-bounty.png deleted file mode 100644 index 57532f094..000000000 Binary files a/static/img/bug-bounty.png and /dev/null differ diff --git a/static/img/grant-program-dark.png b/static/img/grant-program-dark.png new file mode 100644 index 000000000..71ce3a142 Binary files /dev/null and b/static/img/grant-program-dark.png differ diff --git a/static/img/grant-program-light.png b/static/img/grant-program-light.png new file mode 100644 index 000000000..76cf66dfc Binary files /dev/null and b/static/img/grant-program-light.png differ diff --git a/static/img/grants-program.png b/static/img/grants-program.png deleted file mode 100644 index 2709d9087..000000000 Binary files a/static/img/grants-program.png and /dev/null differ diff --git a/static/img/limit-order-protocol-dark.png b/static/img/limit-order-protocol-dark.png new file mode 100644 index 000000000..f799c47cb Binary files /dev/null and b/static/img/limit-order-protocol-dark.png differ diff --git a/static/img/limit-order-protocol-light.png b/static/img/limit-order-protocol-light.png new file mode 100644 index 000000000..50d4b7611 Binary files /dev/null and b/static/img/limit-order-protocol-light.png differ diff --git a/static/img/limit-order-protocol.png b/static/img/limit-order-protocol.png deleted file mode 100644 index df66b4fb4..000000000 Binary files a/static/img/limit-order-protocol.png and /dev/null differ diff --git a/static/img/smart-contracts-dark.png b/static/img/smart-contracts-dark.png new file mode 100644 index 000000000..08f7ad7ab Binary files /dev/null and b/static/img/smart-contracts-dark.png differ diff --git a/static/img/smart-contracts-light.png b/static/img/smart-contracts-light.png new file mode 100644 index 000000000..1cff08f89 Binary files /dev/null and b/static/img/smart-contracts-light.png differ diff --git a/static/img/smart.png b/static/img/smart.png deleted file mode 100644 index e739bbfc5..000000000 Binary files a/static/img/smart.png and /dev/null differ diff --git a/static/img/web3-dark.png b/static/img/web3-dark.png new file mode 100644 index 000000000..ac3397d8e Binary files /dev/null and b/static/img/web3-dark.png differ diff --git a/static/img/web3-light.png b/static/img/web3-light.png new file mode 100644 index 000000000..b77c85afe Binary files /dev/null and b/static/img/web3-light.png differ diff --git a/static/img/web3.png b/static/img/web3.png deleted file mode 100644 index 662b525e7..000000000 Binary files a/static/img/web3.png and /dev/null differ