From aa177ed5ddce17473c019a23a652555f6bb9e9d2 Mon Sep 17 00:00:00 2001 From: Ezhil Shanmugham Date: Sun, 16 Nov 2025 20:57:52 +0530 Subject: [PATCH 1/3] style(sidebar): update sidebar colors --- apps/web/src/components/dashboard/Sidebar.tsx | 25 +++++++------------ .../src/components/sidebar/SidebarItem.tsx | 10 +++++--- apps/web/tailwind.config.ts | 5 ++-- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/apps/web/src/components/dashboard/Sidebar.tsx b/apps/web/src/components/dashboard/Sidebar.tsx index e8770831..77909102 100644 --- a/apps/web/src/components/dashboard/Sidebar.tsx +++ b/apps/web/src/components/dashboard/Sidebar.tsx @@ -3,7 +3,7 @@ import React, { useState } from "react"; import Link from "next/link"; import SidebarItem from "../sidebar/SidebarItem"; -import { usePathname, useRouter } from "next/navigation"; +import { useRouter } from "next/navigation"; import { IconWrapper } from "../ui/IconWrapper"; import { XMarkIcon, @@ -41,15 +41,9 @@ const SIDEBAR_ROUTES = [ }, ]; -const getSidebarLinkClassName = (currentPath: string, routePath: string) => { - const isActive = currentPath === routePath; - return `${isActive ? "text-ox-purple" : "text-ox-white"}`; -}; - export default function Sidebar() { const { showSidebar, setShowSidebar, isCollapsed, toggleCollapsed } = useShowSidebar(); - const pathname = usePathname(); const router = useRouter(); const { isPaidUser } = useSubscription(); @@ -74,7 +68,7 @@ export default function Sidebar() { }`} > {/* Mobile header */} -
+
-
+
{SIDEBAR_ROUTES.map((route) => { - const activeClass = getSidebarLinkClassName(pathname, route.path); return ( - + {!isCollapsed && !isPaidUser ? (
- +
-

+

Opensox Pro

@@ -189,7 +182,7 @@ function ProfileMenu({ isCollapsed }: { isCollapsed: boolean }) { return (
setOpen((s) => !s)} @@ -211,7 +204,7 @@ function ProfileMenu({ isCollapsed }: { isCollapsed: boolean }) {
{/* Profile Card Dropdown */} {!isCollapsed && open && ( -
+
{/* User Info Section */}
diff --git a/apps/web/src/components/sidebar/SidebarItem.tsx b/apps/web/src/components/sidebar/SidebarItem.tsx index ea2596e3..ce8a5ca1 100644 --- a/apps/web/src/components/sidebar/SidebarItem.tsx +++ b/apps/web/src/components/sidebar/SidebarItem.tsx @@ -15,13 +15,17 @@ export default function SidebarItem({ itemName, onclick, icon, collapsed = false
- {icon && {icon}} + {icon && ( + + {icon} + + )} {!collapsed && (
-

+

{itemName}

{badge} diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts index a5074ca3..b6abd8aa 100644 --- a/apps/web/tailwind.config.ts +++ b/apps/web/tailwind.config.ts @@ -57,8 +57,9 @@ const config: Config = { "ox-white": "text-slate-400", "ox-black-1": "#0E0E10", "ox-black-2": "#15161A", - "ox-sidebar": "#262626", - "ox-content": "#1E1E1E", + "ox-sidebar": "#141414", + "ox-profile-card": "#1E1E1E", + "ox-content": "#1A1A1A", "ox-header": "#363636", }, borderRadius: { From 308050d169c8bfa08382f6357b0a406ecd8e76ef Mon Sep 17 00:00:00 2001 From: Ezhil Shanmugham Date: Sun, 16 Nov 2025 21:27:21 +0530 Subject: [PATCH 2/3] feat(ui): add framer-motion animations to components --- apps/web/src/app/(main)/dashboard/layout.tsx | 10 +- apps/web/src/components/dashboard/Sidebar.tsx | 106 ++++++++++-------- 2 files changed, 69 insertions(+), 47 deletions(-) diff --git a/apps/web/src/app/(main)/dashboard/layout.tsx b/apps/web/src/app/(main)/dashboard/layout.tsx index 8eb8a054..936e28c7 100644 --- a/apps/web/src/app/(main)/dashboard/layout.tsx +++ b/apps/web/src/app/(main)/dashboard/layout.tsx @@ -1,5 +1,6 @@ "use client"; import Sidebar from "@/components/dashboard/Sidebar"; +import { AnimatePresence } from "framer-motion"; import FiltersContainer from "@/components/ui/FiltersContainer"; import { useFilterStore } from "@/store/useFilterStore"; import { useShowSidebar } from "@/store/useShowSidebar"; @@ -17,9 +18,16 @@ export default function DashboardLayout({ return (
{showFilters && } -