-
Notifications
You must be signed in to change notification settings - Fork 5
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
3bcc3a6
commit 7757dc5
Showing
14 changed files
with
1,852 additions
and
35 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
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,16 @@ | ||
import CountUp from "react-countup"; | ||
|
||
const Counter = ({ end, suffix, title }) => { | ||
return ( | ||
<CountUp start={0} end={end} suffix={suffix ? suffix : ""} delay={0}> | ||
{({ countUpRef }) => ( | ||
<div> | ||
<span ref={countUpRef} /> | ||
<h3>{title}</h3> | ||
</div> | ||
)} | ||
</CountUp> | ||
); | ||
}; | ||
|
||
export default Counter; |
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,58 @@ | ||
import Counter from "./Counter"; | ||
import { motion } from "framer-motion"; | ||
import "./achievements.css"; | ||
|
||
const CounterComponent = () => { | ||
return ( | ||
<> | ||
<div className="counter-row"> | ||
<div className="row-1"> | ||
<motion.div | ||
className="quadrant-1" | ||
initial={{ opacity: 0, translateX: -40 }} | ||
animate={{ opacity: 1, translateX: 0 }} | ||
transition={{ duration: 0.2, delay: 0.2 }} | ||
> | ||
<Counter end={985} title={" Offers"} /> | ||
</motion.div> | ||
<motion.div | ||
className="quadrant-1" | ||
initial={{ opacity: 0, translateX: -40 }} | ||
animate={{ opacity: 1, translateX: 0 }} | ||
transition={{ duration: 0.2, delay: 0.4 }} | ||
> | ||
<Counter end={100} suffix={"+"} title={"Companies Visited"} /> | ||
</motion.div> | ||
</div> | ||
<div className="row-2"> | ||
<motion.div | ||
className="quadrant-1" | ||
initial={{ opacity: 0, translateX: -40 }} | ||
animate={{ opacity: 1, translateX: 0 }} | ||
transition={{ duration: 0.2, delay: 0.6 }} | ||
> | ||
<Counter | ||
end={50} | ||
suffix={" LPA"} | ||
title={"Highest Package Offered"} | ||
/> | ||
</motion.div> | ||
<motion.div | ||
className="quadrant-1" | ||
initial={{ opacity: 0, translateX: -40 }} | ||
animate={{ opacity: 1, translateX: 0 }} | ||
transition={{ duration: 0.2, delay: 0.8 }} | ||
> | ||
<Counter | ||
end={7} | ||
suffix={" LPA"} | ||
title={"Average Package Offered"} | ||
/> | ||
</motion.div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default CounterComponent; |
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,15 @@ | ||
import PhotoAlbum from "react-photo-album"; | ||
import { photos } from "../../../data/Photos"; | ||
import "../achievements.css"; | ||
|
||
const News = () => { | ||
return ( | ||
<> | ||
<div className="news-container"> | ||
<PhotoAlbum layout="rows" photos={photos} /> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default News; |
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,28 @@ | ||
import LayoutItem from "./LayoutItem"; | ||
import { AchievementData } from "../../../data/AchievementData"; | ||
import "./styles.css"; | ||
|
||
import { motion } from "framer-motion"; | ||
|
||
const Layout = () => { | ||
return AchievementData.map((item) => { | ||
return ( | ||
<> | ||
<motion.div | ||
layout="position" | ||
transition={{ layout: { duration: 1, type: "spring" } }} | ||
className="App" | ||
> | ||
<LayoutItem | ||
key={item.id} | ||
title={item.title} | ||
content={item.content} | ||
image={item.image} | ||
/> | ||
</motion.div> | ||
</> | ||
); | ||
}); | ||
}; | ||
|
||
export default Layout; |
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,40 @@ | ||
import { useState } from "react"; | ||
import { motion } from "framer-motion"; | ||
import "./styles.css"; | ||
|
||
export default function Layout({ title, image, content }) { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
return ( | ||
<> | ||
<motion.div | ||
layout="position" | ||
transition={{ layout: { duration: 1, type: "spring" } }} | ||
onClick={() => setIsOpen(!isOpen)} | ||
className="card" | ||
style={{ | ||
boxShadow: | ||
" rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px", | ||
}} | ||
> | ||
<motion.div layout="position" className="avatar"> | ||
<motion.div layout="position" className="circle"> | ||
<motion.img | ||
layout="position" | ||
className="image-logo" | ||
src={image} | ||
alt="logo" | ||
/> | ||
</motion.div> | ||
<motion.h3>{title}</motion.h3> | ||
</motion.div> | ||
|
||
{isOpen && ( | ||
<motion.div> | ||
<p className="expand">{content}</p> | ||
</motion.div> | ||
)} | ||
</motion.div> | ||
</> | ||
); | ||
} |
Oops, something went wrong.