bug fix on ssr; some layout details; navbar broken

This commit is contained in:
2023-10-08 14:10:39 -05:00
parent 9c967c3c8f
commit cd6cdc3fb5
7 changed files with 23 additions and 14 deletions

View File

@@ -1,7 +1,5 @@
import InProgress from "@/components/InProgress"; import InProgress from "@/components/InProgress";
export default async function ListenByCollectionID() { export default async function ListenByCollectionID() {
return <></> return <InProgress />
// // @ts-ignore server component
// return <InProgress />
} }

View File

@@ -5,7 +5,7 @@ export default async function ListenIndex() {
<div> <div>
<h1>Listen</h1> <h1>Listen</h1>
{/* @ts-ignore server component */} {/* @ts-ignore server component */}
{/* <InProgress /> */} <InProgress />
</div> </div>
) )
} }

7
app/projects/layout.tsx Normal file
View File

@@ -0,0 +1,7 @@
export default function ProjectsLayout({ children }: { children: React.ReactNode }) {
return (
<div className="min-h-screen bg-gradient-to-b from-slate-300 to-sky-700 dark:from-black dark:to-green-950">
{ children }
</div>
)
}

View File

@@ -4,8 +4,7 @@ export default async function ProjectsPage() {
return ( return (
<div> <div>
<h1>Learn more about my work</h1> <h1>Learn more about my work</h1>
{/* @ts-ignore server component */} <InProgress />
{/* <InProgress /> */}
</div> </div>
) )
} }

7
app/read/layout.tsx Normal file
View File

@@ -0,0 +1,7 @@
export default function ReadSectionLayout({ children }: { children: React.ReactNode }) {
return (
<div className="min-h-screen bg-gradient-to-b from-slate-300 to-fuchsia-100 dark:from-black dark:to-fuchsia-900">
{ children }
</div>
)
}

View File

@@ -1,3 +1,5 @@
export default function BlogIndex() { import InProgress from "@/components/InProgress";
return <div>BlogIndex</div>;
export default async function BlogIndex() {
return <InProgress />;
} }

View File

@@ -28,12 +28,8 @@ export default function Navbar() {
id="navbar" id="navbar"
className={` className={`
w-full z-50 fixed flex flex-nowrap items-baseline justify-apart px-8 py-4 w-full z-50 fixed flex flex-nowrap items-baseline justify-apart px-8 py-4
${mobileMenuOpen ${pageIsScrolled ? "bg-slate-300 dark:bg-black " : "bg-inherit "}
? "bg-slate-300 dark:bg-[#131313] " text-white transition-all duration-200`
: pageIsScrolled
? "bg-slate-300 dark:bg-black "
: "bg-inherit "
}text-white transition-all duration-200`
}> }>
<Link passHref href="/" className="w-1/4"> <Link passHref href="/" className="w-1/4">
<InlineLogo customHookInstance={navbarColorShift} /> <InlineLogo customHookInstance={navbarColorShift} />