profile / src /components /ExperienceCard.js
n0w0f's picture
Replace FastAPI with React portfolio
c990683
raw
history blame contribute delete
670 Bytes
import React from 'react';
const ExperienceCard = ({ experience }) => {
return (
<div className="bg-white rounded-lg shadow p-6 transition-all hover:shadow-lg">
<div className="flex justify-between flex-wrap">
<h3 className="font-bold text-lg">{experience.position}</h3>
<span className="text-gray-600">{experience.period}</span>
</div>
<p className="text-primary font-medium">{experience.company}</p>
<ul className="mt-2 list-disc list-inside text-gray-700">
{experience.description.map((item, idx) => (
<li key={idx}>{item}</li>
))}
</ul>
</div>
);
};
export default ExperienceCard;