-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
{/* Add more images here */}
@@ -254,3 +289,4 @@ export default function Event() {
>
);
}
+export default MainHOC(Event);
diff --git a/frontend/src/components/Pages/Home.jsx b/frontend/src/components/Pages/Home.jsx
index 2f5001f1..a37bf94c 100644
--- a/frontend/src/components/Pages/Home.jsx
+++ b/frontend/src/components/Pages/Home.jsx
@@ -1,20 +1,22 @@
-
-import Landing from "../ui/Landing";
-import ReviewCarousel from "../ui/ReviewCarousel";
-import FeedbackForm from "../ui/FeedbackForm";
-import About from "./About";
+import Landing from '../ui/Landing';
+import ReviewCarousel from '../ui/ReviewCarousel';
+import FeedbackForm from '../ui/FeedbackForm';
+import About from './About';
import React, { useEffect } from 'react';
+import MainHOC from '../MainHOC';
+
+function Home() {
+ useEffect(() => {
+ window.scrollTo(0, 0);
+ }, []);
+ return (
+
+ );
+}
-export default function Home() {
- useEffect(() => {
- window.scrollTo(0, 0);
- }, []);
- return (
-
- )
-}
\ No newline at end of file
+export default MainHOC(Home);
diff --git a/frontend/src/components/Pages/Menu.jsx b/frontend/src/components/Pages/Menu.jsx
index 70fdddae..73cb1402 100644
--- a/frontend/src/components/Pages/Menu.jsx
+++ b/frontend/src/components/Pages/Menu.jsx
@@ -1,11 +1,11 @@
-
-import { useState , useEffect } from 'react';
+import { useState, useEffect } from 'react';
import { motion } from 'framer-motion';
import Mybook from './MyBook';
import TodaysSpecial from './TodaysSpecial';
import { GiArrowDunk } from 'react-icons/gi';
import Cafe3dImg from '../../assets/Menu_assets/mega-creator.png';
+import MainHOC from '../MainHOC';
const parallaxVariants = {
initial: { scale: 1 },
animate: { scale: 1.05 },
@@ -71,15 +71,22 @@ function ParallaxImage() {
{/* Adjust this container */}
+
+ {' '}
+ {/* Adjust this container */}
-
{/* Add bottom padding here */}
+
+ {' '}
+ {/* Add bottom padding here */}
-
+
>
);
}
-export default ParallaxImage;
+export default MainHOC(ParallaxImage);
diff --git a/frontend/src/components/Pages/Register.jsx b/frontend/src/components/Pages/Register.jsx
index c55aff36..e8b660cd 100644
--- a/frontend/src/components/Pages/Register.jsx
+++ b/frontend/src/components/Pages/Register.jsx
@@ -1,13 +1,12 @@
+import { useState, useEffect } from 'react';
+import pic from '../../assets/img/abt1.jpg';
+import pic2 from '../../assets/img/abt1.png';
+import pic3 from '../../assets/img/abt2.png';
+import pic4 from '../../assets/img/abt3.png';
+import pic5 from '../../assets/img/abt4.png';
+import MainHOC from '../MainHOC';
-import { useState , useEffect } from "react";
-import pic from "../../assets/img/abt1.jpg";
-import pic2 from "../../assets/img/abt1.png";
-import pic3 from "../../assets/img/abt2.png";
-import pic4 from "../../assets/img/abt3.png";
-import pic5 from "../../assets/img/abt4.png";
-
-
-export default function Register() {
+function Register() {
const [date, setDate] = useState('');
const [time, setTime] = useState('');
const [guests, setGuests] = useState();
@@ -184,3 +183,4 @@ export default function Register() {
>
);
}
+export default MainHOC(Register);
diff --git a/frontend/src/components/Preloader.jsx b/frontend/src/components/Preloader.jsx
new file mode 100644
index 00000000..1be21786
--- /dev/null
+++ b/frontend/src/components/Preloader.jsx
@@ -0,0 +1,84 @@
+import { motion, AnimatePresence } from 'framer-motion';
+import { useEffect, useState } from 'react';
+
+const Preloader = () => {
+ const [loading, setLoading] = useState(true);
+ const [percentage, setPercentage] = useState(0);
+
+ // Simulate loading completion and faster percentage increment
+ useEffect(() => {
+ const loadingInterval = setInterval(() => {
+ setPercentage((prev) => {
+ if (prev >= 100) {
+ clearInterval(loadingInterval);
+ setTimeout(() => setLoading(false), 600); // Keep loading state true for the exit animation duration
+ return 100;
+ }
+ return prev + 1; // Increment percentage by 1 for a longer load time
+ });
+ }, 15); // Adjusted interval for a smoother, slower progression
+
+ return () => clearInterval(loadingInterval);
+ }, []);
+
+ // Skill Animation Variants
+ const skillVariants = {
+ initial: { y: '100%' },
+ animate: { y: -290 },
+ exit: { y: '100%' },
+ };
+
+ return (
+ <>
+