-
- {#if chart.x.length > 1}
+
+ {#if !chart.empty}
{chart.y[1]}
{:else}
(Top Value)
{/if}
↕
-
- {#if chart.x.length > 1}
+
+ {#if !chart.empty}
{chart.y[0]}
{:else}
(Bottom Value)
@@ -54,8 +55,24 @@
-
-
+
+
{#each { length: 10 } as _, i}
@@ -78,7 +95,7 @@
{/each}
- {#if roll.x !== 0 && roll.y !== 0}
+ {#if !roll.empty}
-
- {#if chart.x.length > 1}
+
+ {#if !chart.empty}
{chart.x[0]}
{:else}
(Left Value)
{/if}
↔
-
- {#if chart.x.length > 1}
+
+ {#if !chart.empty}
{chart.x[1]}
{:else}
(Right Value)
@@ -127,8 +144,8 @@
-
- {#if roll.x === 0 && roll.y === 0}
+
+ {#if roll.empty}
(X, Y)
{:else}
({roll.x}, {roll.y})
@@ -215,7 +232,7 @@
.chart-wrapper {
display: flex;
justify-content: center;
- flex: .9;
+ flex: 0.9;
}
.chart-svg {
@@ -273,4 +290,5 @@
font-size: 20px;
}
}
-
\ No newline at end of file
+
+
diff --git a/src/lib/components/themeSelector.svelte b/src/lib/components/themeSelector.svelte
index 9dda69e..b2c55e4 100644
--- a/src/lib/components/themeSelector.svelte
+++ b/src/lib/components/themeSelector.svelte
@@ -25,6 +25,39 @@
width: 45%;
}
}
+
+ .theme-chalkboard {
+ background: rgba(245, 245, 220, 0.15);
+ border-color: #f5f5dc;
+ color: #f5f5dc;
+ font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
+ text-transform: uppercase;
+ &:hover {
+ background: rgba(245, 245, 220, 0.25);
+ box-shadow: 0 0 10px rgba(245, 245, 220, 0.3);
+ }
+ }
+ .theme-classroom {
+ background: #f44336;
+ border-color: #d32f2f;
+ border-radius: 12px;
+ color: #fff;
+ font-family: 'Comic Sans MS', cursive;
+ text-transform: uppercase;
+ font-weight: bold;
+ box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
+
+ &:hover {
+ background: #e53935;
+ transform: translate(-2px, -2px);
+ box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.2);
+ }
+
+ &:active {
+ transform: translate(2px, 2px);
+ box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
+ }
+ }
.theme-cyberpunk {
background: transparent;
border: 2px solid #ff00ff;
diff --git a/src/lib/styles/classroom.css b/src/lib/styles/classroom.css
index 5b6f8ba..09c447f 100644
--- a/src/lib/styles/classroom.css
+++ b/src/lib/styles/classroom.css
@@ -131,4 +131,4 @@
fill: #333;
font-weight: bold;
}
-}
\ No newline at end of file
+}
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index dfcb5dd..5304fc2 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,5 +1,6 @@
+
+
+
+
+