diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-26 02:26:33 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-26 02:27:55 +0000 |
| commit | d1e8b0017dee12e04dbad9e85f7a8b497e584d1b (patch) | |
| tree | ecf1cb4b9ec291776dada965179a2cf9652cc537 /apps/web/components/dashboard/sidebar | |
| parent | 4ab081511b328085d6c7c9990da2abc1a6e920e1 (diff) | |
| download | karakeep-d1e8b0017dee12e04dbad9e85f7a8b497e584d1b.tar.zst | |
ui: Migrate to the new logo everywhere
Diffstat (limited to 'apps/web/components/dashboard/sidebar')
| -rw-r--r-- | apps/web/components/dashboard/sidebar/ModileSidebar.tsx | 14 | ||||
| -rw-r--r-- | apps/web/components/dashboard/sidebar/ModileSidebarItem.tsx | 2 | ||||
| -rw-r--r-- | apps/web/components/dashboard/sidebar/Sidebar.tsx | 8 |
3 files changed, 10 insertions, 14 deletions
diff --git a/apps/web/components/dashboard/sidebar/ModileSidebar.tsx b/apps/web/components/dashboard/sidebar/ModileSidebar.tsx index 7306308d..635f63bd 100644 --- a/apps/web/components/dashboard/sidebar/ModileSidebar.tsx +++ b/apps/web/components/dashboard/sidebar/ModileSidebar.tsx @@ -1,10 +1,5 @@ -import { - ClipboardList, - PackageOpen, - Search, - Settings, - Tag, -} from "lucide-react"; +import HoarderLogoIcon from "@/public/icons/logo-icon.svg"; +import { ClipboardList, Search, Settings, Tag } from "lucide-react"; import MobileSidebarItem from "./ModileSidebarItem"; import SidebarProfileOptions from "./SidebarProfileOptions"; @@ -13,7 +8,10 @@ export default async function MobileSidebar() { return ( <aside className="w-full"> <ul className="flex justify-between space-x-2 border-b-black px-5 py-2 pt-5"> - <MobileSidebarItem logo={<PackageOpen />} path="/dashboard/bookmarks" /> + <MobileSidebarItem + logo={<HoarderLogoIcon className="w-5 fill-foreground" />} + path="/dashboard/bookmarks" + /> <MobileSidebarItem logo={<Search />} path="/dashboard/search" /> <MobileSidebarItem logo={<ClipboardList />} path="/dashboard/lists" /> <MobileSidebarItem logo={<Tag />} path="/dashboard/tags" /> diff --git a/apps/web/components/dashboard/sidebar/ModileSidebarItem.tsx b/apps/web/components/dashboard/sidebar/ModileSidebarItem.tsx index 3382f47b..4d3436ea 100644 --- a/apps/web/components/dashboard/sidebar/ModileSidebarItem.tsx +++ b/apps/web/components/dashboard/sidebar/ModileSidebarItem.tsx @@ -19,7 +19,7 @@ export default function MobileSidebarItem({ path == currentPath ? "bg-background" : "", )} > - <Link href={path} className="mx-auto px-3 py-2"> + <Link href={path} className="m-auto px-3 py-2"> {logo} </Link> </li> diff --git a/apps/web/components/dashboard/sidebar/Sidebar.tsx b/apps/web/components/dashboard/sidebar/Sidebar.tsx index 1c18e90c..08ad2936 100644 --- a/apps/web/components/dashboard/sidebar/Sidebar.tsx +++ b/apps/web/components/dashboard/sidebar/Sidebar.tsx @@ -1,9 +1,10 @@ import Link from "next/link"; import { redirect } from "next/navigation"; +import HoarderLogo from "@/components/HoarderIcon"; import { Separator } from "@/components/ui/separator"; import { api } from "@/server/api/client"; import { getServerAuthSession } from "@/server/auth"; -import { Home, PackageOpen, Search, Settings, Shield, Tag } from "lucide-react"; +import { Home, Search, Settings, Shield, Tag } from "lucide-react"; import serverConfig from "@hoarder/shared/config"; @@ -22,10 +23,7 @@ export default async function Sidebar() { return ( <aside className="flex h-screen w-60 flex-col gap-5 border-r p-4"> <Link href={"/dashboard/bookmarks"}> - <div className="flex items-center rounded-lg px-1 text-foreground"> - <PackageOpen /> - <span className="ml-2 text-base font-semibold">Hoarder</span> - </div> + <HoarderLogo height={20} gap="8px" /> </Link> <Separator /> <div> |
