22import { assetUrl , projects } from "@/data" ;
33import React from "react" ;
44import { PinContainer } from "./ui/3d-pin" ;
5- // import { FaLocationArrow } from "react-icons/fa6";
65
76const RecentProjects = ( ) => {
87 return (
98 < div className = "py-20 w-full" id = "projects" >
109 < h1 className = "heading text-center" >
1110 Highlighting Recent < span className = "text-cyan-400" > Innovations</ span >
1211 </ h1 >
13- < div
14- className = "flex flex-wrap items-center justify-evenly p-4 mt-10 gap-x-10 gap-y-20 xl:gap-y-10 2xl:gap-y-6
15- "
16- >
12+ < div className = "flex flex-wrap items-center justify-center p-4 mt-10 gap-x-10 lg:gap-x-16 gap-y-20 xl:gap-y-10 2xl:gap-y-6" >
1713 { projects . map (
1814 ( { id, title, des, img, lngIconLts, toolsIconLts, link } ) => (
1915 < div
2016 key = { id }
21- className = "h-[28rem ] sm:h-[25rem ] lg:h-[27rem ] xl:h-[36rem ] flex items-center justify-center w-full max-w-[40vw] xl:max-w-[30vw]: my-4 sm:my-14 "
17+ className = "h-[39rem ] sm:h-[36rem ] lg:h-[38rem ] xl:h-[39rem ] flex items-center justify-center w-full max-w-[40vw] xl:max-w-[38vw] my-4 sm:my-14"
2218 >
2319 < PinContainer
2420 title = { link }
2521 href = { link }
2622 className = "mx-auto w-full items-center justify-center"
2723 >
28- < div className = "relative flex items-center justify-center sm:w-[27rem ] xl:w-[28vw ] w-[80vw] overflow-hidden h-[30vh] sm:h-[33vh] my-12" >
29- < div className = "relative w-auto h-full overflow-hidden lg:rounded-3xl items-center justify-between bg-[#13162d]" >
24+ < div className = "relative flex items-center justify-center sm:w-[30rem ] xl:w-[33vw ] w-[80vw] overflow-hidden h-[30vh] sm:h-[33vh] my-12" >
25+ < div className = "relative w-auto h-full overflow-hidden lg:rounded-3xl items-center justify-between bg-[#13162d]" >
3026 < img
3127 src = { `${ assetUrl } /backgrounds/abstract/bg.png` }
3228 alt = "bg-img"
@@ -38,48 +34,42 @@ const RecentProjects = () => {
3834 className = "z-10 absolute bottom-0 object-contain max-w-full w-auto max-h-full items-center justify-between border border-white/[0.6]"
3935 />
4036 </ div >
41- < h1 className = "font-bold text-cyan-400 lg:text-2xl md:text-xl text-base line-clamp-1 px-1" >
42- { title }
43- </ h1 >
44-
45- < p className = "lg:text-xl lg:font-normal font-light text-sm line-clamp-2 px-1" >
46- { des }
47- </ p >
48-
49- < div className = "flex items-center justify-between mt-7 mb-3 px-1" >
50- < div className = "flex item-center" >
51- { lngIconLts . map ( ( icon , index ) => (
52- < div
53- key = { icon }
54- className = "border border-white/[2.0] rounded-full bg-black lg:w-10 lg:h-10 w-8 h-8 flex items-center justify-center"
55- style = { {
56- zIndex : 10 - index ,
57- transform : `translateX(-${ 4.2 * index * 1.8 } px)` ,
58- } }
59- >
60- < img src = { icon } alt = { icon } className = "p-2" />
61- </ div >
62- ) ) }
63- </ div >
64-
65- < div className = "flex justify-center items-center" >
66- { /* <FaLocationArrow className="me-2" color="#00a1a1" />
67- <p className="flex lg:text-xl md:text-xs text-sm text-cyan-300">
68- {" "}
69- Visit live site
70- </p> */ }
71- { toolsIconLts . map ( ( icon , index ) => (
72- < div
73- key = { icon }
74- className = "border border-white/[2.0] rounded-full bg-black lg:w-10 lg:h-10 w-8 h-8 flex items-center justify-center"
75- style = { {
76- zIndex : 10 - index ,
77- transform : `translateX(-${ 4.2 * index * 1.8 } px)` ,
78- } }
79- >
80- < img src = { icon } alt = { icon } className = "p-2" />
81- </ div >
82- ) ) }
37+ < div className = "w-full px-4" >
38+ < h1 className = "font-bold text-cyan-400 lg:text-2xl md:text-xl text-base line-clamp-1" >
39+ { title }
40+ </ h1 >
41+ < p className = "lg:text-xl lg:font-normal font-light text-sm line-clamp-2" >
42+ { des }
43+ </ p >
44+ < div className = "flex items-center justify-between mt-7 mb-3" >
45+ < div className = "flex items-center " >
46+ { lngIconLts . map ( ( icon , index ) => (
47+ < div
48+ key = { icon }
49+ className = "border border-white/[2.0] rounded-full bg-black lg:w-10 lg:h-10 w-8 h-8 flex items-center justify-center"
50+ style = { {
51+ zIndex : 13 - index ,
52+ transform : `translateX(-${ 7.2 * index } px)` ,
53+ } }
54+ >
55+ < img src = { icon } alt = { icon } className = "p-2" />
56+ </ div >
57+ ) ) }
58+ </ div >
59+ < div className = "flex justify-center items-center" >
60+ { toolsIconLts . map ( ( icon , index ) => (
61+ < div
62+ key = { icon }
63+ className = "border border-white/[2.0] rounded-full bg-black lg:w-10 lg:h-10 w-8 h-8 flex items-center justify-center"
64+ style = { {
65+ zIndex : 13 - index ,
66+ transform : `translateX(-${ 7.2 * index } px)` ,
67+ } }
68+ >
69+ < img src = { icon } alt = { icon } className = "p-2" />
70+ </ div >
71+ ) ) }
72+ </ div >
8373 </ div >
8474 </ div >
8575 </ PinContainer >
0 commit comments