diff --git a/src/components/dashboard/AppSidebar.vue b/src/components/dashboard/AppSidebar.vue index c1678c0..ce6ad46 100644 --- a/src/components/dashboard/AppSidebar.vue +++ b/src/components/dashboard/AppSidebar.vue @@ -23,6 +23,14 @@ import { SidebarFooter, SidebarHeader, } from "@/components/ui/sidebar" + +defineProps<{ + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] +}>() @@ -34,12 +42,18 @@ import { - - + + - \ No newline at end of file + diff --git a/src/components/dashboard/NavDocuments.vue b/src/components/dashboard/NavDocuments.vue index 6ed9613..5461522 100644 --- a/src/components/dashboard/NavDocuments.vue +++ b/src/components/dashboard/NavDocuments.vue @@ -26,6 +26,14 @@ const documentItems = [ { name: 'nav.wordAssistant', icon: IconFileWord, id: 'word-assistant' }, { name: 'nav.templates', icon: IconFileDescription, id: 'templates' }, ] + +defineProps<{ + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] +}>() @@ -33,13 +41,14 @@ const documentItems = [ {{ t('nav.documents') }} - - - - {{ t(item.name) }} - + + + {{ t(item.name) }} - \ No newline at end of file + diff --git a/src/components/dashboard/NavMain.vue b/src/components/dashboard/NavMain.vue index f3f44b8..44f70fa 100644 --- a/src/components/dashboard/NavMain.vue +++ b/src/components/dashboard/NavMain.vue @@ -30,6 +30,11 @@ const mainNavItems = [ defineProps<{ items?: { title: string; url: string; icon?: Component }[] + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] }>() @@ -49,7 +54,11 @@ defineProps<{ - + {{ t(item.title) }} @@ -57,4 +66,4 @@ defineProps<{ - \ No newline at end of file + diff --git a/src/components/dashboard/SectionCards.vue b/src/components/dashboard/SectionCards.vue index 6e9e73b..6291770 100644 --- a/src/components/dashboard/SectionCards.vue +++ b/src/components/dashboard/SectionCards.vue @@ -10,95 +10,41 @@ import { CardHeader, CardTitle, } from "@/components/ui/card" + +interface CardData { + label: string + value: string + trend: string + up: boolean +} + +defineProps<{ + cards?: CardData[] +}>() - + - Total Revenue + {{ card.label }} - $1,250.00 + {{ card.value }} - - +12.5% + + + {{ card.trend }} - Trending up this month + {{ card.up ? 'Trending up' : 'Trending down' }} - Visitors for the last 6 months - - - - - - New Customers - - 1,234 - - - - - -20% - - - - - - Down 20% this period - - - Acquisition needs attention - - - - - - Active Accounts - - 45,678 - - - - - +12.5% - - - - - - Strong user retention - - - Engagement exceed targets - - - - - - Growth Rate - - 4.5% - - - - - +4.5% - - - - - - Steady performance increase - - - Meets growth projections + {{ card.label }} diff --git a/src/components/dashboard/SiteHeader.vue b/src/components/dashboard/SiteHeader.vue index 96236bc..4d2878e 100644 --- a/src/components/dashboard/SiteHeader.vue +++ b/src/components/dashboard/SiteHeader.vue @@ -149,9 +149,13 @@ const groupedResults = computed(() => { - + - + + + + + Toggle theme diff --git a/src/style.css b/src/style.css index d8be4af..b5830c0 100644 --- a/src/style.css +++ b/src/style.css @@ -24,13 +24,13 @@ --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.97 0 0); + --secondary: oklch(0.95 0 0); --secondary-foreground: oklch(0.205 0 0); - --muted: oklch(0.97 0 0); + --muted: oklch(0.95 0 0); --muted-foreground: oklch(0.556 0 0); - --accent: oklch(0.97 0 0); + --accent: oklch(0.95 0 0); --accent-foreground: oklch(0.205 0 0); --destructive: oklch(0.577 0.245 27.325); @@ -50,7 +50,7 @@ --sidebar-foreground: oklch(0.145 0 0); --sidebar-primary: oklch(0.205 0 0); --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.97 0 0); + --sidebar-accent: oklch(0.95 0 0); --sidebar-accent-foreground: oklch(0.205 0 0); --sidebar-border: oklch(0.922 0 0); --sidebar-ring: oklch(0.708 0 0); diff --git a/src/views/NewDashboardView.vue b/src/views/NewDashboardView.vue index 954d1a2..e3c452c 100644 --- a/src/views/NewDashboardView.vue +++ b/src/views/NewDashboardView.vue @@ -1,27 +1,142 @@ - + - + + + + + + - \ No newline at end of file +