Skip to content

Commit 57f9d4e

Browse files
authored
Update About.tsx
1 parent 08820dd commit 57f9d4e

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/pages/About/About.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { motion } from "framer-motion";
22
import { Lightbulb, Users, Settings, Search } from "lucide-react";
3+
import { useEffect } from "react";
34

45
const features = [
56
{
@@ -20,20 +21,23 @@ const features = [
2021
];
2122

2223
const About = () => {
24+
useEffect(() => {
25+
window.scrollTo(0, 0);
26+
}, []);
2327
return (
2428
<div className="bg-gradient-to-br from-white to-gray-100 dark:from-gray-900 dark:to-gray-800 text-black dark:text-white min-h-screen">
25-
29+
2630
{/* Hero Section */}
2731
<section className="py-24 text-center relative overflow-hidden">
28-
<motion.h1
32+
<motion.h1
2933
className="text-5xl font-extrabold mb-4 drop-shadow-sm"
3034
initial={{ opacity: 0, y: -20 }}
3135
animate={{ opacity: 1, y: 0 }}
3236
transition={{ duration: 0.6 }}
3337
>
3438
About Us
3539
</motion.h1>
36-
<motion.p
40+
<motion.p
3741
className="text-xl max-w-xl mx-auto text-gray-600 dark:text-gray-300"
3842
initial={{ opacity: 0 }}
3943
animate={{ opacity: 1 }}
@@ -45,7 +49,7 @@ const About = () => {
4549

4650
{/* Mission Section */}
4751
<section className="py-20 px-6 bg-white dark:bg-gray-900 text-center">
48-
<motion.div
52+
<motion.div
4953
initial={{ opacity: 0, y: 10 }}
5054
whileInView={{ opacity: 1, y: 0 }}
5155
transition={{ duration: 0.5 }}

0 commit comments

Comments
 (0)