diff --git a/src/snek/static/base.css b/src/snek/static/base.css index 5db5aa9..bec7c5b 100644 --- a/src/snek/static/base.css +++ b/src/snek/static/base.css @@ -64,10 +64,34 @@ header nav a { transition: color 0.3s; } + header nav a:hover { color: #fff; } +a { + font-weight: bold; + color: #f05a28; + margin-bottom: 3px; +} + +.chat-area ul { + margin: 0px; + padding: 0px; +li { + font-weight: bold; + color: #f05a28; + margin-bottom: 3px; + list-style: none; + padding: 0; + margin: 0; + font-size: 1.5em; + a { + text-decoration: none; + } + +} +} main { display: flex; flex: 1; @@ -198,6 +222,16 @@ message-list { border-top: 1px solid #333; } +input[type="text"] { + flex: 1; + background-color: #1a1a1a; + color: white; + border: none; + padding: 10px; + border-radius: 5px; + resize: none; +} + .chat-input textarea { flex: 1; background-color: #1a1a1a; diff --git a/src/snek/static/fancy-button.js b/src/snek/static/fancy-button.js index 948db17..310f340 100644 --- a/src/snek/static/fancy-button.js +++ b/src/snek/static/fancy-button.js @@ -55,9 +55,16 @@ class FancyButton extends HTMLElement { this.shadowRoot.appendChild(this.container); this.url = this.getAttribute('url'); + + this.value = this.getAttribute('value'); this.buttonElement.appendChild(document.createTextNode(this.getAttribute("text"))); this.buttonElement.addEventListener("click", () => { + if(this.url == 'submit'){ + this.closest('form').submit() + return + } + if (this.url === "/back" || this.url === "/back/") { window.history.back(); } else if (this.url) { @@ -67,4 +74,4 @@ class FancyButton extends HTMLElement { } } -customElements.define("fancy-button", FancyButton); \ No newline at end of file +customElements.define("fancy-button", FancyButton); diff --git a/src/snek/templates/app.html b/src/snek/templates/app.html index fe38358..81d5611 100644 --- a/src/snek/templates/app.html +++ b/src/snek/templates/app.html @@ -6,7 +6,9 @@