From 06c157d4af13130af157bdf81d8fb09dee401e97 Mon Sep 17 00:00:00 2001 From: Will Stensvold Date: Mon, 8 Dec 2025 23:36:32 -0600 Subject: [PATCH] Updated the css themes to remove specific stuff from chartDisplay added $components alias to svelte.config.js --- src/lib/components/chartDisplay.svelte | 105 +++++++++--------------- src/lib/components/index.ts | 4 - src/lib/components/themeSelector.svelte | 3 +- src/lib/styles/cyberpunk.css | 5 ++ src/lib/styles/nightmare.css | 6 ++ src/lib/styles/nintendo.css | 7 +- src/lib/styles/typewriter.css | 5 ++ src/lib/styles/vaporwave.css | 4 + src/lib/styles/win95.css | 5 ++ src/routes/+layout.svelte | 10 ++- src/routes/play/+page.server.ts | 3 - src/routes/play/+page.svelte | 40 ++------- svelte.config.js | 24 +++--- 13 files changed, 100 insertions(+), 121 deletions(-) delete mode 100644 src/lib/components/index.ts delete mode 100644 src/routes/play/+page.server.ts diff --git a/src/lib/components/chartDisplay.svelte b/src/lib/components/chartDisplay.svelte index f28e420..cbbb926 100644 --- a/src/lib/components/chartDisplay.svelte +++ b/src/lib/components/chartDisplay.svelte @@ -1,79 +1,48 @@
- {#if chart} -
-
X-Axis (Horizontal)
-
{chart.x[0]} ↔ {chart.x[1]}
-
-
-
Y-Axis (Vertical)
-
{chart.y[0]} ↔ {chart.y[1]}
-
- {:else} -
Click Generate!
- {/if} + {#if chart} +
+
X-Axis (Horizontal)
+
{chart.x[0]} ↔ {chart.x[1]}
+
+
+
Y-Axis (Vertical)
+
{chart.y[0]} ↔ {chart.y[1]}
+
+ {:else} +
Click Generate!
+ {/if}
- :global(.theme-nightmare) .chart-display { - background: #000000; - border: 2px solid #8b0000; - } - - :global(.theme-vaporwave) .chart-display { - background: rgba(255, 255, 255, 0.15); - border: 2px solid #ff6ad5; - } - - :global(.theme-nintendo) .chart-display { - background: #fff; - border: 3px solid #00a3e0; - border-radius: 10px; - color: #484848; - } - - .axis { - margin: 10px 0; - padding: 10px; - border: 1px solid currentColor; - opacity: 0.9; - } - - .axis-label { - font-weight: bold; - margin-bottom: 5px; - font-size: 11px; - text-transform: uppercase; - } - - .empty-state { - font-style: italic; - text-align: center; - padding: 20px; - opacity: 0.7; - } - \ No newline at end of file diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts deleted file mode 100644 index bc33f4a..0000000 --- a/src/lib/components/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './chartDisplay.svelte' -export * from './diceRoller.svelte' -export * from './themeSelector.svelte' -export * from './toggle.svelte' diff --git a/src/lib/components/themeSelector.svelte b/src/lib/components/themeSelector.svelte index 9f4bd4e..0449331 100644 --- a/src/lib/components/themeSelector.svelte +++ b/src/lib/components/themeSelector.svelte @@ -7,7 +7,7 @@
{#each themes as theme} {/each}
@@ -21,4 +21,3 @@ margin-top: 10px; } - diff --git a/src/lib/styles/cyberpunk.css b/src/lib/styles/cyberpunk.css index de8a6c9..c8d856c 100644 --- a/src/lib/styles/cyberpunk.css +++ b/src/lib/styles/cyberpunk.css @@ -41,3 +41,8 @@ background: #ff00ff; color: #000; } +:global(.theme-cyberpunk .chart-display) { + background: rgba(0, 255, 255, 0.05); + border: 1px solid #00ffff; + } + diff --git a/src/lib/styles/nightmare.css b/src/lib/styles/nightmare.css index 7a28406..188b533 100644 --- a/src/lib/styles/nightmare.css +++ b/src/lib/styles/nightmare.css @@ -42,3 +42,9 @@ :global(.theme-nightmare button:hover) { background: #8b0000; } + +:global(.theme-nightmare .chart-display) { + background: #000000; + border: 2px solid #8b0000; + } + diff --git a/src/lib/styles/nintendo.css b/src/lib/styles/nintendo.css index 28bd4aa..04317d6 100644 --- a/src/lib/styles/nintendo.css +++ b/src/lib/styles/nintendo.css @@ -55,4 +55,9 @@ box-shadow: 0 2px 0 #a00009; transform: translateY(2px); } - +:global(.theme-nintendo .chart-display ){ + background: #fff; + border: 3px solid #00a3e0; + border-radius: 10px; + color: #484848; + } diff --git a/src/lib/styles/typewriter.css b/src/lib/styles/typewriter.css index a5df61c..5a46776 100644 --- a/src/lib/styles/typewriter.css +++ b/src/lib/styles/typewriter.css @@ -30,3 +30,8 @@ color: #f4e8d0; font-family: 'Courier', monospace; } +:global(.theme-typewriter) .chart-display { + background: #fffef7; + border: 1px solid #2c2416; + } + diff --git a/src/lib/styles/vaporwave.css b/src/lib/styles/vaporwave.css index 1257289..b27be9a 100644 --- a/src/lib/styles/vaporwave.css +++ b/src/lib/styles/vaporwave.css @@ -39,4 +39,8 @@ text-transform: uppercase; padding: 12px 30px; } + :global(.theme-vaporwave .chart-display ){ + background: rgba(255, 255, 255, 0.15); + border: 2px solid #ff6ad5; + } diff --git a/src/lib/styles/win95.css b/src/lib/styles/win95.css index 83638d1..31f047a 100644 --- a/src/lib/styles/win95.css +++ b/src/lib/styles/win95.css @@ -32,3 +32,8 @@ :global(.theme-win95 button:active) { border-color: #000000 #ffffff #ffffff #000000; } +:global(.theme-win95 .chart-display) { + background: white; + border: 2px inset #808080; + } + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index aed4999..31f7732 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,8 @@ @@ -8,16 +10,20 @@ -