-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d6c0c0
commit 7f05400
Showing
10 changed files
with
454 additions
and
64 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import AnimatedCard from '../../components/AnimatedCard/AnimatedCard'; | ||
import { achievements } from "../../constants/constants"; | ||
|
||
const Achievements = () => { | ||
return ( | ||
<div className="bg-blue-1000 text-white min-h-screen p-8"> | ||
|
||
<h2 className="text-3xl font-bold leading-tight text-transparent bg-clip-text bg-gradient-to-r from-teal-400 to-yellow-200 sm:text-4xl lg:text-5xl mt-16 items-center text-center"> | ||
OUR ACHIEVERS | ||
</h2> | ||
|
||
<div className="flex flex-wrap justify-center"> | ||
{achievements.map((event, index) => ( | ||
<div | ||
key={index} | ||
className="w-full md:w-1/2 p-4 flex justify-center" | ||
> | ||
<div | ||
className={`w-full max-w-2xl ${ | ||
index % 2 === 0 ? 'text-left' : 'text-right' | ||
}`} | ||
> | ||
<AnimatedCard | ||
img={event.img} | ||
title={event.name} | ||
date={event.batch} | ||
description={event.achievements} | ||
imageAlignment={index % 2 === 0 ? 'flex-row-reverse' : 'flex-row'} | ||
/> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Achievements; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import { motion } from 'framer-motion'; | ||
|
||
const AnimatedCard = ({ img, title, date, description, imageAlignment }) => { | ||
return ( | ||
<motion.div | ||
className={`bg-blue-900 shadow-card rounded-lg p-6 my-4 w-full min-h-[400px] flex flex-col items-center text-center transition duration-300 ease-in-out transform hover:scale-105 hover:shadow-glow-white`} | ||
style={{ width: '600px', height: '85%' }} | ||
initial={{ opacity: 0, y: -50 }} | ||
animate={{ opacity: 1, y: 0 }} | ||
transition={{ duration: 0.9 }} | ||
> | ||
{/* Image */} | ||
{img && ( | ||
<div> | ||
<img src={img} alt={title} className="w-32 h-36 object-cover rounded-full mx-auto" /> | ||
</div> | ||
)} | ||
|
||
{/* Content */} | ||
<div className="flex-grow flex flex-col justify-between"> | ||
<h3 className="text-center text-4xl font-semibold mt-4 text-white">{title}</h3> | ||
<p className="text-center text-lg text-gray-400">{date}</p> | ||
<div | ||
className="text-center text-white mt-4 text-xl" | ||
dangerouslySetInnerHTML={{ __html: description }} | ||
/> | ||
</div> | ||
</motion.div> | ||
); | ||
}; | ||
|
||
export default AnimatedCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters