fix: even more layotuing ahhh i hate css

This commit is contained in:
dusk 2024-08-24 19:28:39 +03:00
parent 0cec3060a1
commit 023be3d733
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
3 changed files with 62 additions and 65 deletions

View File

@ -73,7 +73,6 @@
<feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="1" /> <feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="1" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="3" /> <feDisplacementMap in="SourceGraphic" in2="noise" scale="3" />
</filter> </filter>
<filter id="squiggly-2"> <filter id="squiggly-2">
<feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="2" /> <feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="2" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="2" /> <feDisplacementMap in="SourceGraphic" in2="noise" scale="2" />
@ -82,7 +81,6 @@
<feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="3" /> <feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="3" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="3" /> <feDisplacementMap in="SourceGraphic" in2="noise" scale="3" />
</filter> </filter>
<filter id="squiggly-4"> <filter id="squiggly-4">
<feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="4" /> <feTurbulence id="turbulence" baseFrequency="0.02" numOctaves="3" result="noise" seed="4" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="1" /> <feDisplacementMap in="SourceGraphic" in2="noise" scale="1" />
@ -90,16 +88,18 @@
</defs> </defs>
</svg> </svg>
<div class="h-[96vh] lg:px-[4vw] 2xl:px-[8vw] lg:py-[4vh]"><slot /></div> <div class="md:h-[96vh] pb-[7vh] lg:px-[4vw] 2xl:px-[8vw] lg:py-[4vh]">
<slot />
</div>
<nav class="w-full max-h-[4vh] z-10 fixed bottom-0 bg-ralsei-black"> <nav class="w-full max-h-[6vh] fixed bottom-0 z-10 bg-ralsei-black">
<div <div
class=" class="
max-w-full max-h-fit p-1 overflow-auto max-w-full max-h-fit p-1 overflow-auto
grid grid-flow-col grid-rows-1 gap-2 justify-start grid grid-flow-col grid-rows-1 gap-2 justify-start
border-ralsei-white border-8 border-ralsei-white border-8
bg-gradient-to-r to-ralsei-pink-neon/30 from-ralsei-pink-regular/20 from-30% bg-gradient-to-r to-ralsei-pink-neon/30 from-ralsei-pink-regular/20 from-30%
" "
style="border-style: ridge hidden hidden hidden;" style="border-style: ridge hidden hidden hidden;"
> >
{#each menuItems as item} {#each menuItems as item}
@ -107,4 +107,4 @@
<NavButton {highlight} {...item} /> <NavButton {highlight} {...item} />
{/each} {/each}
</div> </div>
</nav> </nav>

View File

@ -2,7 +2,7 @@
import Window from '../components/window.svelte'; import Window from '../components/window.svelte';
</script> </script>
<div class="flex flex-none gap-y-4 lg:gap-y-0 flex-wrap md:flex-nowrap md:h-full"> <div class="flex flex-col md:flex-row gap-y-4 lg:gap-y-0 md:h-full">
<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'>
<div class="prose prose-ralsei prose-img:m-0 leading-6"> <div class="prose prose-ralsei prose-img:m-0 leading-6">
@ -22,7 +22,7 @@
</div> </div>
</Window> </Window>
</div> </div>
<div class="grow" /> <div class="hidden md:block md:grow" />
<Window title="contacts!" iconUri='/icons/contact.png'> <Window title="contacts!" iconUri='/icons/contact.png'>
<div class="prose prose-ralsei leading-6"> <div class="prose prose-ralsei leading-6">
<ul> <ul>

View File

@ -7,7 +7,6 @@
</script> </script>
<div class="flex flex-col-reverse md:flex-row gap-2 md:gap-4"> <div class="flex flex-col-reverse md:flex-row gap-2 md:gap-4">
<div class="mb-[7vh] md:hidden" />
<Window title="guestbook" iconUri="/icons/guestbook.png"> <Window title="guestbook" iconUri="/icons/guestbook.png">
<div class="flex flex-col gap-4 2xl:w-[60ch]"> <div class="flex flex-col gap-4 2xl:w-[60ch]">
<p> <p>
@ -56,61 +55,59 @@
</div> </div>
</Window> </Window>
<div class="grow" /> <div class="grow" />
<div class="md:mb-[7vh]"> <Window title="entries" iconUri="/icons/entries.png">
<Window title="entries" iconUri="/icons/entries.png"> <div class="flex flex-col gap-2 md:gap-4 2xl:w-[60ch]">
<div class="flex flex-col gap-2 md:gap-4 2xl:w-[60ch]"> {#if data.getRatelimited}
{#if data.getRatelimited} <p class="text-error">
<p class="text-error"> woops, looks like you are being ratelimited, try again in like half a minute :3
woops, looks like you are being ratelimited, try again in like half a minute :3 </p>
</p> {:else if data.getError}
{:else if data.getError} <p class="text-error">got error trying to fetch entries, pls tell me about this</p>
<p class="text-error">got error trying to fetch entries, pls tell me about this</p> <details>
<details> <summary>error</summary>
<summary>error</summary> <p>{data.getError}</p>
<p>{data.getError}</p> </details>
</details> {:else}
{:else} {#each data.entries as [entry_id, entry] (entry_id)}
{#each data.entries as [entry_id, entry] (entry_id)} {@const date = new Date(entry.timestamp * 1e3).toLocaleString()}
{@const date = new Date(entry.timestamp * 1e3).toLocaleString()} <div class="entry entryflex">
<div class="entry entryflex"> <div class="flex flex-row">
<div class="flex flex-row"> <p class="place-self-start grow text-2xl font-monospace">
<p class="place-self-start grow text-2xl font-monospace"> #{entry_id}
#{entry_id}
</p>
<p class="justify-end self-center text-sm font-monospace">{date}</p>
</div>
<p class="text-lg text-wrap overflow-hidden text-ellipsis ml-0.5 max-w-[56ch]">
{entry.content}
</p>
<p
class="place-self-end text-sm font-monospace max-w-[16ch] md:max-w-[24ch] lg:max-w-[32ch] overflow-hidden text-ellipsis"
title={entry.author}
>
--- posted by {entry.author}
</p> </p>
<p class="justify-end self-center text-sm font-monospace">{date}</p>
</div> </div>
{:else} <p class="text-lg text-wrap overflow-hidden text-ellipsis ml-0.5 max-w-[56ch]">
<p>looks like there are no entries :(</p> {entry.content}
{/each} </p>
{/if} <p
{#if hasPreviousPage || hasNextPage} class="place-self-end text-sm font-monospace overflow-hidden text-ellipsis text-nowrap"
<div class="flex flex-row w-full justify-center items-center font-monospace"> title={entry.author}
{#if hasPreviousPage} >
<a href="/guestbook/?page={data.entries.length < 0 ? data.page - 1 : 1}" --- posted by {entry.author}
>&lt;&lt; previous</a </p>
>
{/if}
{#if hasNextPage && hasPreviousPage}
<div class="w-1/12" />
{/if}
{#if hasNextPage}
<a href="/guestbook/?page={data.page + 1}">next &gt;&gt;</a>
{/if}
</div> </div>
{/if} {:else}
</div> <p>looks like there are no entries :(</p>
</Window> {/each}
</div> {/if}
{#if hasPreviousPage || hasNextPage}
<div class="flex flex-row w-full justify-center items-center font-monospace">
{#if hasPreviousPage}
<a href="/guestbook/?page={data.entries.length < 0 ? data.page - 1 : 1}"
>&lt;&lt; previous</a
>
{/if}
{#if hasNextPage && hasPreviousPage}
<div class="w-1/12" />
{/if}
{#if hasNextPage}
<a href="/guestbook/?page={data.page + 1}">next &gt;&gt;</a>
{/if}
</div>
{/if}
</div>
</Window>
</div> </div>
<style lang="postcss"> <style lang="postcss">