diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..1bc52d3 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "extends": [ + "next/core-web-vitals", + "prettier" + ], + "rules": { + "react/no-unescaped-entities": "off", + "@next/next/no-img-element": "off" + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c7d905 --- /dev/null +++ b/.gitignore @@ -0,0 +1,105 @@ +# Dependencies +/node_modules +/.pnp +.pnp.js + +# Testing +/coverage + +# Next.js +/.next/ +/out/ +.swc/ + +# Production +/build +/dist + +# Misc +.DS_Store +*.pem +.env.local +.env.development.local +.env.test.local +.env.production.local + +# Debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Local env files +.env*.local + +# Vercel +.vercel + +# TypeScript +*.tsbuildinfo +next-env.d.ts + +# IDE +.idea/ +.vscode/ +*.sublime-project +*.sublime-workspace +*.code-workspace + +# Logs +logs +*.log + +# Cache +.cache/ +.npm/ + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Yarn +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions +.pnp.* + +# macOS +.DS_Store +.AppleDouble +.LSOverride +Icon +._* +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Windows +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db +*.stackdump +[Dd]esktop.ini +$RECYCLE.BIN/ +*.cab +*.msi +*.msix +*.msm +*.msp +*.lnk + +# Linux +*~ +.fuse_hidden* +.directory +.Trash-* +.nfs* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8ef16f7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Ethereum Foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/components/UI/Header.tsx b/src/components/UI/Header.tsx index 459388a..3434cb7 100644 --- a/src/components/UI/Header.tsx +++ b/src/components/UI/Header.tsx @@ -1,4 +1,4 @@ -import { Box, Container, Flex } from '@chakra-ui/react'; +import { Box, Container, Flex, HStack } from '@chakra-ui/react'; import { FC } from 'react'; import { useRouter } from 'next/router'; import Image from 'next/image'; @@ -7,6 +7,7 @@ import EFlogo from '../../../public/images/ef-logo.svg'; import { HOME_URL } from '../../constants'; import { Nav } from '../Nav'; +import { ThemeToggle } from './ThemeToggle'; export const Header: FC = () => { const router = useRouter(); @@ -19,7 +20,10 @@ export const Header: FC = () => { Ethereum Foundation logo -