Skip to content

Commit

Permalink
Add padding under navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad committed Oct 21, 2023
1 parent ad0d61f commit 1d29a51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/app/[locale]/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ type ProfileLayoutProps = PropsWithChildren<LocaleRouteParams>

const ProfileLayout: FC<ProfileLayoutProps> = ({ children }) => {
return (
<>
<div className="pb-14">
{children}

<BottomNavbar />
</>
<BottomNavbar className="h-14" />
</div>
)
}

Expand Down
15 changes: 12 additions & 3 deletions src/components/navbar/bottom-navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,22 @@ import { DbEnvironmentTag } from '../db-environment-tag'
import { BottomNavbarItem } from './bottom-navbar-item'
import { getServerSession } from 'next-auth/next'
import { authOptions } from '~/server/auth'
import { cn } from '~/helpers/cn'
import { FC } from 'react'

export const BottomNavbar = async () => {
export const BottomNavbar: FC<{
className?: string
}> = async ({ className }) => {
const session = await getServerSession(authOptions)

return (
<nav className="fixed inset-x-0 bottom-0 border-t border-stone-200 bg-white shadow-xl">
<ul className="mx-auto grid h-12 max-w-2xl grid-cols-4">
<nav
className={cn(
'fixed inset-x-0 bottom-0 h-12 border-t border-stone-200 bg-white shadow-xl',
className
)}
>
<ul className="mx-auto grid h-full max-w-2xl grid-cols-4">
<BottomNavbarItem
url="/explore"
icon={<IconCompass />}
Expand Down

0 comments on commit 1d29a51

Please sign in to comment.