From 5b522a4bc8181d10d25f521934e5857b0d818a87 Mon Sep 17 00:00:00 2001 From: josedario87 <71241187+josedario87@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:13:13 -0600 Subject: [PATCH 1/4] style(ui): transparent navbar with accent hover --- ui/src/components/ui/NavBar.vue | 55 +++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/ui/src/components/ui/NavBar.vue b/ui/src/components/ui/NavBar.vue index c305835..cc7d889 100644 --- a/ui/src/components/ui/NavBar.vue +++ b/ui/src/components/ui/NavBar.vue @@ -19,6 +19,15 @@ const route = useRoute() const activePath = ref(route.path) watch(route, v => (activePath.value = v.path)) +const accentColorForPath = (path) => { + if (path.startsWith('/empleados')) return ui.accentColorEmpleados + if (path.startsWith('/tareas')) return ui.accentColorTareas + if (path.startsWith('/planillas')) return ui.accentColorPlanillas + if (path.startsWith('/asistencias')) return ui.accentColorAsistencias + if (path.startsWith('/config')) return ui.accentColorConfiguracion + return ui.accentColorChat +} + // clases dinámicas p/ mostrar / ocultar barra const sidebarClasses = computed(() => ui.sidebarOpen ? 'translate-x-0' : '-translate-x-full') @@ -39,16 +48,13 @@ const handleLinkClick = () => {