From edc165d63e3711b70d1a320c0d8f9d170c3d0ed3 Mon Sep 17 00:00:00 2001 From: tejask011 Date: Mon, 3 Aug 2026 23:45:15 +0530 Subject: [PATCH] feat: add Reviews modal popup triggered from navbar - Add
as a modal overlay (not inline section) - Reviews modal contains: existing reviews grid + submit form (name, star rating, review text) - Clicking REVIEWS navbar/footer link opens modal instead of scrolling - Intercept #reviews in smoothScroll() identical to #reservation pattern - Add openReviewsModal / closeReviewsModal / setupReviewsModal functions - Close on: X button, backdrop click, Escape key - Auto-close modal 1.5s after successful review submission - Add full CSS for .reviews-modal matching existing reservation modal style - Fix translation key: reviews.name_label -> reviews.name (matches locale files) - Add data-i18n-placeholder for name input Fixes #1127 --- index.html | 63 +++++++++++++++++ script.js | 57 ++++++++++++++++ style.css | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 313 insertions(+) diff --git a/index.html b/index.html index 06cedd8..636d1f2 100644 --- a/index.html +++ b/index.html @@ -966,6 +966,69 @@