Skip to content

Commit

Permalink
navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
g4ze committed Jul 6, 2024
1 parent 045792b commit 8565fbb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fe/app/service/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function ServicePage() {
}
};
fetchData();
}, ['const']);
}, );



Expand All @@ -57,7 +57,7 @@ export default function ServicePage() {

return (
<>
<Navbar serviceName='new Deployment'/>
<Navbar Name='new Deployment'/>
<div className="grid grid-cols-11 h-screen text-gray-400">
<div className="col-span-2 border-r-2 border-gray-300 flex justify-center pt-8">
<ul className="w-full">
Expand Down
11 changes: 8 additions & 3 deletions fe/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
export default function Navbar({serviceName}:{serviceName?:string}) {
"use client"
import { usePathname } from "next/navigation";

export default function Navbar({Name}:{Name?:string}) {
// get the current url
const path=usePathname()
return (


<nav className="sticky bg-white border-gray-200 dark:bg-gray-900 dark:border-gray-700">
<div className="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4">
<a href="#" className="flex items-center space-x-3 rtl:space-x-reverse">
<img src="https://flowbite.com/docs/images/logo.svg" className="h-8" alt="Flowbite Logo" />
<span className="self-center text-2xl font-semibold whitespace-nowrap dark:text-white">Flowbite /</span>
<span className="self-center text-2xl font-semibold whitespace-nowrap dark:text-white">Flowbite</span>
<div className="self-center text-1xl font-semibold whitespace-nowrap dark:text-white">
{serviceName}
/ {Name}
</div>
</a>

Expand Down
Binary file removed main
Binary file not shown.

0 comments on commit 8565fbb

Please sign in to comment.