Skip to content

Commit 94e2e1b

Browse files
committed
Remove page background animations and page-image-box transition
- Converted motion.div page-image-box to regular div, removing fade-in transition - Converted motion.img background images to regular img tags, removing floating animations - Added explicit React import to fix JSX fragment syntax error
1 parent 26eeb5b commit 94e2e1b

1 file changed

Lines changed: 5 additions & 25 deletions

File tree

components/LandingPage.tsx

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22

3+
import React from "react";
34
import { useAuth } from "@/contexts/AuthContext";
45
import { motion, useInView } from "framer-motion";
56
import { useEffect, useRef, useState } from "react";
@@ -1038,7 +1039,7 @@ const LandingPage = () => {
10381039
</footer>
10391040

10401041
{/* Page Image Box */}
1041-
<motion.div
1042+
<div
10421043
className="page-image-box"
10431044
style={{
10441045
position: "absolute",
@@ -1048,9 +1049,6 @@ const LandingPage = () => {
10481049
zIndex: "-1",
10491050
height: "800px",
10501051
}}
1051-
initial={{ opacity: 0 }}
1052-
animate={{ opacity: 1 }}
1053-
transition={{ duration: 2, delay: 1 }}
10541052
>
10551053
{/* Page Image Inner */}
10561054
<div
@@ -1064,7 +1062,7 @@ const LandingPage = () => {
10641062
overflow: "hidden",
10651063
}}
10661064
>
1067-
<motion.img
1065+
<img
10681066
src="/page-bg-light.png"
10691067
alt="Page background"
10701068
className="block dark:hidden"
@@ -1077,17 +1075,8 @@ const LandingPage = () => {
10771075
height: "auto",
10781076
maxWidth: "1024px",
10791077
}}
1080-
animate={{
1081-
y: [0, -10, 0],
1082-
}}
1083-
transition={{
1084-
duration: 8,
1085-
ease: "easeInOut",
1086-
repeat: Infinity,
1087-
repeatType: "reverse" as const,
1088-
}}
10891078
/>
1090-
<motion.img
1079+
<img
10911080
src="/page-bg-dark.png"
10921081
alt="Page background"
10931082
className="hidden dark:block"
@@ -1100,18 +1089,9 @@ const LandingPage = () => {
11001089
height: "auto",
11011090
maxWidth: "1024px",
11021091
}}
1103-
animate={{
1104-
y: [0, -10, 0],
1105-
}}
1106-
transition={{
1107-
duration: 8,
1108-
ease: "easeInOut",
1109-
repeat: Infinity,
1110-
repeatType: "reverse" as const,
1111-
}}
11121092
/>
11131093
</div>
1114-
</motion.div>
1094+
</div>
11151095
</motion.div>
11161096
</>
11171097
);

0 commit comments

Comments
 (0)