Skip to content

Commit

Permalink
Add navigation to project title and breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
saisab29 committed Dec 9, 2024
1 parent 405f3ac commit d6600b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import Link from "next/link";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
Expand Down Expand Up @@ -29,9 +30,9 @@ export default function RootLayout({
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<div className="border-b-2 border-gray-300 py-4">
<h1 className="flex font-bold text-lg justify-center ">
<Link href="/" className="flex font-bold text-lg justify-center ">
Cardanoapi Projects
</h1>
</Link>
</div>

{children}
Expand Down
6 changes: 4 additions & 2 deletions src/app/projects/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export default function Project() {
<>
<div className="flex-col w-9/12 m-auto overflow-x-hidden py-4">
<div className="hidden sm:block">
<span className="text-[#1A80E5]">Projects</span> /{" "}
{project?.projectName}
<Link href="/" className="text-[#1A80E5]">
Projects
</Link>{" "}
/ {project?.projectName}
</div>
<div className="py-4 flex flex-col">
<div className="flex h-24 sm:h-32">
Expand Down

0 comments on commit d6600b9

Please sign in to comment.