Skip to content

Commit

Permalink
Merge pull request #56 from DevaduttM/main
Browse files Browse the repository at this point in the history
info change and other changes
  • Loading branch information
DevaduttM authored Nov 28, 2024
2 parents 496ca6d + e636ce5 commit bb0ffda
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 25 deletions.
51 changes: 29 additions & 22 deletions src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Contact from "../components/Contact/ContactPage";
import Intro from "../components/Intro";
import TimelineSection from "../components/Timeline/Timeline";
import Loading from "./loading";
import {AnimatePresence, motion} from "framer-motion"

export default function Home() {
const [isLoading, setIsLoading] = useState(true);
Expand All @@ -35,30 +36,36 @@ export default function Home() {
};
}, []);

if (isLoading) {
return <Loading />;
}

return (
<div className="text-white">
<Navbar />
<BlobAnimation />

{/* <CountdownTimer
targetDate={new Date("December 21, 2024 09:30:00").getTime()}
/> */}

{/* <Intro /> */}
<About />
<WhyParticipate />
<Prizes />
<Partners />
{/* <Highlights /> */}
<TimelineSection />
{/* <AccordionImageGallery /> */}
<FAQ />
<Contact />
<Footer />
</div>
return (
<AnimatePresence >
{isLoading ? (
<motion.div
key="loading-screen"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0.5 }}
transition={{ duration: 0.05, ease: 'easeIn' }}
className="h-screen w-screen overflow-hidden"
>
<Loading />
</motion.div>
) : (
<div className="text-white">
<Navbar />
<BlobAnimation />
<About />
<WhyParticipate />
<Prizes />
<Partners />
<TimelineSection />
<FAQ />
<Contact />
<Footer />
</div>
)}
</AnimatePresence>
);
}
8 changes: 8 additions & 0 deletions src/components/About/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@
width: 100vw;
}

.bottom-rightt{
position: absolute;
bottom: 0;
right: 0;
width: 100vw;
height: 100vh;
}

.circle1 {
position: absolute;
bottom: -450px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/About/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import circle3 from "../../assets/backgrounds/about/circle3.png";

const About = () => {
return (
<div className="relative overflow-hidden">
<div className="relative">
<div className="absolute bg-gradient-to-b from-[#0a0a0a] from-10% to-transparent z-50 bg-no-repeat right-0 left-0 top-0 min-h-32" />
<div id="about" className="about-container pt-[80px]">
<Image className="pointer-events-none top-left" src={top_left} />
<Image
className="pointer-events-none bottom-right z-0"
className="pointer-events-none bottom-rightt z-0"
src={bottom_right}
/>
<Image className="pointer-events-none circle1" src={circle1} />
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export const TimelineData = [
{
date: "22nd Decemeber",
title: "Hackathon - Day 2",
para: "Hackathon Concludes and Closing Ceremony",
para: "Hackathon Concludes and Closing Ceremony at 12 pm",
},
];
1 change: 1 addition & 0 deletions src/styles/loading.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
width: 100%;
height: 100%;
text-align: center;
overflow: hidden;
}
.landingbody .vertical-centered-box:after {
content: '';
Expand Down

0 comments on commit bb0ffda

Please sign in to comment.