feat: improve responsiveness

Changed files
+5 -3
src
components
layouts
+3 -1
src/components/PortfolioItem.astro
···
import Tag from "./Tag.astro"
---
<div class="p-4 border border-ctp-surface0 flex flex-col -mt-px w-full">
-
<div class="flex justify-between gap-4">
+
<div class="flex flex-wrap sm:flex-nowrap justify-between gap-2 sm:gap-4">
<a href=`${href}` class="flex flex-col gap-1 group">
<span class="text-xl flex gap-2 items-center">
<LucideIcon name=`${iconName}` width="20" height="20" style={`stroke:${colorCss}`} />
<span class="group-hover:underline font-bold">{title} </span>
+
<span class="hidden md:block">
{tag && tagcolor && (
<Tag text={tag} color={tagcolor}/>
)}
+
</span>
</span>
<span class="text-sm">
<span class="flex gap-1">{subtitle}</span>
+2 -2
src/layouts/Page.astro
···
<Layout>
<section class="h-[50%]
flex flex-col lg:grid-cols-5 lg:grid
-
p-10 pt-20 md:p-12 md:pt-24 xl:p-24 xl:pt-48 md:gap-8 xl:gap-16">
+
p-10 pt-20 md:p-12 md:pt-24 xl:p-24 xl:pt-48 gap-4 md:gap-8 xl:gap-16">
<Profile/>
-
<div class="md:col-span-3 lg:gap-8 xl:gap-12 flex flex-col">
+
<div class="md:col-span-3 gap-4 md:gap-8 xl:gap-12 flex flex-col">
<slot/>
</div>
</section>