From 696b321373c1dd2fb5303eddf6a029bdf57173cf Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 31 Aug 2025 14:12:58 +0200 Subject: [PATCH] Simplify member dashboard - remove points, payments, stats, and social features --- components/dashboard/ActivityTimeline.vue | 22 +- components/dashboard/EventsCard.vue | 24 +- components/dashboard/SimpleProfileCard.vue | 296 +++++++++++++++++++++ layouts/member.vue | 23 +- pages/member/dashboard/index.vue | 288 ++++---------------- 5 files changed, 353 insertions(+), 300 deletions(-) create mode 100644 components/dashboard/SimpleProfileCard.vue diff --git a/components/dashboard/ActivityTimeline.vue b/components/dashboard/ActivityTimeline.vue index c9acc33..c6f28af 100644 --- a/components/dashboard/ActivityTimeline.vue +++ b/components/dashboard/ActivityTimeline.vue @@ -65,7 +65,7 @@ import { computed } from 'vue'; interface TimelineActivity { id: string | number; - type: 'event' | 'payment' | 'achievement' | 'profile' | 'system'; + type: 'event' | 'profile'; title: string; description: string; timestamp: string | Date; @@ -92,10 +92,7 @@ const visibleActivities = computed(() => { const getIconColor = (type: string) => { const colors: Record = { event: 'error', - payment: 'success', - achievement: 'warning', - profile: 'info', - system: 'grey' + profile: 'info' }; return colors[type] || 'grey'; }; @@ -184,26 +181,11 @@ const formatTime = (timestamp: string | Date) => { background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05)); } - &--payment { - border-color: rgb(34, 197, 94); - background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05)); - } - - &--achievement { - border-color: rgb(245, 158, 11); - background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05)); - } - &--profile { border-color: rgb(59, 130, 246); background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05)); } - &--system { - border-color: rgb(156, 163, 175); - background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(156, 163, 175, 0.05)); - } - &--pulse { &::after { content: ''; diff --git a/components/dashboard/EventsCard.vue b/components/dashboard/EventsCard.vue index 7ca5faa..cae91e3 100644 --- a/components/dashboard/EventsCard.vue +++ b/components/dashboard/EventsCard.vue @@ -80,15 +80,9 @@ @@ -291,19 +285,13 @@ const formatDay = (dateString: string) => { border-top: 1px solid rgba(220, 38, 38, 0.1); } -.footer-stats { - display: flex; - gap: 1.5rem; - justify-content: center; -} - -.stat-item { +.footer-message { display: flex; align-items: center; - gap: 0.375rem; + justify-content: center; + gap: 0.5rem; font-size: 0.8125rem; color: rgb(107, 114, 128); - font-weight: 500; } @media (max-width: 640px) { diff --git a/components/dashboard/SimpleProfileCard.vue b/components/dashboard/SimpleProfileCard.vue new file mode 100644 index 0000000..46036f6 --- /dev/null +++ b/components/dashboard/SimpleProfileCard.vue @@ -0,0 +1,296 @@ + + + + + \ No newline at end of file diff --git a/layouts/member.vue b/layouts/member.vue index 8830487..42c4fe4 100644 --- a/layouts/member.vue +++ b/layouts/member.vue @@ -7,7 +7,7 @@ src="/MONACOUSA-Flags_376x376.png" width="80" height="80" - class="mx-auto mb-2 float-animation" + class="mx-auto mb-2" />
MonacoUSA Portal @@ -63,14 +63,6 @@ value="resources" class="glass-nav-item" /> - - @@ -240,19 +232,6 @@ watch(width, (newWidth) => { margin-bottom: 8px; } -.float-animation { - animation: float 3s ease-in-out infinite; -} - -@keyframes float { - 0%, 100% { - transform: translateY(0); - } - 50% { - transform: translateY(-10px); - } -} - // Monaco Text Colors .monaco-red-text { color: #dc2626 !important; diff --git a/pages/member/dashboard/index.vue b/pages/member/dashboard/index.vue index 207295f..87c45e6 100644 --- a/pages/member/dashboard/index.vue +++ b/pages/member/dashboard/index.vue @@ -1,182 +1,55 @@