Added a weird little chat for shits and giggles
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
// islands/NavigationBar.tsx
|
||||
import { useComputed, useSignal } from "@preact/signals";
|
||||
import { useEffect } from "preact/hooks";
|
||||
import { LuCodeXml, LuHouse, LuNotebookPen } from "@preact-icons/lu";
|
||||
import {
|
||||
LuCodeXml,
|
||||
LuHouse,
|
||||
LuMessageCircle,
|
||||
LuNotebookPen,
|
||||
} from "@preact-icons/lu";
|
||||
|
||||
interface NavigationBarProps {
|
||||
currentPath: string;
|
||||
@ -57,6 +62,7 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a
|
||||
href="/posts"
|
||||
@ -67,6 +73,7 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a
|
||||
href="/projects"
|
||||
@ -77,6 +84,17 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a
|
||||
href="/chat"
|
||||
class={currentPath.startsWith("/chat") ? "menu-active" : ""}
|
||||
>
|
||||
<div class="tooltip" data-tip="Chat">
|
||||
<LuMessageCircle class="text-xl" />
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user