Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50d5751c9c | |||
| ff5d6f95a7 | |||
| 160e6c0508 | |||
| f51e94b0ec |
@@ -5,7 +5,8 @@ import "./globals.css";
|
|||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Ajanta Elite - South Indian Cuisine", description: "Experience elite South Indian hospitality with crispy dosas, soft idlis, and exceptional service in Belgaum."};
|
title: "Ajanta Elite - South Indian Cuisine", description: "Experience elite South Indian hospitality with crispy dosas, soft idlis, and exceptional service in Belgaum."
|
||||||
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
@@ -13,8 +14,20 @@ export default function RootLayout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body className={inter.className}>{children}
|
<body className={inter.className}>
|
||||||
|
{children}
|
||||||
|
<script dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
try {
|
||||||
|
const stored = localStorage.getItem('theme');
|
||||||
|
if (stored) document.documentElement.setAttribute('data-theme', stored);
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
}} />
|
||||||
|
|
||||||
<script
|
<script
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `
|
__html: `
|
||||||
@@ -1384,4 +1397,4 @@ export default function RootLayout({
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { useState } from 'react';
|
||||||
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
||||||
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
|
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
|
||||||
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
|
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
|
||||||
@@ -10,9 +11,15 @@ import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
|
|||||||
import ContactSplit from '@/components/sections/contact/ContactSplit';
|
import ContactSplit from '@/components/sections/contact/ContactSplit';
|
||||||
import FooterBase from '@/components/sections/footer/FooterBase';
|
import FooterBase from '@/components/sections/footer/FooterBase';
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import { Armchair, CheckCircle, Clock, Leaf, Shield, Sparkles, MapPin, Clock as ClockIcon, Phone } from 'lucide-react';
|
import { Armchair, CheckCircle, Clock, Leaf, Shield, Sparkles } from 'lucide-react';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const [mounted, setMounted] = useState(true);
|
||||||
|
|
||||||
|
if (!mounted) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="directional-hover"
|
defaultButtonVariant="directional-hover"
|
||||||
@@ -189,7 +196,6 @@ export default function LandingPage() {
|
|||||||
inputPlaceholder="📍 Belgaum | 📞 +91-9876543210 | ⏰ 6:30 AM - 11:00 PM"
|
inputPlaceholder="📍 Belgaum | 📞 +91-9876543210 | ⏰ 6:30 AM - 11:00 PM"
|
||||||
buttonText="Reserve Your Table"
|
buttonText="Reserve Your Table"
|
||||||
termsText="Call us at +91-9876543210 or visit us directly. We're open daily from 6:30 AM to 11:00 PM. Located in the heart of Belgaum with easy parking."
|
termsText="Call us at +91-9876543210 or visit us directly. We're open daily from 6:30 AM to 11:00 PM. Located in the heart of Belgaum with easy parking."
|
||||||
onSubmit={(email: string) => { console.log('Reservation request:', email); }}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -227,4 +233,4 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user