feat: nicer readme card styling
All checks were successful
create archive with lfs / tag (push) Successful in 9s

This commit is contained in:
dusk 2024-12-04 01:46:49 +03:00
parent 1e127ddae4
commit 7262fddc57
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -9,43 +9,58 @@
<div class="flex flex-col md:flex-row gap-y-2 lg:gap-y-0 md:h-full h-card"> <div class="flex flex-col md:flex-row gap-y-2 lg:gap-y-0 md:h-full h-card">
<div class="flex flex-col gap-y-2 lg:gap-y-0"> <div class="flex flex-col gap-y-2 lg:gap-y-0">
<Window title="readme?" iconUri="/icons/question.png"> <Window title="readme?" iconUri="/icons/question.png" removePadding>
<div class="flex flex-col prose prose-ralsei prose-img:m-0 leading-none"> <div class="flex flex-col p-1.5 gap-1.5 prose prose-ralsei prose-img:m-0 leading-none">
<div class="flex flex-row gap-2 mb-2 mx-auto overflow-hidden"> <div
class="flex flex-row gap-2 bg-ralsei-black bg-opacity-30 overflow-hidden"
>
{#each data.banners as bannerNo, index} {#each data.banners as bannerNo, index}
{@const hideIfMobile = index === data.banners.length - 1} {@const hideIfMobile = index === data.banners.length - 1}
<img width=150 height=20 alt="banner" class="{hideIfMobile ? "hidden" : ""} sm:inline w-[150px] [height:20px] [image-rendering:pixelated_!important]" src="/banners/{bannerNo}.gif"> <img
width="150"
height="20"
alt="banner"
class="
{hideIfMobile ? 'hidden' : ''} sm:inline w-[150px] [height:20px]
[image-rendering:pixelated_!important] shadow-ralsei-black shadow-[0px_4px_2px_0_rgb(0_0_0_/_0.05)]
"
src="/banners/{bannerNo}.gif"
/>
{/each} {/each}
</div> </div>
<div class="flex flex-grow"> <div class="flex flex-grow">
<div class="w-36 [height:9rem] [padding:8px] bg-ralsei-black bg-opacity-30 place-content-center"> <div
class="w-36 [padding:8px] place-content-center place-self-center bg-ralsei-black bg-opacity-30"
>
<Tooltip x="-translate-x-[40%]" targetX="group-hover:-translate-x-[10%]"> <Tooltip x="-translate-x-[40%]" targetX="group-hover:-translate-x-[10%]">
<svelte:fragment slot="tooltipContent">character from q.u.q. (good vn go read it NOW)</svelte:fragment> <svelte:fragment slot="tooltipContent"
<img >character from q.u.q. (good vn go read it NOW)</svelte:fragment
class="w-36 u-photo" >
src="/pfp.png" <img class="w-36 u-photo" src="/pfp.png" alt="character from q.u.q." />
alt="character from q.u.q."
/>
</Tooltip> </Tooltip>
</div> </div>
<ul <div
class="place-self-center m-0 leading-none marker:[content:'->'] [list-style-type:'->']" class="flex flex-row flex-grow place-content-center ml-1.5 [padding:8px] bg-ralsei-black bg-opacity-30"
> >
<li class="[list-style-type:'->'] p-note">trying to do stuff</li> <ul
<li class="[list-style-type:'->'] p-note">is a thing that exists</li> class="place-self-center m-0 mr-4 [padding-left:1em] sm:[padding-left:0.5em] leading-none marker:[content:'->'] [list-style-type:'->']"
<li class="[list-style-type:'->']"> >
<span class="p-category">software engineer</span>, <li class="[list-style-type:'->'] p-note">trying to do stuff</li>
<span class="p-category">indie game dev</span> <li class="[list-style-type:'->'] p-note">is a thing that exists</li>
</li> <li class="[list-style-type:'->']">
<li class="[list-style-type:'->']"> <span class="p-category">software engineer</span>,
in <span class="p-country-name">turkey</span> <span class="p-category">indie game dev</span>
<i class="text-[0.5rem]">(get me out)</i> </li>
</li> <li class="[list-style-type:'->']">
<li class="[list-style-type:'->']">aka <span class="p-nickname">yusdacra</span></li> in <span class="p-country-name">turkey</span>
</ul> <i class="text-[0.5rem]">(get me out)</i>
</li>
<li class="[list-style-type:'->']">aka <span class="p-nickname">yusdacra</span></li>
</ul>
</div>
</div> </div>
<div class="flex flex-row"> <div class="flex flex-row [padding:8px] bg-ralsei-black bg-opacity-30">
<p class="leading-none m-0 mt-3 text-sm"> <p class="leading-none m-0 text-sm">
hi there hi there
<img <img
class="relative inline h-5 animate-squiggle pb-1" class="relative inline h-5 animate-squiggle pb-1"
@ -72,7 +87,7 @@
</Window> </Window>
<Window title="latest stuff" style="mt-auto"> <Window title="latest stuff" style="mt-auto">
<div class="prose prose-ralsei prose-img:m-0 leading-6"> <div class="prose prose-ralsei prose-img:m-0 leading-6">
<LatestStuff/> <LatestStuff />
</div> </div>
</Window> </Window>
</div> </div>