-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRecentProjects.tsx
84 lines (76 loc) · 2.86 KB
/
RecentProjects.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
"use client";
import { FaLocationArrow } from "react-icons/fa6";
import { projects } from "@/data";
import { PinContainer } from "./ui/Pin";
const RecentProjects = () => {
return (
<div className="py-20" id="projects">
<h1 className="heading">
A small selection of{" "}
<span className="text-purple">recent projects</span>
</h1>
<div className="flex flex-wrap items-center justify-center p-4 gap-16 mt-10">
{projects.map(({ id, title, des, img, iconLists, link }) => (
<div
className="lg:min-h-[32.5rem] h-[25rem] flex items-center justify-center sm:w-96 w-[80vw]"
key={id}
>
<PinContainer title={link} href={link}>
<div className="relative flex items-center justify-center sm:w-96 w-[80vw] overflow-hidden h-[20vh] lg:h-[30vh] mb-10">
<div
className="relative w-full h-full overflow-hidden lg:rounded-3xl"
style={{ backgroundColor: "#13162D" }}
>
<img src="/bg.png" alt="bgimg" />
</div>
<img
src={img}
alt="cover"
className="z-10 absolute bottom-0 rounded-xl"
/>
</div>
<h1 className="font-bold lg:text-2xl md:text-xl text-base line-clamp-1">
{title}
</h1>
<p
className="lg:text-xl lg:font-normal font-light text-sm line-clamp-2"
style={{
color: "#BEC1DD",
margin: "1vh 0",
}}
>
{des}
</p>
<div className="flex items-center justify-between mt-7 mb-3">
<div className="flex items-center">
{iconLists.map((icon, index) => (
<div
key={index}
className="border border-black/[.5] rounded-full bg-white-100 lg:w-10 lg:h-10 w-8 h-8 flex justify-center items-center"
style={{
transform: `translateX(-${5 * index + 2}px)`,
}}
>
<img src={icon} alt="icon5" className="p-2" />
</div>
))}
</div>
<div className="flex justify-center items-center">
<a
href={link}
target="_blank"
className="flex lg:text-xl md:text-xs text-sm text-purple"
>
Check Live Site
</a>
<FaLocationArrow className="ms-3" color="#CBACF9" />
</div>
</div>
</PinContainer>
</div>
))}
</div>
</div>
);
};
export default RecentProjects;