diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 2a414b3..046c476 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,86 +1,100 @@ -import { useWallet } from '@solana/wallet-adapter-react' +import { FC, useState } from 'react' +import Image from 'next/image' +import { WalletMultiButton } from '@solana/wallet-adapter-react-ui' +import { NavList, Breadcrumbs } from '@primer/react' +import { useRouter } from 'next/router' import Link from 'next/link' -import { FC } from 'react' - -interface INavbarElement { - title: string - url: string - tooltip?: string - disabled?: boolean -} +import { INavbarElement } from 'lib/interfaces' const Navbar: FC = () => { - const { publicKey } = useWallet() - + const router = useRouter() + const [open, setOpen] = useState(false) const NAVBAR_ELEMENTS: INavbarElement[] = [ { - title: 'Manage CMs', + title: 'Dashboard / Candy Machines', url: '/', - tooltip: 'Manage Candy Machines', - }, - { - title: 'Create CMs', - url: '/create-candy-machine', - tooltip: 'Create Candy Machine', }, ] return ( ) } -const NavbarElement = ({ title, url, tooltip, disabled }: INavbarElement) => ( - -
- {title} - - {tooltip} - -
- -) - export default Navbar diff --git a/lib/interfaces.ts b/lib/interfaces.ts index e75cde6..f87d025 100644 --- a/lib/interfaces.ts +++ b/lib/interfaces.ts @@ -2,3 +2,9 @@ export interface ICarousel { title: string image: string } +export interface INavbarElement { + title: string + url: string + tooltip?: string + disabled?: boolean +} diff --git a/pages/_app.tsx b/pages/_app.tsx index e2369eb..19f024c 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -11,7 +11,7 @@ import { TorusWalletAdapter, } from '@solana/wallet-adapter-wallets' import { clusterApiUrl } from '@solana/web3.js' -import { Navbar, Wallet } from 'components' +import { Navbar } from 'components' import type { AppProps } from 'next/app' import React, { useMemo } from 'react' import '../styles/globals.scss' @@ -41,9 +41,8 @@ function MyApp({ Component, pageProps }: AppProps) { - - + diff --git a/public/down-arrow.svg b/public/down-arrow.svg new file mode 100644 index 0000000..3d79aa7 --- /dev/null +++ b/public/down-arrow.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico index cd75b43..20e8970 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000..acf99d4 Binary files /dev/null and b/public/logo.png differ diff --git a/styles/globals.scss b/styles/globals.scss index aa0d90c..627b6ac 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -1,6 +1,6 @@ -@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap'); -@import './wallet-adapter.scss'; +@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"); +@import "./wallet-adapter.scss"; @import "@primer/css/index.scss"; @tailwind base; @@ -8,7 +8,7 @@ @tailwind utilities; :root { - font-family: 'Inter', sans-serif; + font-family: "Inter", sans-serif; @apply text-base; } @@ -30,11 +30,13 @@ h1 { } h2 { @apply text-2xl; -} +} h3 { @apply text-xl; } -h4, h5, h6 { +h4, +h5, +h6 { @apply text-lg; } @@ -42,3 +44,13 @@ a { text-decoration: none; @apply text-blue-regular; } + +.wallet-adapter-button { + background-color: #4e44ce !important; + padding: 6px 12px !important; + height: 32px !important; + border-radius: 2px !important; + flex-shrink: 0; + font-size: 12px; + letter-spacing: -0.15px; +}