Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Timeline feature #23

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"react-scripts": "5.0.1",
"react-scroll-to-top": "^3.0.0",
"react-type-animation": "^3.0.1",
"react-vertical-timeline-component": "^3.6.0",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
63 changes: 63 additions & 0 deletions src/components/Timeline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import React from "react";
import {
VerticalTimeline,
VerticalTimelineElement,
} from "react-vertical-timeline-component";
import "react-vertical-timeline-component/style.min.css";

// Icons for timeline elements
import { MdWork } from "react-icons/md";
import { BsPencilFill } from "react-icons/bs";
import { CgGoogle } from "react-icons/cg";
import { MdDownloading } from "react-icons/md";

const Timeline = () => {
return (
<div>
<VerticalTimeline>
<VerticalTimelineElement
className="vertical-timeline-element--work"
contentStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
date="Jan 2023 - present"
iconStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
icon={<MdWork />}
>
<h3 className="vertical-timeline-element-title">Devrel Intern</h3>
<h4 className="vertical-timeline-element-subtitle">Naas.ai</h4>
<p>Fullstack web developement, Python developement, Open-source, Technical documentation</p>
</VerticalTimelineElement>

<VerticalTimelineElement
className="vertical-timeline-element--work"
contentStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
date="Sep 2022 - Feb 2023"
iconStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
icon={<BsPencilFill />}
>
<h3 className="vertical-timeline-element-title">Technical Content Writing Intern</h3>
<h4 className="vertical-timeline-element-subtitle">Codedamn</h4>
<p>Published 15 blogs in domains of Python, Web developement, DataScience, Machine Learning, C-C++</p>
</VerticalTimelineElement>

<VerticalTimelineElement
className="vertical-timeline-element--work"
contentStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
date="July 2022 - present"
iconStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
icon={<CgGoogle />}
>
<h3 className="vertical-timeline-element-title">GDSC Lead</h3>
<h4 className="vertical-timeline-element-subtitle">PSG iTech</h4>
<p>Learnt about Google technologies like TensorFlow, Firebase, Angular & hosted events on the similar technologies</p>
</VerticalTimelineElement>

<VerticalTimelineElement
iconStyle={{ background: "rgb(0, 0, 0)", color: "#fff" }}
icon={<MdDownloading />}
/>
</VerticalTimeline>
</div>
);
};

export default Timeline;
2 changes: 2 additions & 0 deletions src/routes/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Navbar from '../components/Navbar';
import HeroImg from "../components/HeroImg";
import Project from "../components/Project";
// import Blog from '../components/Blog';
import Timeline from '../components/Timeline';
import Footer from '../components/Footer';
import ScrollTop from '../components/ScrollTop';

Expand All @@ -13,6 +14,7 @@ const Home = () => {
<HeroImg />
<Project />
{/* <Blog /> */}
<Timeline />
<Footer />
<ScrollTop />
</div>
Expand Down