Skip to content

Commit 3c0dee0

Browse files
authored
Merge pull request #16 from TorresjDev/fullstack-dev
fix: Enhance RecentProjects component layout and add scrollbar hiding styles
2 parents 41c5fe0 + 256d42e commit 3c0dee0

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed

app/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@
8686
.black-gradient {
8787
background: linear-gradient(90deg, #161a31 0%, #06091f 100%);
8888
}
89+
90+
/* Hide scrollbar while maintaining scroll functionality */
91+
.scrollbar-hide {
92+
-ms-overflow-style: none;
93+
scrollbar-width: none;
94+
}
95+
.scrollbar-hide::-webkit-scrollbar {
96+
display: none;
97+
}
8998
}
9099

91100
body,

components/RecentProjects.tsx

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,30 @@ const RecentProjects = () => {
4141
<p className="lg:text-xl lg:font-normal font-light text-sm line-clamp-2">
4242
{des}
4343
</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-
))}
44+
<div className="flex items-center justify-between mt-7 mb-3 gap-2">
45+
<div className="flex items-center flex-wrap gap-1 min-w-0 flex-shrink">
46+
{lngIconLts.map((icon, index) => (
47+
<div
48+
key={icon}
49+
className="border border-white/[2.0] rounded-full bg-black w-7 h-7 sm:w-8 sm:h-8 lg:w-9 lg:h-9 xl:w-10 xl:h-10 flex items-center justify-center flex-shrink-0"
50+
style={{ zIndex: 13 - index }}
51+
>
52+
<img src={icon} alt={icon} className="p-1.5 sm:p-2" />
5853
</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-
))}
54+
))}
55+
</div>
56+
<div className="flex items-center flex-wrap gap-1 min-w-0 flex-shrink justify-end">
57+
{toolsIconLts.map((icon, index) => (
58+
<div
59+
key={icon}
60+
className="border border-white/[2.0] rounded-full bg-black w-7 h-7 sm:w-8 sm:h-8 lg:w-9 lg:h-9 xl:w-10 xl:h-10 flex items-center justify-center flex-shrink-0"
61+
style={{ zIndex: 13 - index }}
62+
>
63+
<img src={icon} alt={icon} className="p-1.5 sm:p-2" />
7264
</div>
73-
</div>
65+
))}
66+
</div>
67+
</div>
7468
</div>
7569
</PinContainer>
7670
</div>

0 commit comments

Comments
 (0)