import CompanyLink from "./CompanyLink"; type Experience = { title: string; company:…
- User
import CompanyLink from "./CompanyLink";
type Experience = { title: string; company: string; date: string; country: string; body: React.ReactNode; website: string; }; const ExperienceData: Experience[] = [ { website: "https://www.enos.dk", title: "Frontend Engineer", company: "Enosoft", date: "Sep 2024 - Current", country: "Denmark", body: ( <> Implementing Enos Restaurant Management System using React & React Native, improving user interaction speed by{" "} 20%. Collaborated with backend developers to optimize API integration, ensuring seamless cross-platform functionality </> ), }, { website: "https://dosoft.com.tr/", title: "Full Stack Engineer", company: "Dosoft", date: "Feb 2024 - Jun 2024", country: "Ankara, Turkey", body: ( <> Redesigned user interfaces using{" "} Tailwind CSS, React, and Next.js across multiple web applications, improving usability by 15% based on user feedback. Developed a real-time chat application using Socket.io and Express.js, enhancing client engagement and reducing response time by{" "} 50% </> ), }, { website: "https://www.digiole.com", title: "Machine Learning Trainee", company: "Digiole Oy", date: "Jun 2023 - Feb 2024", country: "Helsinki, Finland", body: ( <> Developed and implemented an AI-powered SaaS to label and classify public procurements, reducing processing time by{" "} 40% and achieving 55% annual cost savings for the client organization </> ), }, { website: "https://ankarabilim.edu.tr/en/index", title: "Student Teaching Assistant", company: "Ankara Science University", date: "Mar 2022 - Jun 2023", country: "Ankara, Turkey", body: ( <> Designed and delivered a comprehensive curriculum that enhanced the understanding of Object-Oriented Programming (OOP) principles and Java application development for 8 students, all of whom achieved at least a B </> ), }, ]; const Experience = () => { return ( {ExperienceData.map((item: Experience, index: number) => { return ( {item.title} {item.company} {item.date} {item.country} {item.body} ); })} ); };
export default Experience;
add a timeline for experiences using tailwind css
- Assistant
To add a timeline for the experiences in your React component using Tailwind CSS, you can create a vertical timeline layout. This will involve creating a container that holds your experiences, with each experience represented by a timeline item that includes a dot or line indicating the timeline progression.
Here’s how you can achieve this:
-
Create a Timeline Layout: Structure your experience items in a way that allows you to position them properly along a vertical axis, while using flexbox and positioning utilities to form a timeline.
-
Modify the Experience Component: Add the necessary markup and styles, adjusting the layout to accommodate the timeline design.
Here's the modified
Experiencecomponent:import CompanyLink from "./CompanyLink"; type Experience = { title: string; company: string; date: string; country: string; body: React.ReactNode; website: string; }; const ExperienceData: Experience[] = [ { website: "https://www.enos.dk", title: "Frontend Engineer", company: "Enosoft", date: "Sep 2024 - Current", country: "Denmark", body: ( <> Implementing <strong>Enos Restaurant Management System</strong> using React & React Native, improving user interaction speed by{" "} <strong>20%</strong>. Collaborated with backend developers to optimize API integration, ensuring seamless cross-platform functionality. </> ), }, { website: "https://dosoft.com.tr/", title: "Full Stack Engineer", company: "Dosoft", date: "Feb 2024 - Jun 2024", country: "Ankara, Turkey", body: ( <> Redesigned user interfaces using{" "} <strong>Tailwind CSS, React, and Next.js</strong> across multiple web applications, improving usability by <strong>15%</strong> based on user feedback. Developed a real-time chat application using Socket.io and Express.js, enhancing client engagement and reducing response time by{" "} <strong>50%</strong>. </> ), }, { website: "https://www.digiole.com", title: "Machine Learning Trainee", company: "Digiole Oy", date: "Jun 2023 - Feb 2024", country: "Helsinki, Finland", body: ( <> Developed and implemented an <strong>AI-powered SaaS</strong> to label and classify public procurements, reducing processing time by{" "} <strong>40%</strong> and achieving <strong>55%</strong> annual cost savings for the client organization. </> ), }, { website: "https://ankarabilim.edu.tr/en/index", title: "Student Teaching Assistant", company: "Ankara Science University", date: "Mar 2022 - Jun 2023", country: "Ankara, Turkey", body: ( <> Designed and delivered a comprehensive curriculum that enhanced the understanding of Object-Oriented Programming (OOP) principles and Java application development for 8 students, all of whom achieved at least a B. </> ), }, ]; const Experience = () => { return ( <div className="mt-8"> <div className="relative"> <div className="border-l border-gray-300"> {ExperienceData.map((item: Experience, index: number) => { const timelineEntryStyle = index % 2 === 0 ? 'left-[-15px]' : 'right-[-15px]'; return ( <div key={index} className="relative mb-8 flex flex-col"> <div className={`absolute w-3 h-3 rounded-full bg-blue-600 ${timelineEntryStyle} top-2`} /> <div className="bg-white shadow-[0_4px_4px_rgba(0,0,0,0.25)] rounded-[15px] py-4 px-6 w-full mx-auto flex flex-col pl-4"> <div className="flex justify-between"> <div> <div className="lg:text-[18px] font-bold text-header"> {item.title} </div> <div className="text-[16px] flex items-center gap-1"> {item.company} <CompanyLink href={item.website} /> </div> </div> <div> <div className="text-[14px] font-semibold flex items-center text-end"> {item.date} </div> <div className="flex justify-end text-[14px]"> {item.country} </div> </div> </div> <div className="my-4 text-[14px]">{item.body}</div> </div> </div> ); })} </div> </div> </div> ); }; export default Experience;Explanation:
- Container: A
divwithborder-lcreates the left border for the timeline. You can adjust the border color and styling as needed. - Timeline Dots: Each experience entry has an absolutely positioned dot (
bg-blue-600) that acts as the timeline marker. - Entries: Each experience item (
bg-white) displays content within a white card that aligns with the corresponding timeline marker.
Adjustments:
- You can customize the appearance further using Tailwind's utilities, like colors (e.g.,
bg-blue-600), spacing (margin and padding), and shadows to match your design. - You can switch to right or left positioning based on the odd/even index to create a staggered effect.
- The timeline can be enhanced with animations as needed, using CSS transitions or libraries like Framer Motion.
Feel free to adjust the Tailwind classes to fit your overall design aesthetic!
-