From 441d7a1c4ec58ecc432d791ce7490843268be978 Mon Sep 17 00:00:00 2001 From: MIGHTY1o1 Date: Wed, 30 Oct 2024 19:51:48 +0530 Subject: [PATCH] solve conflicts --- src/components/Global/Hero.jsx | 234 +++++++++++++++++++++++++++------ 1 file changed, 195 insertions(+), 39 deletions(-) diff --git a/src/components/Global/Hero.jsx b/src/components/Global/Hero.jsx index 88a9a66..56f7485 100644 --- a/src/components/Global/Hero.jsx +++ b/src/components/Global/Hero.jsx @@ -1,47 +1,34 @@ -'use client' -import { motion } from "framer-motion"; -import { useState, useEffect } from "react"; +"use client"; +import React from 'react'; +import { motion, useScroll, useTransform, useSpring } from "framer-motion"; +import { Github, Instagram, Twitter, Linkedin, MapPin, Book, Users, Phone } from 'lucide-react'; -const HeroSkeleton = () => ( -
-
- - {/* Skeleton floating circles */} -
-
-
-
- - {/* Skeleton for text content */} -
-
-
-
-
- - {/* Skeleton for buttons */} -
-
-
-
-
-
+// Google Dot component with wavy animation effect +const GoogleDot = ({ color, delay = 0, size = "w-4 h-4" }) => ( + ); -const Hero = () => { - const [loading, setLoading] = useState(true); - // Simulate loading delay - useEffect(() => { - const timer = setTimeout(() => setLoading(false), 2000); // Adjust duration as needed - return () => clearTimeout(timer); - }, []); - - if (loading) { - return ; - } +const ParallaxSection = ({ children, yOffset = 0 }) => { + const ref = React.useRef(null); + const { scrollYProgress } = useScroll({ + target: ref, + offset: ["start end", "end start"] + }); + const y = useTransform(scrollYProgress, [0, 1], [0, yOffset]); return ( +<<<<<<< HEAD
{
+======= + + {children} + + ); +}; + +const GDSCLanding = () => { + const { scrollYProgress } = useScroll(); + const scaleX = useSpring(scrollYProgress, { stiffness: 100 }); + + return ( +
+ {/* Progress Bar */} + + + {/* Hero Section */} +
+
+ +
+ +
+ {/* Google Dots Wavy Animation */} +
+ + + + +
+ + + Bridging The Gap Between +
+ + Theory And Practice + +
+ + + The Google Developer Student Club at RCCIIT is a university-based community group powered by Google Developers. + + + + + + +
+
+ + {/* Vision Mission Goals Section with Parallax */} +
+
+ +
+ {[ + { + title: "🌟 Vision", + content: "Our vision is to create a world where technology and innovation lead to the betterment of human lives.", + color: "from-blue-500 to-blue-600" + }, + { + title: "🎯 Mission", + content: "Our mission is to empower individuals and organizations through cutting-edge technological solutions.", + color: "from-red-500 to-red-600" + }, + { + title: "🚀 Goal", + content: "Our goal is to continuously push the boundaries of what's possible and lead the way towards a more prosperous future.", + color: "from-yellow-500 to-yellow-600" + } + ].map((item, index) => ( + +
+

{item.title}

+

{item.content}

+
+
+ ))} +
+
+
+
+ {/* Resources Section */} + {/* Resources Section */} +
+
+ +

Resources

+

+ Explore key resources to help you get started, learn more, and apply your skills. +

+
+ +
+ {[ + { icon: , text: "Location" }, + { icon: , text: "About GDG" }, + { icon: , text: "How to Apply" }, + { icon: , text: "Who can apply?" } + ].map((item, index) => ( + +
{item.icon}
+

{item.text}

+
+ ))} +
+
+
+
+>>>>>>> 356d5ea (add revamp landing page) ); }; -export default Hero; +export default GDSCLanding;