diff --git a/assets/enemies/magnum_loader.webp b/assets/enemies/magnum_loader.webp index e52c25f..43c5469 100644 Binary files a/assets/enemies/magnum_loader.webp and b/assets/enemies/magnum_loader.webp differ diff --git a/templates/components/bbs/script.js b/templates/components/bbs/script.js index 9a639c0..0fde3f0 100644 --- a/templates/components/bbs/script.js +++ b/templates/components/bbs/script.js @@ -43,16 +43,6 @@ document.addEventListener("DOMContentLoaded", (event) => { }); }); -function debounce(callback, wait = 300) { - let timeoutId = null; - return (...args) => { - window.clearTimeout(timeoutId); - timeoutId = window.setTimeout(() => { - callback(...args); - }, wait); - }; -} - function filter() { const table = document.querySelector("table tbody"); const search = document.getElementById("filter").value.toLowerCase(); diff --git a/templates/components/core/script.js b/templates/components/core/script.js new file mode 100644 index 0000000..652751d --- /dev/null +++ b/templates/components/core/script.js @@ -0,0 +1,9 @@ +function debounce(callback, wait = 300) { + let timeoutId = null; + return (...args) => { + window.clearTimeout(timeoutId); + timeoutId = window.setTimeout(() => { + callback(...args); + }, wait); + }; +} diff --git a/templates/components/core/style.css b/templates/components/core/style.css new file mode 100644 index 0000000..5a018ef --- /dev/null +++ b/templates/components/core/style.css @@ -0,0 +1,80 @@ +body { + position: relative; + min-height: 98vh; + background-color: #333; + color: #fff; +} + +footer { + text-align: center; + position: absolute; + bottom: 0; + width: 100%; + + * { + margin-bottom: 0; + } +} + +#content { + padding-bottom: 2.5rem; +} + +table { + width: 100%; + text-align: center; + vertical-align: middle; + border-collapse: collapse; + margin-top: 10px; + + thead th { + background-color: #252525; + } +} + +ul { + line-height: 1.5; +} + +a { + color: #00ff00; + text-decoration: none; + + &:hover { + color: #9dff9d; + } + + &:visited { + color: #00a200; + + &:hover { + color: #65a565; + } + } +} + +button { + margin-left: 16px; + background: #444; + color: #fff; + padding: 8px; + border-color: #555; + border-bottom-color: rgb(85, 85, 85); + border-style: groove; + border-bottom-color: #0a0; + transition-duration: 0.1s; + + &:hover { + background: #4f4f4f; + } + + &:active { + background: #3f3f3f; + transform: translateY(1px); + } + + &.disabled { + opacity: 0.6; + cursor: not-allowed; + } +} diff --git a/templates/layouts/base.html b/templates/layouts/base.html index c6691f7..aee7ef4 100644 --- a/templates/layouts/base.html +++ b/templates/layouts/base.html @@ -3,88 +3,8 @@