From 0c4c30d1a05e216dfcb52c3c0b2213cda17da3e6 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Fri, 27 Feb 2026 18:16:38 +0100 Subject: [PATCH] Refactor: Modernize Activity page UI to match site design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update page structure: - Rename wrapper class to 'activity' (matches AdminPage pattern) - Update h1 to activity__title with consistent styling - Organize content with BEM naming convention Redesign controls: - Replace basic input with styled input-wrapper component - Add input-suffix "days" label inside input container - Custom number input styling with hover/focus states - Better ToggleButton integration with control-label - Responsive flex layout with proper mobile handling Enhance chart presentation: - Wrap each graph in chart-card component - Add background, borders, and rounded corners - Clear chart-card__title headers - Fixed height charts (35vh desktop, 30vh mobile) - Minimum height prevents squashing (300px/250px) - Consistent spacing and padding Improve top content section: - Grid layout for top content items (3 cols → 1 col mobile) - Card-based items with borders and hover effects - Hover: border highlight + translateY animation - Better visual hierarchy with section-title Styling details: - Use CSS variables (--background-ui, --text-color-50, etc.) - Match AdminPage typography (2rem title, 300 weight) - Consistent border-radius (12px cards, 8px inputs) - Proper mobile-only responsive breakpoints - Remove old commented-out code Result: Professional, cohesive design matching rest of site ✨ --- src/pages/ActivityPage.vue | 304 +++++++++++++++++++++++++------------ 1 file changed, 205 insertions(+), 99 deletions(-) diff --git a/src/pages/ActivityPage.vue b/src/pages/ActivityPage.vue index 803742c..dd7e2d0 100644 --- a/src/pages/ActivityPage.vue +++ b/src/pages/ActivityPage.vue @@ -1,6 +1,6 @@