feat: transfer wowmine to neuro

This commit is contained in:
2026-11-20 10:52:59 +00:00
parent f69752dcc0
commit 53d4ecc2bf
66 changed files with 1319 additions and 425 deletions
@@ -0,0 +1,93 @@
Copyright 2019 The Golos Text Project Authors (https://github.com/googlefonts/golos-text)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
Copyright (c) 2011-2012, Jovanny Lemonad (jovanny.ru), with Reserved Font Name "Russo"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
<path fill="#a7d754" d="m24 2 22 11-22 11L2 13Z"/>
<path fill="#765239" d="m2 13 22 11v22L2 35Z"/>
<path fill="#513c30" d="m24 24 22-11v22L24 46Z"/>
<path fill="#76a637" d="m2 13 22 11v8l-8-4v-4l-6-3v5l-8-4Zm22 11 22-11v9l-7 3v-4l-7 4v5l-8 4Z"/>
</svg>

After

Width:  |  Height:  |  Size: 322 B

@@ -0,0 +1,251 @@
@font-face {
font-family: "Golos Text";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./golos-regular.ttf") format("truetype");
}
@font-face {
font-family: "Golos Text";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("./golos-semibold.ttf") format("truetype");
}
@font-face {
font-family: "Russo One";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./russo-one.ttf") format("truetype");
}
:root {
color-scheme: dark;
--bg: #141a15;
--surface: #202921;
--inset: #101610;
--ink: #f4f3e7;
--muted: #bec9b8;
--line: #394638;
--grass: #a7d754;
--grass-hover: #b9e66c;
--action-ink: #17250d;
--focus: #e8b86c;
--hero-ink: #fffdf0;
--hero-muted: #e5e9d7;
--body-font: "Golos Text", sans-serif;
--heading-font: "Russo One", sans-serif;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-6: 24px;
--space-8: 32px;
--space-12: 48px;
--space-16: 64px;
--space-20: 80px;
--space-24: 96px;
--ease: 140ms ease-out;
--gutter: clamp(24px, 4vw, 48px);
scroll-behavior: smooth;
scroll-padding-top: var(--space-8);
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); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 2.1vw, 28px); }
code { font-family: ui-monospace, "Cascadia Code", monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.container { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.section { padding-block: var(--space-24); }
.icon-sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon, .world-icon { inline-size: 24px; block-size: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.skip-link { position: fixed; top: var(--space-4); left: var(--space-4); z-index: 3; padding: var(--space-3) var(--space-4); background: var(--grass); color: var(--action-ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { min-block-size: 88px; display: flex; align-items: center; gap: var(--space-8); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-block { inline-size: 36px; block-size: 40px; flex: 0 0 auto; }
.brand-name { font-family: var(--heading-font); font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.brand-name span { display: block; font-size: 24px; }
.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%); }
.hero-inner { min-block-size: 640px; padding-block: var(--space-24) var(--space-24); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
h1 { max-inline-size: 800px; font-size: clamp(36px, 5.3vw, 84px); line-height: 1.09; letter-spacing: -.02em; text-shadow: 0 4px 0 rgb(9 20 10 / 75%); }
h1 span { display: block; }
.hero-lead { max-inline-size: 51ch; margin-block-start: var(--space-6); color: var(--hero-muted); font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin-block-start: var(--space-8); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-3); min-block-size: 56px; padding: var(--space-4) var(--space-6); border: 2px solid transparent; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background var(--ease), transform var(--ease), box-shadow var(--ease); }
.button-primary { background: var(--grass); color: var(--action-ink); border-color: rgb(23 37 13 / 28%); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 5px 0 #506c26; }
.button-primary:hover { background: var(--grass-hover); transform: translateY(-2px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 7px 0 #506c26; }
.button-primary:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 1px 0 #506c26; }
.hero-guide { display: inline-flex; align-items: center; gap: var(--space-3); min-block-size: 48px; text-decoration: none; font-weight: 600; }
.hero-guide:hover { text-decoration: underline; }
.hero-guide .icon { inline-size: 20px; }
.hero-note { margin-block-start: var(--space-6); color: var(--hero-muted); font-size: 14px; }
.hero-scroll { position: absolute; inset-block-end: var(--space-6); inset-inline-end: var(--gutter); display: flex; align-items: center; gap: var(--space-3); min-block-size: 44px; color: var(--hero-ink); text-decoration: none; font-size: 14px; }
.hero-scroll .icon { transform: rotate(90deg); inline-size: 18px; }
.hero-scroll:hover span { text-decoration: underline; }
.connection { background: var(--surface); border-bottom: 1px solid var(--line); }
.connection-inner { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-8) var(--space-12); }
.connection-label { display: flex; align-items: center; gap: var(--space-4); }
.signal-mark { inline-size: 12px; block-size: 12px; background: var(--muted); box-shadow: 6px -6px 0 var(--muted); margin-inline-end: var(--space-2); }
.connection-title { font-weight: 600; }
.connection-caption { color: var(--muted); font-size: 14px; }
.address-group { display: flex; align-items: center; gap: var(--space-6); min-inline-size: 0; }
#server-address { font-size: 17px; color: var(--ink); }
.button-copy { inline-size: 184px; min-block-size: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); color: var(--ink); background: var(--inset); font-size: 14px; }
.button-copy:hover { background: var(--bg); }
.button-copy:active { transform: translateY(2px); }
.copied-icon { display: none; }
[data-copied="true"] .copy-icon { display: none; }
[data-copied="true"] .copied-icon { display: block; }
.copy-feedback { position: absolute; inset-inline-end: 0; inset-block-end: var(--space-3); max-inline-size: 100%; min-block-size: 23px; color: var(--muted); font-size: 14px; }
.world-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-24); }
.section-intro > p { margin-block-start: var(--space-6); max-inline-size: 48ch; color: var(--muted); font-size: 18px; }
.world-list { display: grid; gap: var(--space-8); align-content: center; }
.world-entry { display: flex; gap: var(--space-6); }
.world-entry + .world-entry { padding-block-start: var(--space-8); border-top: 1px solid var(--line); }
.world-icon { inline-size: 32px; block-size: 32px; color: var(--muted); }
.world-entry p { margin-block-start: var(--space-3); color: var(--muted); max-inline-size: 48ch; }
.setup-section { background: var(--inset); }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--space-24); margin-block-start: var(--space-12); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.steps li { display: flex; align-items: flex-start; gap: var(--space-6); }
.step-number { flex: 0 0 48px; display: grid; place-items: center; block-size: 48px; color: var(--muted); border: 1px solid var(--line); font-family: var(--heading-font); font-size: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 24px; }
.steps p { margin-block-start: var(--space-3); max-inline-size: 63ch; color: var(--muted); }
.steps a, .questions a { color: var(--ink); }
.steps a:hover, .questions a:hover { text-decoration-thickness: 2px; }
.requirements { align-self: start; padding: var(--space-8); background: var(--surface); }
.requirements dl { margin-block: var(--space-6); }
.requirements dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: 14px; }
.requirements dt { color: var(--muted); }
.requirements dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.requirements > p { color: var(--muted); font-size: 14px; }
.help-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: var(--space-24); }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-block-size: 80px; padding-block: var(--space-6); cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.5; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--muted); }
.questions summary .icon { transition: transform var(--ease); }
.questions details[open] summary .icon { transform: rotate(45deg); }
.questions details > p { max-inline-size: 65ch; padding-block-end: var(--space-6); padding-inline-end: var(--space-12); color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-12); background: var(--inset); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); }
.footer-brand { display: flex; flex-direction: column; min-block-size: 48px; text-decoration: none; font-family: var(--heading-font); font-size: 20px; }
.footer-brand span { margin-block-start: var(--space-2); color: var(--muted); font: 400 14px/1.65 var(--body-font); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); font-size: 14px; }
.footer-links a { display: flex; align-items: center; min-block-size: 48px; }
.footer-inner > p { flex-basis: 100%; color: var(--muted); font-size: 14px; }
@media (min-width: 1600px) {
.hero-inner { min-block-size: 720px; }
}
@media (max-width: 960px) {
.world-layout, .setup-layout, .help-layout { gap: var(--space-12); }
.world-layout { grid-template-columns: 1fr 1fr; }
.connection-label { flex-basis: 100%; }
.address-group { inline-size: 100%; justify-content: space-between; }
.copy-feedback { inset-inline-start: 0; }
}
@media (max-width: 700px) {
.header-inner { min-block-size: 80px; gap: var(--space-4); }
.brand-block { inline-size: 28px; block-size: 32px; }
.brand-name { font-size: 16px; }
.brand-name span { font-size: 19px; }
.main-nav { gap: 0; }
.main-nav a { font-size: 14px; }
.main-nav .nav-world, .main-nav .nav-help { display: none; }
.theme-toggle { inline-size: 44px; block-size: 44px; flex: 0 0 auto; }
.hero-inner { min-block-size: 620px; padding-block: var(--space-16) var(--space-24); }
.hero-scene { object-position: 61% center; }
.hero::before { background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 60%)), linear-gradient(0deg, rgb(9 20 10 / 30%), transparent); }
h1 { font-size: clamp(34px, 7.7vw, 48px); }
.hero-lead { margin-block-start: var(--space-6); font-size: 16px; }
.hero-actions { gap: var(--space-4) var(--space-6); margin-block-start: var(--space-8); }
.button-primary { min-block-size: 56px; }
.hero-guide { font-size: 14px; }
.hero-note { font-size: 14px; }
.hero-scroll { inset-inline-start: var(--gutter); inset-inline-end: auto; font-size: 14px; }
.connection-inner { gap: var(--space-6); padding-block: var(--space-8) 52px; }
.address-group { gap: var(--space-3); }
#server-address { font-size: 14px; }
.button-copy { inline-size: 48px; flex: 0 0 48px; padding: var(--space-3); }
.button-copy span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.copy-feedback { font-size: 14px; line-height: 1.5; }
.section { padding-block: var(--space-16); }
.world-layout, .setup-layout, .help-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
.section-intro > p { font-size: 16px; }
.world-entry { gap: var(--space-4); }
.world-entry h3 { font-size: 26px; }
.world-icon { inline-size: 28px; block-size: 28px; }
.setup-layout { margin-block-start: var(--space-8); }
.steps li { gap: var(--space-4); }
.step-number { flex-basis: 40px; block-size: 40px; font-size: 18px; }
.steps h3 { font-size: 24px; }
.requirements { padding: var(--space-6); }
.questions summary { font-size: 16px; gap: var(--space-4); }
.questions details > p { padding-inline-end: 0; }
.footer-inner { gap: var(--space-6); }
.footer-links { gap: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
:root { scroll-behavior: auto; }
*, *::before, *::after { transition: none !important; }
.button-primary:hover, .button-primary:active, .button-copy:active, .theme-toggle:active { transform: none; }
}
@@ -0,0 +1,36 @@
// @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");
const feedback = document.getElementById("copy-feedback");
if (!address || !feedback) return;
try {
await navigator.clipboard.writeText(address.innerText.trim());
button.setAttribute("data-copied", "true");
feedback.textContent = "Адрес скопирован. Увидимся в игре.";
} catch (error) {
if (!(error instanceof DOMException)) throw error;
button.removeAttribute("data-copied");
feedback.textContent = "Выдели адрес и скопируй его вручную.";
}
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB