feat: add basic responsiveness

Changed files
+13 -7
src
+2 -2
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-8">
<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>
{tag && tagcolor && (
-
<Tag text={tag} color={tagcolor} />
)}
</span>
<span class="text-sm">
···
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">
<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>
{tag && tagcolor && (
+
<Tag text={tag} color={tagcolor}/>
)}
</span>
<span class="text-sm">
+3 -1
src/components/navbar/Navbar.astro
···
href = href.replace("https://", "")
href = href.replace("http://", "")
---
-
<div class="fixed z-40 bg-ctp-base left-[12%] right-[12%] pl-8 pr-8 pt-4 pb-4 flex justify-between rounded-bl-2xl rounded-br-2xl">
<div class="flex gap-4 items-center">
<span class="flex flex-col">
<span>~/banana{href}</span>
···
href = href.replace("https://", "")
href = href.replace("http://", "")
---
+
<div class="fixed z-40 bg-ctp-base
+
left-[2%] right-[2%] md:left-[4%] md:right-[4%] xl:left-[8%] xl:right-[8%]
+
pl-8 pr-8 pt-4 pb-4 flex justify-between rounded-bl-2xl rounded-br-2xl">
<div class="flex gap-4 items-center">
<span class="flex flex-col">
<span>~/banana{href}</span>
+1 -1
src/components/section/Profile.astro
···
import { Github, Spool, Icon } from '@lucide/astro'
import { butterfly } from '@lucide/lab'
---
-
<div class="flex flex-col col-span-2 border border-ctp-surface0 gap-[-1px] w-full h-min">
<span class="p-4 pb-0 border-b border-ctp-surface0 relative">
<img src="/banner.png" class="w-full"/>
</span>
···
import { Github, Spool, Icon } from '@lucide/astro'
import { butterfly } from '@lucide/lab'
---
+
<div class="flex flex-col md:col-span-2 border border-ctp-surface0 gap-[-1px] w-full h-min">
<span class="p-4 pb-0 border-b border-ctp-surface0 relative">
<img src="/banner.png" class="w-full"/>
</span>
+3 -1
src/layouts/Layout.astro
···
<meta name="generator" content={Astro.generator} />
<title>banana@potassium.sh</title>
</head>
-
<body class="bg-ctp-crust pl-[12%] pr-[12%] text-ctp-text">
<main class="w-full min-h-full max-h-max bg-ctp-mantle relative">
<Navbar/>
<slot />
···
<meta name="generator" content={Astro.generator} />
<title>banana@potassium.sh</title>
</head>
+
<body class="bg-ctp-crust pl-[2%] pr-[2%]
+
md:pl-[4%] md:pr-[4%] xl:pl-[8%] xl:pr-[8%]
+
text-ctp-text">
<main class="w-full min-h-full max-h-max bg-ctp-mantle relative">
<Navbar/>
<slot />
+4 -2
src/layouts/Page.astro
···
import Profile from "../components/section/Profile.astro";
---
<Layout>
-
<section class="h-[50%] grid-cols-5 grid p-24 pt-48 gap-16">
<Profile/>
-
<div class="col-span-3 gap-12 flex flex-col">
<slot/>
</div>
</section>
···
import Profile from "../components/section/Profile.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">
<Profile/>
+
<div class="md:col-span-3 lg:gap-8 xl:gap-12 flex flex-col">
<slot/>
</div>
</section>