diff --git a/src/components/UI/homepage/HomeSection.tsx b/src/components/UI/homepage/HomeSection.tsx index ad35389099..ddad1b54d8 100644 --- a/src/components/UI/homepage/HomeSection.tsx +++ b/src/components/UI/homepage/HomeSection.tsx @@ -1,7 +1,7 @@ -import { Box, IconProps, Link, Stack, Text } from '@chakra-ui/react'; +import { Box, IconProps, Stack } from '@chakra-ui/react'; import { FC } from 'react'; -import NextLink from 'next/link'; +import { ButtonLinkSecondary } from '..'; interface Props { sectionTitle: string; linkLabel: string; @@ -26,12 +26,7 @@ export const HomeSection: FC = ({ )} - + {sectionTitle} @@ -48,13 +43,7 @@ export const HomeSection: FC = ({ {children} - - - - {linkLabel} - - - + {linkLabel} ); }; diff --git a/src/components/UI/homepage/WhatIsEthereum.tsx b/src/components/UI/homepage/WhatIsEthereum.tsx index 74a8c3f9fc..1d067ce881 100644 --- a/src/components/UI/homepage/WhatIsEthereum.tsx +++ b/src/components/UI/homepage/WhatIsEthereum.tsx @@ -1,9 +1,8 @@ -import { Box, Grid, GridItem, Link, Stack, Text } from '@chakra-ui/react'; +import { Box, Grid, GridItem, Stack } from '@chakra-ui/react'; import { FC } from 'react'; -import NextLink from 'next/link'; - import { GlyphHome } from '../svgs/GlyphHome'; import { ETHEREUM_ORG_URL } from '../../../constants'; +import { ButtonLinkSecondary } from '..'; interface Props { children: React.ReactNode; @@ -22,12 +21,7 @@ export const WhatIsEthereum: FC = ({ children }) => { borderRight={{ base: 'none', md: '2px' }} borderColor='primary !important' > - + What is Ethereum @@ -52,13 +46,7 @@ export const WhatIsEthereum: FC = ({ children }) => { - - - - Learn more on Ethereum.org - - - + Learn more on Ethereum.org ); }; diff --git a/src/components/UI/homepage/WhyRunANode.tsx b/src/components/UI/homepage/WhyRunANode.tsx index 5bbfad5101..bed89b8eec 100644 --- a/src/components/UI/homepage/WhyRunANode.tsx +++ b/src/components/UI/homepage/WhyRunANode.tsx @@ -1,7 +1,7 @@ -import { Box, Grid, GridItem, Image, Link, Stack, Text } from '@chakra-ui/react'; +import { Box, Grid, GridItem, Stack } from '@chakra-ui/react'; import { FC } from 'react'; -import NextLink from 'next/link'; +import { ButtonLinkSecondary } from '..' import { GopherHomeNodes } from '../svgs/GopherHomeNodes'; import { ETHEREUM_ORG_RUN_A_NODE_URL } from '../../../constants'; @@ -18,12 +18,7 @@ export const WhyRunANode: FC = ({ children }) => { borderColor='primary !important' > - + Why run a node? @@ -54,13 +49,9 @@ export const WhyRunANode: FC = ({ children }) => { - - - - Read more about running a node - - - + + Read more about running a node + ); }; diff --git a/src/theme/components/Link.ts b/src/theme/components/Link.ts index 7c70f4ce18..ca8aaf93c1 100644 --- a/src/theme/components/Link.ts +++ b/src/theme/components/Link.ts @@ -2,13 +2,13 @@ export const Link = { variants: { 'button-link-secondary': { color: 'primary', - bg: 'button-bg !important', + bg: 'button-bg', _hover: { textDecoration: 'none', bg: 'primary', color: 'bg' }, _focus: { textDecoration: 'none', bg: 'primary', color: 'bg', - boxShadow: 'inset 0 0 0 3px var(--chakra-colors-bg) !important' + boxShadow: 'inset 0 0 0 3px var(--chakra-colors-bg)' }, _active: { textDecoration: 'none', bg: 'secondary', color: 'bg' } }, @@ -18,7 +18,7 @@ export const Link = { _hover: { color: 'body', textDecorationColor: 'body' }, _focus: { color: 'primary', - boxShadow: '0 0 0 1px var(--chakra-colors-primary) !important', + boxShadow: '0 0 0 1px var(--chakra-colors-primary)', textDecoration: 'none' }, _pressed: {