From 8f31e1942f7840c3b875d61b88fbc1e315b6e887 Mon Sep 17 00:00:00 2001 From: tanyar09 Date: Fri, 5 Dec 2025 15:00:24 -0500 Subject: [PATCH] feat: Update UI components with logo integration and styling enhancements This commit enhances the Layout, Dashboard, Login, and PendingPhotos components by integrating a logo with fallback support and updating various UI styles for improved aesthetics. The Dashboard section's background gradient is replaced with a linear gradient, and text colors are adjusted for better visibility. Additionally, the PendingPhotos component's confirmation messages are clarified, and the cleanup functionality is refined to specify which records are affected. Documentation has been updated to reflect these changes. --- frontend/src/components/Layout.tsx | 24 ++++++++---- frontend/src/pages/Dashboard.tsx | 58 +++++++++++++--------------- frontend/src/pages/Login.tsx | 17 ++++++-- frontend/src/pages/PendingPhotos.tsx | 4 +- src/web/api/pending_photos.py | 21 +++++++--- 5 files changed, 76 insertions(+), 48 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index ec382ec..488f4e4 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -102,16 +102,26 @@ export default function Layout() { {/* Top bar */}
- {/* Left sidebar - fixed position */} -
- - 🏠 -

PunimTag

+ {/* Left sidebar - fixed position with logo */} +
+ + PunimTag { + // Fallback if logo.png doesn't exist, try logo.svg + const target = e.target as HTMLImageElement + if (target.src.endsWith('logo.png')) { + target.src = '/logo.svg' + } + }} + />
{/* Header content - aligned with main content */}
-
+

{getPageTitle()}

@@ -131,7 +141,7 @@ export default function Layout() {
{/* Left sidebar - fixed position */} -
+