-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added simple navigation links and placeholder icons
- Loading branch information
Showing
4 changed files
with
36 additions
and
13 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
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,5 +1,21 @@ | ||
export function PlaceHolderComponent() { | ||
import React from "react"; | ||
|
||
interface NavbarLinkProps { | ||
href: string; | ||
icon: React.ComponentType<{ | ||
className?: string | ||
}>; | ||
label: string; | ||
isActive?: boolean | ||
} | ||
|
||
export function NavbarLink(props: NavbarLinkProps) { | ||
return ( | ||
<div>This is a placeholder component</div> | ||
<div className="flex flex-col items-center justify-center text-sm text-gray-500"> | ||
<a className="flex flex-col gap-0.5" href={props.href}> | ||
<props.icon className="text-4xl text-gray-800"/> | ||
{ props.label } | ||
</a> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
interface NavbarLinkProps { | ||
href: string; | ||
icon: string; | ||
label: string; | ||
isActive?: boolean | ||
} | ||
import {NavbarLink} from "./components/NavbarLink.tsx"; | ||
import { FaTasks } from "react-icons/fa"; | ||
import { HiOutlineChatBubbleOvalLeftEllipsis } from "react-icons/hi2"; | ||
import { GiNeedleDrill } from "react-icons/gi"; | ||
import { MdKeyboardCommandKey } from "react-icons/md"; | ||
|
||
|
||
export function NavbarLink(props: NavbarLinkProps) { | ||
export function Navbar() { | ||
return ( | ||
<div> | ||
links | ||
<div className="flex flex-col no-padding no-margin gap-5 justify-end flex-grow self-stretch"> | ||
<NavbarLink href="/" icon={MdKeyboardCommandKey} label="Control" /> | ||
<NavbarLink href="/configuration" icon={FaTasks} label="Config" /> | ||
<NavbarLink href="/stats" icon={HiOutlineChatBubbleOvalLeftEllipsis} label="Info" /> | ||
<NavbarLink href="/tools" icon={GiNeedleDrill} label="Tools" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import {Navbar} from "../../features/navbar"; | ||
|
||
export const Sidebar = () => { | ||
return <div className="border p-3 w-20">Sidebar</div>; | ||
return <div className="border p-3 w-20"> | ||
<Navbar /> | ||
</div>; | ||
}; |