From a64af5f9cf9930540e3f64a0f7adf24bbfd102c1 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Tue, 23 Jun 2026 18:28:05 +0700 Subject: [PATCH] feat: apply theme colors to all pages and modals - implement light/dark theme CSS variables across UI components --- frontend/src/components/AddLocationModal.tsx | 84 +++++------ frontend/src/components/AddPhotoModal.tsx | 16 +-- frontend/src/components/CommentModal.tsx | 30 ++-- frontend/src/components/ConfirmModal.tsx | 12 +- frontend/src/components/CreateTourModal.tsx | 62 ++++----- .../src/components/JoinTourLoginModal.tsx | 24 ++-- frontend/src/components/LoginModal.tsx | 28 ++-- frontend/src/components/NotificationModal.tsx | 6 +- frontend/src/index.css | 130 +++++++++++++++--- frontend/src/pages/ExploreMap.tsx | 126 ++++++++--------- frontend/src/pages/JoinTourPage.tsx | 22 +-- frontend/src/pages/LandingPage.tsx | 2 +- frontend/src/pages/MyNotePage.tsx | 38 ++--- frontend/src/pages/MyPhotosPage.tsx | 2 +- frontend/src/pages/ShareJourneyPage.tsx | 58 ++++---- frontend/src/pages/SignupPage.tsx | 56 ++++---- frontend/src/pages/TourDetailPage.tsx | 20 +-- frontend/tailwind.config.ts | 53 ++++++- 18 files changed, 458 insertions(+), 311 deletions(-) diff --git a/frontend/src/components/AddLocationModal.tsx b/frontend/src/components/AddLocationModal.tsx index 00d68b4..ae7d47d 100644 --- a/frontend/src/components/AddLocationModal.tsx +++ b/frontend/src/components/AddLocationModal.tsx @@ -45,13 +45,13 @@ const MapPicker = ({ onPick, center }: { onPick: (latlng: L.LatLng) => void, cen {menuPos && (
@@ -387,18 +387,18 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin return (
-
+
-

+

{titleText}

-
{/* Mini Map Picker */} -
+
{/* Map Search Bar Overlay - Tích hợp tìm kiếm trực tiếp trên bản đồ */}
@@ -406,7 +406,7 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin handleSearchLocation(e.target.value)} /> @@ -417,7 +417,7 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin @@ -426,24 +426,24 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin {/* Dropdown kết quả tìm kiếm ngay trong khung bản đồ */} {(searchResults.length > 0 || hasNoResults) && ( -
+
{hasNoResults ? ( -
Không tìm thấy địa điểm phù hợp...
+
Không tìm thấy địa điểm phù hợp...
) : ( searchResults.map((result, idx) => ( )) )} @@ -457,7 +457,7 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin -
+
CHUỘT PHẢI ĐỂ CHỌN VỊ TRÍ
@@ -475,23 +475,23 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin
- + setFormData({...formData, name: e.target.value})} />
- - Address + setFormData({...formData, address: e.target.value})} />
- -