+
Labyrinth Generator
+
Enter some values, click the "Create!" button and see what happens!
+
+
+
+
diff --git a/src/main/resources/webassets/style.css b/src/main/resources/webassets/style.css
new file mode 100644
index 0000000..153f8e8
--- /dev/null
+++ b/src/main/resources/webassets/style.css
@@ -0,0 +1,51 @@
+:root {
+ --color-background: #181a1b;
+ --color-foreground: #e8e6e3;
+ --color-border: #5d6164;
+ --color-background-highlight: #292b2c;
+ --color-foreground-highlight: #f8f7f4;
+ --color-border-highlight: #6e7275;
+}
+
+body {
+ display: flex;
+ font-family: sans-serif;
+ justify-content: center;
+}
+
+body, button, input, select {
+ background-color: var(--color-background);
+ color: var(--color-foreground);
+}
+
+button, input, select {
+ border: 1px solid var(--color-border);
+}
+
+button:active, input:active, select:active,
+button:focus, input:focus, select:focus,
+button:hover, input:hover, select:hover {
+ background-color: var(--color-background-highlight);
+ border-color: var(--color-border-highlight);
+ color: var(--color-foreground-highlight);
+}
+
+button.primary {
+ background-color: #ffcc00;
+ border-color: #eebb00;
+ color: var(--color-background);
+}
+
+.content {
+ width: 75%;
+}
+
+.content h1 {
+ text-align: center;
+}
+
+.inputs-wrapper {
+ display: grid;
+ grid-row-gap: 1em;
+ grid-template-columns: 0.5fr 1fr;
+}
diff --git a/src/test/java/ch/fritteli/labyrinth/server/ServerConfigTest.java b/src/test/java/ch/fritteli/labyrinth/server/ServerConfigTest.java
index 277abd3..23e31d7 100644
--- a/src/test/java/ch/fritteli/labyrinth/server/ServerConfigTest.java
+++ b/src/test/java/ch/fritteli/labyrinth/server/ServerConfigTest.java
@@ -4,7 +4,6 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.net.UnknownHostException;
-import java.util.Properties;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -12,7 +11,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
class ServerConfigTest {
@BeforeEach
void clearSysProperties() {
- System.setProperties(new Properties());
+ System.clearProperty(ServerConfig.SYSPROP_HOST);
+ System.clearProperty(ServerConfig.SYSPROP_PORT);
}
@Test