fix nav
This commit is contained in:
parent
681afd89f2
commit
cb8936a53b
@ -153,15 +153,11 @@ const GalleryImage = ({ data, location: { state } }) => {
|
|||||||
<Nav
|
<Nav
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
internalLinks={[
|
internalLinks={[
|
||||||
{ href: "/", label: "Home" },
|
|
||||||
{
|
{
|
||||||
href: getGalleryPageUrl(
|
href: "/",
|
||||||
{ keyword: filterKeyword, sortKey },
|
|
||||||
image.base
|
|
||||||
),
|
|
||||||
label: (
|
label: (
|
||||||
<>
|
<>
|
||||||
Gallery <kbd>esc</kbd>
|
Home <kbd>esc</kbd>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -43,7 +43,7 @@ const Nav = ({ isClient, internalLinks, className }: NavProps) => {
|
|||||||
: "border border-white"
|
: "border border-white"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{/* <ul className="inline-flex flex-wrap justify-center">
|
<ul className="inline-flex flex-wrap justify-center">
|
||||||
{internalLinks &&
|
{internalLinks &&
|
||||||
internalLinks.map(({ href, label }) => (
|
internalLinks.map(({ href, label }) => (
|
||||||
<li key={href}>
|
<li key={href}>
|
||||||
@ -57,7 +57,7 @@ const Nav = ({ isClient, internalLinks, className }: NavProps) => {
|
|||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
{internalLinks && currentBreakpoint !== "XS" && <>|</>} */}
|
{internalLinks && currentBreakpoint !== "XS" && <>|</>}
|
||||||
{currentBreakpoint === "XS" && (
|
{currentBreakpoint === "XS" && (
|
||||||
<button
|
<button
|
||||||
className="mx-2 hover:underline inline-flex align-middle"
|
className="mx-2 hover:underline inline-flex align-middle"
|
||||||
|
@ -169,7 +169,6 @@ const GalleryPage = ({ data }: PageProps<Queries.GalleryPageQueryQuery>) => {
|
|||||||
className="mb-4"
|
className="mb-4"
|
||||||
internalLinks={[
|
internalLinks={[
|
||||||
{ href: "/", label: "Home" },
|
{ href: "/", label: "Home" },
|
||||||
{ href: "/photogallery/", label: "Gallery" },
|
|
||||||
]}
|
]}
|
||||||
></Nav>
|
></Nav>
|
||||||
<div className="flex flex-col lg:flex-row lg:items-end justify-between">
|
<div className="flex flex-col lg:flex-row lg:items-end justify-between">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user