refactor: style on windows
All checks were successful
create archive with lfs / tag (push) Successful in 9s

This commit is contained in:
dusk 2024-11-16 15:17:25 +03:00
parent 67cfeac6c3
commit e812557794
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
4 changed files with 77 additions and 80 deletions

View File

@ -9,6 +9,8 @@
export let entry: boolean = false; export let entry: boolean = false;
export let removePadding: boolean = false; export let removePadding: boolean = false;
export let center: boolean = false; export let center: boolean = false;
export let layered: boolean = false;
export let style: string = "";
const scaleKeyframes = [ const scaleKeyframes = [
"window-open", "window-open",
@ -43,10 +45,11 @@
}} }}
on:click={(data) => {focusWindow(data.currentTarget)}} on:click={(data) => {focusWindow(data.currentTarget)}}
class=" class="
relative flex flex-col {sticky ? 'md:sticky md:-top-9' : ''} {center ? "mx-auto" : ""} relative {layered ? "col-[1] row-[1]" : ""} flex flex-col {sticky ? 'md:sticky md:-top-9' : ''} {center ? "mx-auto" : ""}
max-w-screen-md xl:max-w-screen-lg 2xl:max-w-screen-xl min-w-[30ch] lg:min-w-[40ch] w-full md:w-fit [height:fit-content] max-w-screen-md xl:max-w-screen-lg 2xl:max-w-screen-xl min-w-[30ch] lg:min-w-[40ch] w-full md:w-fit [height:fit-content]
bg-ralsei-black border-ralsei-white border-ridge border-8 border-t-[12px] bg-ralsei-black border-ralsei-white border-ridge border-8 border-t-[12px]
animate-{chosenKeyframe} animate-{chosenKeyframe} drop-shadow-[35px_35px_35px_rgba(1,1,1,0.5)]
{style}
" "
{id} {id}
> >

View File

@ -1,4 +1,5 @@
<script lang="ts"> <script lang="ts">
import { browser } from '$app/environment';
import getTitle from '$lib/getTitle'; import getTitle from '$lib/getTitle';
import NavButton from '../components/navButton.svelte'; import NavButton from '../components/navButton.svelte';
import '../styles/app.css'; import '../styles/app.css';
@ -133,10 +134,10 @@
<slot /> <slot />
</div> </div>
<nav class="w-full min-h-[5vh] max-h-[6vh] fixed bottom-0 z-10 bg-ralsei-black overflow-hidden"> <nav class="w-full min-h-[5vh] max-h-[6vh] fixed bottom-0 z-[999] bg-ralsei-black overflow-hidden">
<div <div
class=" class="
max-w-full max-h-fit p-1 max-w-full max-h-fit p-1 z-[999]
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%
" "

View File

@ -3,7 +3,7 @@
import Window from '../components/window.svelte'; import Window from '../components/window.svelte';
</script> </script>
<div class="flex flex-col md:flex-row gap-y-4 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">
<div class="flex flex-col prose prose-ralsei prose-img:m-0 leading-none"> <div class="flex flex-col prose prose-ralsei prose-img:m-0 leading-none">
@ -58,8 +58,7 @@
</div> </div>
</div> </div>
</Window> </Window>
<div class="mt-auto"> <Window title="latest stuff" style="mt-auto">
<Window title="latest stuff">
<div class="prose prose-ralsei prose-img:m-0 leading-6"> <div class="prose prose-ralsei prose-img:m-0 leading-6">
<p> <p>
worked on a game for a jam!! check it out at <a href="https://manonox.itch.io/fish-well" worked on a game for a jam!! check it out at <a href="https://manonox.itch.io/fish-well"
@ -74,11 +73,9 @@
</div> </div>
</Window> </Window>
</div> </div>
</div>
<div class="hidden md:block md:grow" /> <div class="hidden md:block md:grow" />
<div class="flex flex-col gap-y-2 lg:gap-y-0"> <div class="flex flex-col gap-y-2 lg:gap-y-0">
<div class="md:ml-auto"> <Window title="links!" iconUri="/icons/contact.png" style="md:ml-auto">
<Window title="links!" iconUri="/icons/contact.png">
<div class="prose prose-ralsei prose-ul:leading-[1.4rem] prose-headings:leading-none"> <div class="prose prose-ralsei prose-ul:leading-[1.4rem] prose-headings:leading-none">
<ul> <ul>
<li>discord: yusdacra</li> <li>discord: yusdacra</li>
@ -88,9 +85,7 @@
</li> </li>
<li> <li>
bluesky: bluesky:
<a class="u-url" href="https://bsky.app/profile/gaze.systems" rel="me" <a class="u-url" href="https://bsky.app/profile/gaze.systems" rel="me">@gaze.systems</a>
>@gaze.systems</a
>
</li> </li>
</ul> </ul>
<h3>development</h3> <h3>development</h3>
@ -125,9 +120,7 @@
</ul> </ul>
</div> </div>
</Window> </Window>
</div> <Window title="current" iconUri="/icons/entry.png" style="mt-auto">
<div class="mt-auto">
<Window title="current" iconUri="/icons/entry.png">
<div class="prose prose-ralsei leading-6"> <div class="prose prose-ralsei leading-6">
<ul> <ul>
<li>playing wynncraft, helldivers 2, warframe</li> <li>playing wynncraft, helldivers 2, warframe</li>
@ -136,5 +129,4 @@
</div> </div>
</Window> </Window>
</div> </div>
</div>
</div> </div>

View File

@ -1,4 +1,5 @@
const colors = require('tailwindcss/colors') const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {