diff --git a/public/images/pages/glyph-home-light.svg b/public/images/pages/glyph-home-light.svg deleted file mode 100644 index 36fed55efc..0000000000 --- a/public/images/pages/glyph-home-light.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/public/images/pages/gopher-downloads-front-light.svg b/public/images/pages/gopher-downloads-front-light.svg deleted file mode 100644 index 41c2984306..0000000000 --- a/public/images/pages/gopher-downloads-front-light.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/public/images/pages/gopher-home-front.svg b/public/images/pages/gopher-home-front.svg deleted file mode 100644 index 5729375b7d..0000000000 --- a/public/images/pages/gopher-home-front.svg +++ /dev/null @@ -1,453 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/pages/gopher-home-nodes.svg b/public/images/pages/gopher-home-nodes.svg deleted file mode 100644 index 6c412aa7d1..0000000000 --- a/public/images/pages/gopher-home-nodes.svg +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/pages/gopher-home-side-desktop.svg b/public/images/pages/gopher-home-side-desktop.svg deleted file mode 100644 index e823d8927b..0000000000 --- a/public/images/pages/gopher-home-side-desktop.svg +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/images/pages/gopher-home-side-mobile.svg b/public/images/pages/gopher-home-side-mobile.svg deleted file mode 100644 index a4bfbbd93c..0000000000 --- a/public/images/pages/gopher-home-side-mobile.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/public/images/pages/linux-penguin.svg b/public/images/pages/linux-penguin.svg deleted file mode 100644 index f66b859b43..0000000000 --- a/public/images/pages/linux-penguin.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/images/pages/macos-logo.svg b/public/images/pages/macos-logo.svg deleted file mode 100644 index 6c6180ff5e..0000000000 --- a/public/images/pages/macos-logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/images/pages/source-branch.svg b/public/images/pages/source-branch.svg deleted file mode 100644 index 0ae94f6e20..0000000000 --- a/public/images/pages/source-branch.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/images/pages/windows-logo.svg b/public/images/pages/windows-logo.svg deleted file mode 100644 index 13729fe7ff..0000000000 --- a/public/images/pages/windows-logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/components/MDXComponents.tsx b/src/components/MDXComponents.tsx index 27b2e65aa8..bfc92fc18c 100644 --- a/src/components/MDXComponents.tsx +++ b/src/components/MDXComponents.tsx @@ -43,8 +43,7 @@ const MDXComponents = { {children} @@ -97,7 +96,7 @@ const MDXComponents = { // as={'span'} // padding='0.125em 0.25em' // color='red.300' - // background='#1c1e2d' + // background='code-bg-contrast' // borderRadius='0.25em' // fontFamily='code' // fontSize='sm' diff --git a/src/components/UI/ButtonLinkSecondary.tsx b/src/components/UI/ButtonLinkSecondary.tsx new file mode 100644 index 0000000000..882a8a4a2d --- /dev/null +++ b/src/components/UI/ButtonLinkSecondary.tsx @@ -0,0 +1,22 @@ +import { Link, Stack, Text } from '@chakra-ui/react'; +import NextLink, { LinkProps } from 'next/link'; + +import { Link as LinkTheme } from "../../theme/components" + +interface Props extends LinkProps { + children: React.ReactNode; +} + +export const ButtonLinkSecondary: React.FC = ({ href, children, ...restProps}) => { + const isExternal: boolean = href.toString().startsWith('http'); + const variant = LinkTheme.variants["button-link-secondary"] + return ( + + + + {children} + + + + ); +}; diff --git a/src/components/UI/DataTable.tsx b/src/components/UI/DataTable.tsx index c94cbc2d4d..12fe2f9af6 100644 --- a/src/components/UI/DataTable.tsx +++ b/src/components/UI/DataTable.tsx @@ -12,11 +12,11 @@ export const DataTable: FC = ({ columnHeaders, data }) => { // Note: This wont work on firefox, we are ok with this. css={{ '&::-webkit-scrollbar': { - borderTop: '2px solid #11866f', + borderTop: '2px solid var(--chakra-colors-primary)', height: 18 }, '&::-webkit-scrollbar-thumb': { - background: '#11866f' + background: 'var(--chakra-colors-primary)' } }} pt={4} @@ -32,7 +32,7 @@ export const DataTable: FC = ({ columnHeaders, data }) => { fontFamily='"JetBrains Mono", monospace' fontWeight={700} fontSize='md' - color='#868b87' + color='#868b87' //? Use theme color? Or add to theme? > {columnHeader} @@ -48,7 +48,7 @@ export const DataTable: FC = ({ columnHeaders, data }) => { key={idx} // TODO: Get new background color from nuno for hover transition={'all 0.5s'} - _hover={{ background: 'green.50', transition: 'all 0.5s' }} + _hover={{ background: 'button-bg', transition: 'all 0.5s' }} > {columnHeaders.map((columnHeader, idx) => { // TODO: Make the font size smaller (refer to design system) diff --git a/src/components/UI/Header.tsx b/src/components/UI/Header.tsx index cb7641849c..4df7e9ad65 100644 --- a/src/components/UI/Header.tsx +++ b/src/components/UI/Header.tsx @@ -1,23 +1,21 @@ -import { Box, Flex, Input, InputGroup, Link, Stack, Text } from '@chakra-ui/react'; +import { Box, Flex, Input, InputGroup, Link, Stack, Text, useColorMode } from '@chakra-ui/react'; import { FC } from 'react'; import NextLink from 'next/link'; -import { HamburguerIcon, LensIcon, MoonIcon } from '../UI/icons'; +import { HamburgerIcon, LensIcon, MoonIcon, SunIcon } from '../UI/icons'; import { DOCS_PAGE, DOWNLOADS_PAGE } from '../../constants'; export const Header: FC = () => { + const { colorMode, toggleColorMode } = useColorMode(); + const isDark = colorMode === 'dark'; return ( - + @@ -32,14 +30,14 @@ export const Header: FC = () => { @@ -55,13 +53,14 @@ export const Header: FC = () => { @@ -77,30 +76,41 @@ export const Header: FC = () => { - + {/* DARK MODE SWITCH */} - - + + {isDark ? : } - {/* HAMBURGUER MENU */} + {/* HAMBURGER MENU */} - + diff --git a/src/components/UI/downloads/DownloadsHero.tsx b/src/components/UI/downloads/DownloadsHero.tsx index c31edbc37a..610e5aa2a4 100644 --- a/src/components/UI/downloads/DownloadsHero.tsx +++ b/src/components/UI/downloads/DownloadsHero.tsx @@ -1,7 +1,9 @@ -import { Box, Center, Button, Grid, Image, Link, Stack, HStack, Text } from '@chakra-ui/react'; +import { Box, Button, Center, Grid, HStack, Image, Link, Stack,Text } from '@chakra-ui/react'; import { FC } from 'react'; import NextLink from 'next/link'; +import { GopherDownloads } from '../svgs'; + import { DOWNLOAD_HEADER_BUTTONS } from '../../../constants'; interface DownloadsHero { @@ -31,7 +33,7 @@ export const DownloadsHero: FC = ({ return ( = ({ Download go-ethereum - = ({ order={{ base: -1, md: 1 }} >
- Gopher plugged in +
{Object.keys(DOWNLOAD_HEADER_BUTTONS).map((key: string) => { + const { name, buildURL, Svg, ariaLabel } = DOWNLOAD_HEADER_BUTTONS[key]; return ( - +