-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d8adec
commit aeebc05
Showing
9 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"use client"; | ||
|
||
import { usePathname } from "next/navigation"; | ||
|
||
import { footer, nav } from "@bricesuazo/constant/config"; | ||
|
||
export default function ContentLayout( | ||
props: React.PropsWithChildren<{ title: string }>, | ||
) { | ||
const pathname = usePathname(); | ||
|
||
return ( | ||
<> | ||
<section className="relative"> | ||
<div className="grid h-80 place-items-center bg-cover bg-fixed bg-center pt-20 before:absolute before:inset-0 before:z-[-1] before:bg-[length:30px_30px] before:bg-center before:opacity-5 before:bg-grid-[#000] dark:before:bg-grid-[#fff]"> | ||
<h1 className="text-4xl font-bold"> | ||
{ | ||
nav.left | ||
.concat( | ||
footer.categories[footer.categories.length - 1]?.links ?? [], | ||
) | ||
.find((item) => item.href.includes(pathname))?.title | ||
} | ||
</h1> | ||
</div> | ||
</section> | ||
|
||
<hr className="m-[0_auto] mb-8 h-px w-full border-none bg-[linear-gradient(to_right,transparent,rgba(0,0,0,0.2)_50%,transparent)] duration-300 motion-reduce:transition-none dark:bg-[linear-gradient(to_right,transparent,rgba(255,255,255,0.1)_50%,transparent)]" /> | ||
{props.children} | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default function ProjectsPage() { | ||
return ( | ||
<> | ||
<h4 className="text-center text-lg font-medium"> | ||
Here's a list of projects I've worked on. | ||
</h4> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function UsesPage() { | ||
return <div>Work in progress...</div>; | ||
} |
2 changes: 1 addition & 1 deletion
2
apps/www/src/app/videos/page.tsx → apps/www/src/app/(content)/videos/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default function VideosPage() { | ||
return <div>Videos</div>; | ||
return <div>Work in progress...</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters