diff --git a/README.md b/README.md index 2bc9017..7591c23 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ git clone git@git.sr.ht:~svlad_cjelli/onTheSpectrum cd onTheSpectrum # bun install all dependencies -bun i +bun i # bun run with bun backend bun --bun run dev --open diff --git a/src/lib/components/chartDisplay.svelte b/src/lib/components/chartDisplay.svelte index 0938ea7..aa1c418 100644 --- a/src/lib/components/chartDisplay.svelte +++ b/src/lib/components/chartDisplay.svelte @@ -1,18 +1,18 @@
- {#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 != ''} +
+
X-Axis (Horizontal)
+
{chart.x[0]} ↔ {chart.x[1]}
+
+
+
Y-Axis (Vertical)
+
{chart.y[0]} ↔ {chart.y[1]}
+
+ {:else} +

Click Generate!

+ {/if}
\ No newline at end of file diff --git a/src/lib/components/diceRoller.svelte b/src/lib/components/diceRoller.svelte index abb17da..e9b8c2f 100644 --- a/src/lib/components/diceRoller.svelte +++ b/src/lib/components/diceRoller.svelte @@ -1,14 +1,14 @@
- {#if roll} -
🎲 🎲
-
X: {roll.x} | Y: {roll.y}
- {:else} -
Click Roll!
- {/if} + {#if diceRoll.x != 0} +
🎲 🎲
+
X: {diceRoll.x} | Y: {diceRoll.y}
+ {:else} +
Click Roll!
+ {/if}
\ No newline at end of file + + diff --git a/src/lib/components/themeSelector.svelte b/src/lib/components/themeSelector.svelte index 2d3652d..46b98fb 100644 --- a/src/lib/components/themeSelector.svelte +++ b/src/lib/components/themeSelector.svelte @@ -3,13 +3,16 @@ export let currentTheme; +
+ Theme Selector +
- {#each themeNames as theme} + {#each themes as theme} {/each}
@@ -22,4 +25,4 @@ flex-wrap: wrap; margin-top: 10px; } - \ No newline at end of file + diff --git a/src/lib/data/xAxes.js b/src/lib/data/xAxes.js index d2f72f8..7b14cf0 100644 --- a/src/lib/data/xAxes.js +++ b/src/lib/data/xAxes.js @@ -1,15 +1,17 @@ -export const xAxes = [ +const xAxes = [ { values: ["Traditional", "Experimental"], adult: false }, { values: ["Budget", "Luxury"], adult: false }, { values: ["Old", "New"], adult: false }, { values: ["Simple", "Complex"], adult: false }, { values: ["Minimal", "Maximal"], adult: false }, - + // Adult axes { values: ["Beer", "Cocktails"], adult: true }, { values: ["Swipe-happy", "Selective"], adult: true }, { values: ["Casual", "Serious"], adult: true }, - + // Add more X axes here... // Format: { values: ["Left extreme", "Right extreme"], adult: true/false } -]; \ No newline at end of file +]; + +export default xAxes; diff --git a/src/lib/data/yAxes.js b/src/lib/data/yAxes.js index c1ee875..2b4ccdb 100644 --- a/src/lib/data/yAxes.js +++ b/src/lib/data/yAxes.js @@ -1,15 +1,17 @@ -export const yAxes = [ +const yAxes = [ { values: ["Thin", "Thick"], adult: false }, { values: ["Planned", "Spontaneous"], adult: false }, { values: ["Calm", "Upbeat"], adult: false }, { values: ["Indoor", "Outdoor"], adult: false }, { values: ["Solo", "Group"], adult: false }, - + // Adult axes { values: ["Occasional", "Frequent"], adult: true }, { values: ["Hookups", "Relationships"], adult: true }, { values: ["Private", "Public"], adult: true }, - + // Add more Y axes here... // Format: { values: ["Bottom extreme", "Top extreme"], adult: true/false } -]; \ No newline at end of file +]; + +export default yAxes; diff --git a/src/lib/index.ts b/src/lib/index.ts index 856f2b6..00ad36b 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1 +1,3 @@ // place files you want to import through the `$lib` alias in this folder. +export { default as xAxes } from './data/xAxes.js' +export { default as yAxes } from './data/yAxes.js' diff --git a/src/lib/styles/cyberpunk.css b/src/lib/styles/cyberpunk.css new file mode 100644 index 0000000..d28a9bd --- /dev/null +++ b/src/lib/styles/cyberpunk.css @@ -0,0 +1,52 @@ +/* Cyberpunk Theme */ +:global{ + body:has(.theme-cyberpunk){ + background: #0a0e27; + } + .theme-cyberpunk { + font-family: 'Courier New', monospace; + background: #0a0e27; + color: #00ffff; + .dice-display { + background: rgba(0, 255, 255, 0.05); + border: 1px solid #00ffff; + } + .window{ + background: rgba(10, 14, 39, 0.95); + border: 2px solid #00ffff; + box-shadow: 0 0 20px #ff00ff; + } + .title-bar { + background: linear-gradient(90deg, #ff00ff, #00ffff); + color: #000; + padding: 12px; + font-weight: bold; + text-transform: uppercase; + } + fieldset { + border: 1px solid #ff00ff; + } + + legend { + color: #ff00ff; + text-transform: uppercase; + } + + button { + background: transparent; + border: 2px solid #ff00ff; + color: #ff00ff; + font-family: 'Courier New', monospace; + text-transform: uppercase; + padding: 10px 25px; + &:hover { + background: #ff00ff; + color: #000; + } + } + .chart-display { + background: rgba(0, 255, 255, 0.05); + border: 1px solid #00ffff; + } + } +} diff --git a/src/lib/styles/vaporwave.css b/src/lib/styles/vaporwave.css new file mode 100644 index 0000000..38db50d --- /dev/null +++ b/src/lib/styles/vaporwave.css @@ -0,0 +1,52 @@ +/* Vaporwave Theme */ +:global(.theme-vaporwave) { + font-family: 'Arial', sans-serif; + background: linear-gradient(180deg, #ff6ad5 0%, #c774e8 50%, #ad8cff 100%); + color: #fff; +} + +:global(.theme-vaporwave .window) { + background: rgba(255, 106, 213, 0.3); + backdrop-filter: blur(10px); + border: 3px solid #00f0ff; + box-shadow: 0 8px 32px rgba(0, 240, 255, 0.4); +} + +:global(.theme-vaporwave .title-bar) { + background: linear-gradient(90deg, #ff6ad5, #00f0ff); + color: #fff; + padding: 15px; + text-align: center; + text-transform: uppercase; + letter-spacing: 4px; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); +} + +:global(.theme-vaporwave fieldset) { + border: 2px solid #00f0ff; + background: rgba(255, 255, 255, 0.1); +} + +:global(.theme-vaporwave legend) { + color: #00f0ff; + text-transform: uppercase; +} + +:global(.theme-vaporwave button) { + background: linear-gradient(135deg, #ff6ad5, #c774e8); + border: 2px solid #00f0ff; + color: #fff; + text-transform: uppercase; + padding: 12px 30px; +} + :global(.theme-vaporwave .chart-display ){ + background: rgba(255, 255, 255, 0.15); + border: 2px solid #ff6ad5; + } +:global{ + .theme-vaporwave .dice-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 ec9dc34..b536f96 100644 --- a/src/lib/styles/win95.css +++ b/src/lib/styles/win95.css @@ -10,16 +10,16 @@ box-shadow: 2px 2px 0 rgba(0,0,0,0.5); } -.theme-win95 .title-bar { - background: linear-gradient(to right, #000080, #1084d0); - color: white; - padding: 8px; - font-weight: bold; -} + .title-bar { + background: linear-gradient(to right, #000080, #1084d0); + color: white; + padding: 8px; + font-weight: bold; + } -.theme-win95 fieldset { - border: 2px groove #c0c0c0; -} + fieldset { + border: 2px groove #c0c0c0; + } .theme-win95 button { background: #c0c0c0; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index ed553bb..56b80d0 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,8 @@ @@ -8,26 +10,50 @@ -