edits
This commit is contained in:
@@ -34,10 +34,8 @@ const Header = () => {
|
|||||||
const [languageAnchor, setLanguageAnchor] = useState(null);
|
const [languageAnchor, setLanguageAnchor] = useState(null);
|
||||||
const [scrolled, setScrolled] = useState(false);
|
const [scrolled, setScrolled] = useState(false);
|
||||||
|
|
||||||
// ✅ لون غامق ثابت للهيدر الفاتح (حتى لو الثيم Dark)
|
|
||||||
const lightHeaderText = '#1a1a1a';
|
const lightHeaderText = '#1a1a1a';
|
||||||
|
|
||||||
// ✅ Pending 17: Book Now -> WhatsApp with preset message
|
|
||||||
const WA_NUMBER = '963986105010';
|
const WA_NUMBER = '963986105010';
|
||||||
const WA_TEXT = encodeURIComponent(
|
const WA_TEXT = encodeURIComponent(
|
||||||
'For all booking inquiries and reservation confirmations, kindly contact us via WhatsApp'
|
'For all booking inquiries and reservation confirmations, kindly contact us via WhatsApp'
|
||||||
@@ -66,7 +64,6 @@ const Header = () => {
|
|||||||
return () => window.removeEventListener('scroll', handleScroll);
|
return () => window.removeEventListener('scroll', handleScroll);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// ✅ صفحات الخلفية عندها فاتحة (زيدي هون أي route تاني)
|
|
||||||
const lightHeaderRoutes = ['/facilities', '/contact'];
|
const lightHeaderRoutes = ['/facilities', '/contact'];
|
||||||
const forceLightHeader = lightHeaderRoutes.some(
|
const forceLightHeader = lightHeaderRoutes.some(
|
||||||
(r) => location.pathname === r || location.pathname.startsWith(r + '/')
|
(r) => location.pathname === r || location.pathname.startsWith(r + '/')
|
||||||
@@ -128,7 +125,6 @@ const Header = () => {
|
|||||||
</ListItem>
|
</ListItem>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{/* ✅ Pending 17: Drawer Book Now -> WhatsApp */}
|
|
||||||
<ListItem disablePadding>
|
<ListItem disablePadding>
|
||||||
<ListItemButton
|
<ListItemButton
|
||||||
component="a"
|
component="a"
|
||||||
@@ -239,7 +235,6 @@ const Header = () => {
|
|||||||
<LanguageIcon />
|
<LanguageIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
{/* ✅ Pending 17: Book Now -> WhatsApp */}
|
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, scale: 0.9 }}
|
initial={{ opacity: 0, scale: 0.9 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
|
|||||||
@@ -96,6 +96,7 @@
|
|||||||
"email": "البريد الإلكتروني",
|
"email": "البريد الإلكتروني",
|
||||||
"hours": "ساعات العمل",
|
"hours": "ساعات العمل",
|
||||||
"name": "الاسم الكامل",
|
"name": "الاسم الكامل",
|
||||||
|
"subject": "الموضوع",
|
||||||
"message": "الرسالة",
|
"message": "الرسالة",
|
||||||
"sendMessage": "إرسال رسالة",
|
"sendMessage": "إرسال رسالة",
|
||||||
"messageSent": "تم إرسال الرسالة بنجاح!",
|
"messageSent": "تم إرسال الرسالة بنجاح!",
|
||||||
|
|||||||
@@ -99,6 +99,8 @@
|
|||||||
"message": "Message",
|
"message": "Message",
|
||||||
"sendMessage": "Send Message",
|
"sendMessage": "Send Message",
|
||||||
"messageSent": "Message sent successfully!",
|
"messageSent": "Message sent successfully!",
|
||||||
|
"whatsappOpened": "WhatsApp opened. Press Send inside WhatsApp to deliver your message.",
|
||||||
|
"requiredFields": "Please fill the required fields (name, email, message).",
|
||||||
"directions": "Get Directions",
|
"directions": "Get Directions",
|
||||||
"whatsapp": "WhatsApp"
|
"whatsapp": "WhatsApp"
|
||||||
},
|
},
|
||||||
|
|||||||
6
package-lock.json
generated
Normal file
6
package-lock.json
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "oldvine",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user