From 3717aeb0162d5f2a6d72cb9939d61b3c039d2dd8 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 29 Jan 2022 20:27:45 -0600 Subject: [PATCH] WIP mobile navbar --- web/components/amount-input.tsx | 2 +- web/components/nav-bar.tsx | 58 +++++++++++++++++++++++++++++++++ web/components/page.tsx | 2 +- web/pages/[username]/index.tsx | 2 ++ 4 files changed, 62 insertions(+), 2 deletions(-) diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index f01ae418..32c68222 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -60,7 +60,7 @@ export function AmountInput(props: { inputClassName )} ref={inputRef} - type="text" + type="number" placeholder="0" maxLength={9} value={amount ?? ''} diff --git a/web/components/nav-bar.tsx b/web/components/nav-bar.tsx index af0e1ad4..c028c173 100644 --- a/web/components/nav-bar.tsx +++ b/web/components/nav-bar.tsx @@ -6,6 +6,12 @@ import { Row } from './layout/row' import { firebaseLogin, User } from '../lib/firebase/users' import { ManifoldLogo } from './manifold-logo' import { ProfileMenu } from './profile-menu' +import { + BellIcon, + HomeIcon, + SearchIcon, + UserGroupIcon, +} from '@heroicons/react/outline' export function NavBar(props: { darkBackground?: boolean @@ -22,6 +28,7 @@ export function NavBar(props: { const themeClasses = clsx(darkBackground && 'text-white', hoverClasses) return ( + // <> + // {/* */} + // + ) +} + +// From https://codepen.io/chris__sev/pen/QWGvYbL +// TODO: Show a line above the navbar +// TODO: Don't show when logged out +function BottomNavBar() { + return ( + ) } diff --git a/web/components/page.tsx b/web/components/page.tsx index eff38e98..4ea43ea8 100644 --- a/web/components/page.tsx +++ b/web/components/page.tsx @@ -15,7 +15,7 @@ export function Page(props: {
('loading')