fix: wowmine site

This commit is contained in:
2026-11-17 20:28:58 +00:00
parent cd3e215b4d
commit 393a8cc6f5
8 changed files with 59 additions and 71 deletions
@@ -2,7 +2,7 @@
{
imports = [ (import ../../module/generic/minecraft-public-relay.nix { }) ];
services.minecraft-public-relay = {
enable = true;
enable = false;
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKNWWegOVTOF3EOmam32iP7sMybULMTxsXuC+cEGITQ8 minecraft-wow-relay";
};
}
@@ -53,29 +53,6 @@
scrollbar-color: var(--line) var(--bg);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
color-scheme: light;
--bg: #f3f2e8;
--surface: #fff;
--inset: #e7e9dc;
--ink: #202b21;
--muted: #53624c;
--line: #c8d1bd;
--focus: #47671d;
}
}
:root[data-theme="light"] {
color-scheme: light;
--bg: #f3f2e8;
--surface: #fff;
--inset: #e7e9dc;
--ink: #202b21;
--muted: #53624c;
--line: #c8d1bd;
--focus: #47671d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body-font); }
::selection { background: var(--grass); color: var(--action-ink); }
@@ -105,17 +82,6 @@ code { font-family: ui-monospace, "Cascadia Code", monospace; font-variant-numer
.main-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-8); margin-inline-start: auto; }
.main-nav a { display: flex; align-items: center; min-block-size: 48px; text-decoration: none; font-size: 14px; font-weight: 600; transition: color var(--ease); }
.main-nav a:hover { color: var(--muted); text-decoration: underline; }
.theme-toggle { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background var(--ease), transform var(--ease); }
.theme-toggle:hover { background: var(--inset); }
.theme-toggle:active { transform: translateY(2px); }
.theme-moon { display: none; }
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .theme-sun { display: none; }
:root:not([data-theme]) .theme-moon { display: block; }
}
.hero { --focus: #e8b86c; position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); background: #101a10; }
.hero-scene { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 68%) 38%, rgb(9 20 10 / 9%) 78%), linear-gradient(0deg, rgb(9 20 10 / 48%), transparent 45%); }
@@ -1,22 +1,5 @@
// @ts-check
const root = document.documentElement;
const darkPreference = window.matchMedia("(prefers-color-scheme: dark)");
document.querySelectorAll("[data-theme-toggle]").forEach((button) => {
button.addEventListener("click", () => {
const dark = root.dataset.theme
? root.dataset.theme === "dark"
: darkPreference.matches;
root.dataset.theme = dark ? "light" : "dark";
button.setAttribute(
"aria-label",
dark ? "Включить тёмную тему" : "Включить светлую тему",
);
button.setAttribute("title", button.getAttribute("aria-label") ?? "");
});
});
document.querySelectorAll("[data-copy-address]").forEach((button) => {
button.addEventListener("click", async () => {
const address = document.getElementById("server-address");
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark light">
<meta name="color-scheme" content="dark">
<meta name="theme-color" content="#141a15">
<meta name="description" content="WorldOfSosal — Азерот и Запределье в Minecraft. Скачай готовую сборку для Prism Launcher с автоматическими обновлениями и присоединяйся к серверу.">
<meta property="og:title" content="WorldOfSosal — Азерот из блоков">
@@ -26,8 +26,6 @@
<symbol id="download" viewBox="0 0 24 24"><path d="M12 3v12m-5-5 5 5 5-5M5 16v5h14v-5"/></symbol>
<symbol id="copy" viewBox="0 0 24 24"><path d="M9 9h11v11H9zM15 5V3H3v12h2"/></symbol>
<symbol id="check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"/></symbol>
<symbol id="sun" viewBox="0 0 24 24"><path d="M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5"/><circle cx="12" cy="12" r="4"/></symbol>
<symbol id="moon" viewBox="0 0 24 24"><path d="M20.5 13A8.5 8.5 0 0 1 11 3.5 8.5 8.5 0 1 0 20.5 13Z"/></symbol>
<symbol id="plus" viewBox="0 0 24 24"><path d="M5 12h14M12 5v14"/></symbol>
<symbol id="map" viewBox="0 0 24 24"><path d="m3 5 6-2 6 2 6-2v16l-6 2-6-2-6 2Zm6-2v16m6-14v16"/></symbol>
<symbol id="portal" viewBox="0 0 24 24"><path d="M5 21V7l4-4h6l4 4v14M9 21V9l2-2h2l2 2v12M3 21h18"/></symbol>
@@ -49,10 +47,6 @@
<a href="#start">Как начать</a>
<a class="nav-help" href="#help">Вопросы</a>
</nav>
<button class="theme-toggle" type="button" aria-label="Сменить тему" title="Сменить тему" data-theme-toggle>
<svg class="icon theme-sun" aria-hidden="true"><use href="#sun"/></svg>
<svg class="icon theme-moon" aria-hidden="true"><use href="#moon"/></svg>
</button>
</div>
</header>
@@ -81,7 +75,7 @@
<div><p class="connection-title">Место встречи</p><p class="connection-caption">Добавь в список серверов</p></div>
</div>
<div class="address-group">
<code id="server-address">store.hectic-lab.com:25568</code>
<code id="server-address">95.31.254.84:35565</code>
<button class="button button-copy" type="button" data-copy-address>
<svg class="icon copy-icon" aria-hidden="true"><use href="#copy"/></svg>
<svg class="icon copied-icon" aria-hidden="true"><use href="#check"/></svg>
@@ -1,6 +1,7 @@
{ config, pkgs, ... }:
let
mkTunnel = relay: {
enable = false;
description = "WorldOfSosal WoW reverse tunnel to ${relay.name}";
startLimitIntervalSec = 0;
wantedBy = [ "multi-user.target" ];
@@ -51,7 +51,8 @@
};
# The module's automatic firewall would also expose RCON.
networking.firewall.allowedTCPPorts = [ 25567 ];
networking.firewall.allowedTCPPorts = [ 35565 ];
networking.firewall.allowedUDPPorts = [ 36565 ];
services.minecraft-servers.servers.wowMineMap = {
openFirewall = false;
extraStartPre = ''
@@ -70,7 +71,7 @@
);
serverProperties = {
server-port = 25567;
server-port = 35565;
difficulty = "hard";
online-mode = false;
enable-rcon = true;