-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExperience.tsx
54 lines (50 loc) · 1.89 KB
/
Experience.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import React from "react";
import { workExperience } from "@/data";
import { Button } from "./ui/MovingBorders";
const Experience = () => {
return (
<div className="py-20 w-full">
<h1 className="heading">
My <span className="text-purple">work experience</span>
</h1>
<div className="w-full mt-12 grid lg:grid-cols-4 grid-cols-1 gap-10">
{workExperience.map((card) => (
<Button
key={card.id}
// random duration will be fun , I think , may be not
duration={Math.floor(Math.random() * 10000) + 10000}
borderRadius="1.75rem"
style={{
// add these two
// generated the color from here https://cssgradient.io/
background: "rgb(4,7,29)",
backgroundColor:
"linear-gradient(90deg, rgba(4,7,29,1) 0%, rgba(12,14,35,1) 100%)",
// added this border radius to make it more rounded so that the moving border is more realistic
borderRadius: `calc(1.75rem* 0.96)`,
}}
// remove bg-white dark:bg-slate-900
className="flex-1 text-black dark:text-white border-neutral-200 dark:border-slate-800"
>
<div className="flex lg:flex-row flex-col lg:items-center p-3 py-6 md:p-5 lg:p-10 gap-2">
<img
src={card.thumbnail}
alt={card.thumbnail}
className="lg:w-32 md:w-20 w-16"
/>
<div className="lg:ms-5">
<h1 className="text-start text-xl md:text-2xl font-bold">
{card.title}
</h1>
<p className="text-start text-white-100 mt-3 font-semibold">
{card.desc}
</p>
</div>
</div>
</Button>
))}
</div>
</div>
);
};
export default Experience;