Skip to content

Commit 63953e4

Browse files
committed
🐞 fix: organize tecnologies pills in project section in mobile view
1 parent a5ef374 commit 63953e4

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

src/components/Work/Project.astro

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ const {
5858
>
5959
<div
6060
class:list={[imageSrc]}
61-
class="lazy-background h-full overflow-hidden bg-placeholder bg-center bg-no-repeat font-lato shadow-lg shadow-black max-sm:self-center group bg-105% hover:bg-100% transition-[background-size] duration-300 ease-in-out"
61+
class="lazy-background w-full aspect-auto overflow-hidden bg-placeholder bg-center bg-no-repeat font-lato shadow-lg shadow-black max-sm:self-center group bg-105% hover:bg-100% transition-[background-size] duration-300 ease-in-out"
6262
>
6363
<div
6464
class="h-full bg-[#453662c5] p-1 backdrop-brightness-[0.4] backdrop-grayscale transition-all duration-300 ease-in-out hover:bg-teal-600/0 hover:backdrop-grayscale-0"
6565
>
6666
<article
67-
class="m-0 flex min-h-64 w-11/12 flex-col items-start justify-between p-5 transition-[transform] duration-300 max-sm:w-full max-sm:justify-evenly max-sm:p-5 max-sm:px-4 max-sm:py-4 group-hover:scale-105 max-sm:group-hover:scale-105"
67+
class="m-0 flex min-h-72 w-11/12 flex-col items-start justify-between p-5 transition-[transform] duration-300 max-sm:w-full max-sm:justify-evenly max-sm:p-4 group-hover:scale-105 max-sm:group-hover:scale-105"
6868
>
6969
<header
7070
class="m-1 text-xl font-extrabold text-teal-200 max-sm:text-[1.65rem]"
@@ -86,17 +86,15 @@ const {
8686
class:list={Astro.props.tagsClass}
8787
class="flex w-full justify-between gap-2"
8888
>
89-
<ul class="flex flex-row gap-x-3">
89+
<ul class="flex max-sm:grid max-sm:grid-cols-6 max-sm:gap-2 flex-row gap-3">
9090
{
9191
tags.map((tag) => (
92-
<li>
93-
<span
94-
class="flex items-center gap-x-2 rounded-full border-2 px-2 py-1 text-base drop-shadow-[0_15px_20px_black]"
95-
class:list={[tag.class]}
96-
>
97-
<tag.icon class="size-4" />
98-
<label>{tag.name}</label>
99-
</span>
92+
<li
93+
class="flex items-center gap-x-2 rounded-full border-2 px-2 py-1 text-base drop-shadow-[0_15px_20px_black] max-sm:col-span-2"
94+
class:list={[tag.class]}
95+
>
96+
<tag.icon class="size-4" />
97+
<label>{tag.name}</label>
10098
</li>
10199
))
102100
}

src/components/Work/Work.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const TAGS = {
4747
},
4848
TAILWIND: {
4949
name: 'Tailwindcss',
50-
class: 'bg-sky-800/50 text-sky-200/80 border-sky-200/60',
50+
class: 'bg-sky-800/50 text-sky-200/80 border-sky-200/60 max-sm:col-span-3',
5151
icon: IconTailwind,
5252
},
5353
VUE: {
@@ -77,7 +77,7 @@ const TAGS = {
7777
},
7878
TYPESCRIPT: {
7979
name: 'Typescript',
80-
class: 'bg-blue-800/50 text-blue-200/80 border-blue-200/60',
80+
class: 'bg-blue-800/50 text-blue-200/80 border-blue-200/60 max-sm:col-span-3',
8181
icon: IconTypescript,
8282
},
8383
};

tailwind.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ module.exports = {
5353
},
5454
backgroundSize: {
5555
'cover': 'cover',
56-
'105%': '105%',
57-
'100%': '100%',
56+
'105%': '105% 105%',
57+
'100%': '100% 100%',
5858
},
5959
keyframes: {
6060
'show-presentation': {

0 commit comments

Comments
 (0)