From e81255779405deb6031f982351f4867a167edcd1 Mon Sep 17 00:00:00 2001 From: dusk Date: Sat, 16 Nov 2024 15:17:25 +0300 Subject: [PATCH] refactor: style on windows --- src/components/window.svelte | 7 +- src/routes/+layout.svelte | 5 +- src/routes/+page.svelte | 144 +++++++++++++++++------------------ tailwind.config.js | 1 + 4 files changed, 77 insertions(+), 80 deletions(-) diff --git a/src/components/window.svelte b/src/components/window.svelte index 25767bf..83f8447 100644 --- a/src/components/window.svelte +++ b/src/components/window.svelte @@ -9,6 +9,8 @@ export let entry: boolean = false; export let removePadding: boolean = false; export let center: boolean = false; + export let layered: boolean = false; + export let style: string = ""; const scaleKeyframes = [ "window-open", @@ -43,10 +45,11 @@ }} on:click={(data) => {focusWindow(data.currentTarget)}} 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] 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} > diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 8987097..0bc14de 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,4 +1,5 @@ -
+
@@ -58,83 +58,75 @@
-
- -
-

- worked on a game for a jam!! check it out at it's itch.io page! -

- fish well gameplay screenshot -
-
-
+ +
+

+ worked on a game for a jam!! check it out at it's itch.io page! +

+ fish well gameplay screenshot +
+
diff --git a/tailwind.config.js b/tailwind.config.js index 91cc14e..6e2bad3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,4 +1,5 @@ const colors = require('tailwindcss/colors') +const plugin = require('tailwindcss/plugin') /** @type {import('tailwindcss').Config} */ export default {