diff --git a/src/assets/vectors/change-icon.svg b/src/assets/vectors/change-icon.svg new file mode 100644 index 0000000..fe7008a --- /dev/null +++ b/src/assets/vectors/change-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Layout/Header.tsx b/src/components/Layout/Header.tsx index 6c7e97b..7183da3 100644 --- a/src/components/Layout/Header.tsx +++ b/src/components/Layout/Header.tsx @@ -1,4 +1,4 @@ -import { Box, Typography } from '@mui/material' +import { Box, Divider, Typography } from '@mui/material' import { useSelector } from 'react-redux' import { RootState } from 'store' import { headerStyles } from './headerstyles' @@ -12,6 +12,7 @@ import TestNetLogoHeader from 'assets/vectors/testnet-logo-header.svg?component' import CudosLogo from 'assets/vectors/cudos-logo.svg?component' import LinkIcon from 'assets/vectors/link-icon.svg?component' import { useEffect, useState } from 'react' +import ChangeIcon from 'assets/vectors/change-icon.svg?component' const Header = () => { @@ -47,6 +48,19 @@ const Header = () => { {isWelcomePage ? null : + window + .open('https://frontier.osmosis.zone/?from=ATOM&to=CUDOS', 'Swap Cudos') + ?.focus()} + > + + + Swap + + + { Cudos Bridge - + - + diff --git a/src/components/Layout/headerstyles.ts b/src/components/Layout/headerstyles.ts index e5bd981..13b2240 100644 --- a/src/components/Layout/headerstyles.ts +++ b/src/components/Layout/headerstyles.ts @@ -1,16 +1,24 @@ +import { COLORS_DARK_THEME } from "theme/colors"; + export const headerStyles = { linkHolder: { cursor: 'pointer', width: 'max-content', - marginRight: '10px', display: "flex", - alignItems: "center" + alignItems: "center", + '&:hover': { + color: COLORS_DARK_THEME.PRIMARY_BLUE + } }, logoHolder: { cursor: 'pointer', display: 'flex', textDecoration: 'none' }, + divider: { + height: '20px', + background: '#7D87AA' + }, headerContainer: { padding: '2rem', justifyContent: 'space-between',