Commit 7d08a8fc authored by isstuev's avatar isstuev

header

parent 8026f0f1
declare module 'react-identicons'
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
"react": "18.1.0", "react": "18.1.0",
"react-dom": "18.1.0", "react-dom": "18.1.0",
"react-hook-form": "^7.33.1", "react-hook-form": "^7.33.1",
"react-identicons": "^1.2.5",
"react-jazzicon": "^1.0.4" "react-jazzicon": "^1.0.4"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
"jsx": "preserve", "jsx": "preserve",
"incremental": true "incremental": true
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "additional.d.ts"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "additional.d.ts", "decs.d.ts"],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }
...@@ -15,12 +15,12 @@ const Page = ({ children }: Props) => { ...@@ -15,12 +15,12 @@ const Page = ({ children }: Props) => {
w="100%" w="100%"
minH="100vh" minH="100vh"
bgColor="white" bgColor="white"
spacing={ 12 } spacing={ 16 }
alignItems="stretch" alignItems="stretch"
paddingRight={ 15 } paddingRight="60px"
> >
<Navigation/> <Navigation/>
<VStack> <VStack width="100%">
<Header/> <Header/>
<Box <Box
as="main" as="main"
...@@ -28,7 +28,6 @@ const Page = ({ children }: Props) => { ...@@ -28,7 +28,6 @@ const Page = ({ children }: Props) => {
w="100%" w="100%"
overflow="hidden" overflow="hidden"
bgColor="white" bgColor="white"
px={ 5 }
py={ 8 } py={ 8 }
> >
{ children } { children }
......
.identicon {
max-width: 40px;
max-height: 40px;
}
\ No newline at end of file
import React from 'react'; import React from 'react';
import { HStack, Text } from '@chakra-ui/react'; import { Box, HStack, InputGroup, Input, InputLeftAddon, InputLeftElement, Center } from '@chakra-ui/react';
import { SearchIcon } from '@chakra-ui/icons'
import Identicon from 'react-identicons';
import styles from './Header.module.css';
const AccountNav = () => { const AccountNav = () => {
return ( return (
...@@ -7,12 +11,23 @@ const AccountNav = () => { ...@@ -7,12 +11,23 @@ const AccountNav = () => {
as="header" as="header"
height="60px" height="60px"
width="100%" width="100%"
bg="gray.50"
alignItems="center" alignItems="center"
justifyContent="center" justifyContent="center"
marginTop={ 9 } marginTop={ 9 }
gap={ 12 }
> >
<Text>Header</Text> <InputGroup>
<InputLeftAddon w="111px">All filters</InputLeftAddon>
<InputLeftElement w={ 6 } ml="132px" mr={ 2.5 }>
<SearchIcon w={ 5 } h={ 5 } color="gray.500"/>
</InputLeftElement>
<Input paddingInlineStart="50px" placeholder="Search by addresses / transactions /block/ token ... "/>
</InputGroup>
<Box>Switch</Box>
<Center minWidth="50px" width="50px" height="50px" bg="blackAlpha.100" borderRadius="50%" overflow="hidden">
{ /* the displayed size is 40px, but we need to generate x2 for retina displays */ }
<Identicon className={ styles.identicon } string="randomness" size={ 80 }/>
</Center>
</HStack> </HStack>
) )
} }
......
...@@ -2778,6 +2778,11 @@ react-hook-form@^7.33.1: ...@@ -2778,6 +2778,11 @@ react-hook-form@^7.33.1:
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.33.1.tgz#8c4410e3420788d3b804d62cc4c142915c2e46d0" resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.33.1.tgz#8c4410e3420788d3b804d62cc4c142915c2e46d0"
integrity sha512-ydTfTxEJdvgjCZBj5DDXRc58oTEfnFupEwwTAQ9FSKzykEJkX+3CiAkGtAMiZG7IPWHuzgT6AOBfogiKhUvKgg== integrity sha512-ydTfTxEJdvgjCZBj5DDXRc58oTEfnFupEwwTAQ9FSKzykEJkX+3CiAkGtAMiZG7IPWHuzgT6AOBfogiKhUvKgg==
react-identicons@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/react-identicons/-/react-identicons-1.2.5.tgz#3502249e49d88f4e3500092694410a984bb102fa"
integrity sha512-x7prkDoc2pD7wSl2C1pGxS+XAoSdq1ABWJWTBUimVTDVJArKOLd0B4wRUJpDm4r+9y7pgf8ylyPGsmlWSV5n2g==
react-is@^16.13.1, react-is@^16.7.0: react-is@^16.13.1, react-is@^16.7.0:
version "16.13.1" version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment