Compare commits
1 Commits
main
...
mobile-nav
Author | SHA1 | Date | |
---|---|---|---|
|
3717aeb016 |
|
@ -60,7 +60,7 @@ export function AmountInput(props: {
|
||||||
inputClassName
|
inputClassName
|
||||||
)}
|
)}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
type="text"
|
type="number"
|
||||||
placeholder="0"
|
placeholder="0"
|
||||||
maxLength={9}
|
maxLength={9}
|
||||||
value={amount ?? ''}
|
value={amount ?? ''}
|
||||||
|
|
|
@ -6,6 +6,12 @@ import { Row } from './layout/row'
|
||||||
import { firebaseLogin, User } from '../lib/firebase/users'
|
import { firebaseLogin, User } from '../lib/firebase/users'
|
||||||
import { ManifoldLogo } from './manifold-logo'
|
import { ManifoldLogo } from './manifold-logo'
|
||||||
import { ProfileMenu } from './profile-menu'
|
import { ProfileMenu } from './profile-menu'
|
||||||
|
import {
|
||||||
|
BellIcon,
|
||||||
|
HomeIcon,
|
||||||
|
SearchIcon,
|
||||||
|
UserGroupIcon,
|
||||||
|
} from '@heroicons/react/outline'
|
||||||
|
|
||||||
export function NavBar(props: {
|
export function NavBar(props: {
|
||||||
darkBackground?: boolean
|
darkBackground?: boolean
|
||||||
|
@ -22,6 +28,7 @@ export function NavBar(props: {
|
||||||
const themeClasses = clsx(darkBackground && 'text-white', hoverClasses)
|
const themeClasses = clsx(darkBackground && 'text-white', hoverClasses)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
// <>
|
||||||
<nav className={clsx('w-full p-4 mb-4', className)} aria-label="Global">
|
<nav className={clsx('w-full p-4 mb-4', className)} aria-label="Global">
|
||||||
<Row
|
<Row
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
@ -42,6 +49,57 @@ export function NavBar(props: {
|
||||||
</Row>
|
</Row>
|
||||||
</Row>
|
</Row>
|
||||||
</nav>
|
</nav>
|
||||||
|
// {/* <BottomNavBar /> */}
|
||||||
|
// </>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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 (
|
||||||
|
<nav className="md:hidden fixed bottom-0 inset-x-0 bg-white z-20 flex justify-between text-xs text-gray-700">
|
||||||
|
<Link href="/home">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
className="w-full block py-2 px-3 text-center hover:bg-blue-200 hover:text-blue-800 transition duration-300"
|
||||||
|
>
|
||||||
|
<HomeIcon className="h-6 w-6 my-1 mx-auto" aria-hidden="true" />
|
||||||
|
{/* Home */}
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link href="/markets">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
className="w-full block py-2 px-3 text-center hover:bg-blue-200 hover:text-blue-800"
|
||||||
|
>
|
||||||
|
<SearchIcon className="h-6 w-6 my-1 mx-auto" aria-hidden="true" />
|
||||||
|
{/* Explore */}
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link href="/folds">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
className="w-full block py-2 px-3 text-center hover:bg-blue-200 hover:text-blue-800"
|
||||||
|
>
|
||||||
|
<UserGroupIcon className="h-6 w-6 my-1 mx-auto" aria-hidden="true" />
|
||||||
|
{/* Folds */}
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link href="/home">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
className="w-full block py-2 px-3 text-center hover:bg-blue-200 hover:text-blue-800"
|
||||||
|
>
|
||||||
|
<BellIcon className="h-6 w-6 my-1 mx-auto" aria-hidden="true" />
|
||||||
|
{/* Notifs */}
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
</nav>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ export function Page(props: {
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'w-full mx-auto',
|
'w-full mx-auto pb-16',
|
||||||
wide ? 'max-w-6xl' : 'max-w-4xl',
|
wide ? 'max-w-6xl' : 'max-w-4xl',
|
||||||
margin && 'px-4'
|
margin && 'px-4'
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -6,6 +6,8 @@ import { UserPage } from '../../components/user-page'
|
||||||
import { useUser } from '../../hooks/use-user'
|
import { useUser } from '../../hooks/use-user'
|
||||||
import Custom404 from '../404'
|
import Custom404 from '../404'
|
||||||
|
|
||||||
|
// TODO: SEO component for hyperlinking to this page
|
||||||
|
|
||||||
export default function UserProfile() {
|
export default function UserProfile() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [user, setUser] = useState<User | null | 'loading'>('loading')
|
const [user, setUser] = useState<User | null | 'loading'>('loading')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user