diff --git a/docs/wowmine/DESIGN.md b/docs/wowmine/DESIGN.md new file mode 100644 index 00000000..ca6ede1f --- /dev/null +++ b/docs/wowmine/DESIGN.md @@ -0,0 +1,129 @@ +# WorldOfSosal / wowmine + +## 1. Purpose + +A Russian-language Minecraft server landing page at `/wowmine/`. The existing +Prism publication at `/minecraft/world-of-sosal/` remains the source of downloads +and updates. This page never publishes or changes a client pack or server world. + +Primary action: download the auto-updating Prism instance. +Information priorities: the Azeroth/Outland world, how to install, how to connect. +Required content: Prism ZIP, server address, Minecraft 1.21.1, NeoForge 21.1.250, +Java 21, 8 GiB instance allocation, permission for the pre-launch updater, +preserved options.txt, managed configuration updates, relaunch after a loader +update, manual mrpack and checksums. +Left out: invented player counts, fake live status, reviews, prices, account +forms, tracking, external JavaScript, and changes to the existing pack publisher. + +## 2. Direction + +Minecraft's tangible game-menu language: square controls, inset highlights, +block geometry, earthy stone surfaces, warm sunlight and a grassy green action. +The hero is an original fictional voxel illustration, not a server screenshot. +Russo One gives the Cyrillic display a block-built silhouette; Golos Text keeps +instructions readable. No official Minecraft logo or character art is used. + +The alternatives were a generic launcher dashboard and a parchment fantasy +page. Both obscure the requested Minecraft identity; neither is used. +Material exceptions to the general frontend defaults are deliberate: square +bevels and small hard shadows evoke Minecraft controls, not SaaS cards. + +## 3. Tokens + +Dark: background `#141a15`, raised `#202921`, inset `#101610`, +text `#f4f3e7`, muted `#bec9b8`, line `#394638`. +Light: background `#f3f2e8`, raised `#ffffff`, inset `#e7e9dc`, +text `#202b21`, muted `#53624c`, line `#c8d1bd`. +Shared: grass `#a7d754`, grass hover `#b9e66c`, action ink `#17250d`, +dark/hero focus `#e8b86c`, light focus `#47671d`; +hero ink `#fffdf0`, hero muted `#e5e9d7`. + +Type: Russo One 400 for display/headings, Golos Text 400/600 for UI/body; +system monospace only for the server address and filenames. +Display: 36–84px; h2: 32–48px; h3: 24–28px; body: 16–18px; small: 14px. +Space: 4, 8, 12, 16, 24, 32, 48, 64, 80, 96px. +Container: 1200px maximum, 24px mobile and 48px desktop gutters. +Controls: minimum 48px tall, square corners; focus outline 3px with 4px offset. +Motion: 140ms ease-out for press/hover feedback; no ambient loops. + +## 4. Layout + +Layout: wowmine page - a world introduction followed by installation and help -> +main-with-rail (https://github.com/changeroa/StyleGallery/blob/main/patterns/split-sidebar/main-with-rail.md); +scroll owner: document; anti-patterns: no fixed-height scroll panels, no hidden +mobile content, no visual reordering that changes keyboard order. + +Layout: installation - sequential setup actions -> +step-nav (https://github.com/changeroa/StyleGallery/blob/main/patterns/stacking/step-nav.md); +scroll owner: document; anti-patterns: no horizontal step scroller and no +same-size feature-card grid. + +The hero uses one scenic image and readable text over a dark scrim in both +themes. Below it, theme-aware stone surfaces hold the server address and setup +instructions. Desktop has a narrow requirements rail; mobile stacks in DOM +order. Footer stays in normal flow. The whole page reflows down to 320px. + +## 5. Components and states + +- Brand: original block mark plus WorldOfSosal, linked to the page start. +- Navigation: in-page links, a compact theme control; no account or fake menu. +- Primary download: one prominent button, hover/pressed/focus states. +- Copy-address row: address always visible; stable-size icon button; polite, + reserved feedback for success or clipboard denial. Address remains selectable. +- Setup list: three numbered instructions with real destinations and named + files; no interaction required to read the instructions. +- Requirements list: semantic description list, not performance claims. +- FAQ: native details/summary, visible keyboard focus and open-state icon. +- Theme: follows system preference; a button toggles the page between light and + dark without storing cookies or requiring localStorage. + +## 6. Content and assets + +Verified existing source: `docs/minecraft-prism.md`, the public active page, +and `script/build-prism-pack.py`. Stable links stay under +`/minecraft/world-of-sosal/`; Prism ZIP is not a plain mrpack import. +Fonts are self-hosted Google Fonts releases under OFL, with notices beside them. +Hero art is generated specifically for this page; original generation is +retained in task evidence, and the shipped asset is a compressed WebP. +All other graphics are small SVG interface glyphs and an original favicon. + +## 7. Accessibility and browser surfaces + +Semantic landmarks, one h1, ordered h2/h3 headings, skip link, native FAQ, +visible focus, text selection, themed scrollbars, no color-only instructions. +Target: WCAG 2.2 AA contrast and reflow; touch controls 44px or larger. +Reduced motion disables smooth scrolling and transforms. The static document +works without JavaScript: downloads, setup, FAQ, and selectable IP remain usable. +Both themes are captured on mobile and desktop; the component state harness is +the real page, exercised through browser interactions. + +## 8. Evidence and accepted debt + +Before captures: `/tmp/wowmine-qa/before-{desktop,mobile}.png`. +After captures and checks: `/tmp/wowmine-qa/`. +Publication is separate from local implementation and must be reported honestly. +No visual debt accepted yet. + +Verified locally in Chromium: 1440px and 390px, both themes, installation +layout, native FAQ expansion, clipboard success and permission denial, +visible keyboard focus, and no horizontal overflow at 320px. +Captures: `after-{desktop,mobile}-{light,dark}.png`, `mobile-install.png`, +and `reflow-320.png` in the evidence directory. +HTTP preview serves the redirect, document, scripts, fonts and image; the three +existing public download/checksum URLs return 200. +Nix parsing and isolated route evaluation pass. Bun browser bundling and the +frontend draft guard pass. Full NixOS deployment was not run. +The frontend detect renderer cannot run on installed Bun 1.2.13 because +`Bun.WebView` is unavailable; browser checks above were run directly instead. +TypeScript and editor language servers are not installed; browser bundling +checks JavaScript syntax, not a full TypeScript analysis. + +## 9. Gap ledger + +| ID | Before | Required improvement | Proof | +| --- | --- | --- | --- | +| G1 | `/wowmine` returns 404 | Add a Nix-owned static route | Route evaluation and HTTP preview | +| G2 | Bare browser-default text | Minecraft identity and readable hierarchy | Desktop/mobile screenshots | +| G3 | Instructions lack structure | Ordered setup, requirements and FAQ | Browser landmarks and links | +| G4 | IP is plain text | Copy action with accessible feedback | Keyboard and clipboard states | +| G5 | No responsive/theme system | 320px reflow and both themes | Reflow/contrast probes | diff --git a/nixos/system/hectic-lab/hectic-lab.nix b/nixos/system/hectic-lab/hectic-lab.nix index 9b875d84..3a449f1b 100644 --- a/nixos/system/hectic-lab/hectic-lab.nix +++ b/nixos/system/hectic-lab/hectic-lab.nix @@ -448,6 +448,22 @@ in { autoindex on; ''; }; + locations."= /wowmine" = { + extraConfig = '' + return 302 /wowmine/; + ''; + }; + locations."^~ /wowmine/" = { + extraConfig = '' + alias ${./static/wowmine}/; + index index.html; + autoindex off; + add_header Cache-Control "no-cache" always; + limit_except GET { + deny all; + } + ''; + }; locations."= /world-of-sosal/" = { extraConfig = '' return 302 /world-of-sosal/index.html; diff --git a/nixos/system/hectic-lab/static/wowmine/assets/OFL-golos.txt b/nixos/system/hectic-lab/static/wowmine/assets/OFL-golos.txt new file mode 100644 index 00000000..4db2dc99 --- /dev/null +++ b/nixos/system/hectic-lab/static/wowmine/assets/OFL-golos.txt @@ -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. diff --git a/nixos/system/hectic-lab/static/wowmine/assets/OFL-russo.txt b/nixos/system/hectic-lab/static/wowmine/assets/OFL-russo.txt new file mode 100644 index 00000000..7a9a5009 --- /dev/null +++ b/nixos/system/hectic-lab/static/wowmine/assets/OFL-russo.txt @@ -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. diff --git a/nixos/system/hectic-lab/static/wowmine/assets/favicon.svg b/nixos/system/hectic-lab/static/wowmine/assets/favicon.svg new file mode 100644 index 00000000..d8648bf0 --- /dev/null +++ b/nixos/system/hectic-lab/static/wowmine/assets/favicon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/nixos/system/hectic-lab/static/wowmine/assets/golos-regular.ttf b/nixos/system/hectic-lab/static/wowmine/assets/golos-regular.ttf new file mode 100644 index 00000000..f7e94e02 Binary files /dev/null and b/nixos/system/hectic-lab/static/wowmine/assets/golos-regular.ttf differ diff --git a/nixos/system/hectic-lab/static/wowmine/assets/golos-semibold.ttf b/nixos/system/hectic-lab/static/wowmine/assets/golos-semibold.ttf new file mode 100644 index 00000000..2530a42d Binary files /dev/null and b/nixos/system/hectic-lab/static/wowmine/assets/golos-semibold.ttf differ diff --git a/nixos/system/hectic-lab/static/wowmine/assets/russo-one.ttf b/nixos/system/hectic-lab/static/wowmine/assets/russo-one.ttf new file mode 100644 index 00000000..db9b8019 Binary files /dev/null and b/nixos/system/hectic-lab/static/wowmine/assets/russo-one.ttf differ diff --git a/nixos/system/hectic-lab/static/wowmine/assets/site.css b/nixos/system/hectic-lab/static/wowmine/assets/site.css new file mode 100644 index 00000000..6b54d779 --- /dev/null +++ b/nixos/system/hectic-lab/static/wowmine/assets/site.css @@ -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; } +} diff --git a/nixos/system/hectic-lab/static/wowmine/assets/site.js b/nixos/system/hectic-lab/static/wowmine/assets/site.js new file mode 100644 index 00000000..572c63b0 --- /dev/null +++ b/nixos/system/hectic-lab/static/wowmine/assets/site.js @@ -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 = "Выдели адрес и скопируй его вручную."; + } + }); +}); diff --git a/nixos/system/hectic-lab/static/wowmine/assets/world-valley.webp b/nixos/system/hectic-lab/static/wowmine/assets/world-valley.webp new file mode 100644 index 00000000..73a9d2db Binary files /dev/null and b/nixos/system/hectic-lab/static/wowmine/assets/world-valley.webp differ diff --git a/nixos/system/hectic-lab/static/wowmine/index.html b/nixos/system/hectic-lab/static/wowmine/index.html new file mode 100644 index 00000000..aa3da8b6 --- /dev/null +++ b/nixos/system/hectic-lab/static/wowmine/index.html @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + WorldOfSosal — Азерот из блоков + + + + + + + +
+
+ +
+

Азерот. Теперь из блоков.

+

Знакомые земли — совсем другая история.
Исследуй Азерот и Запределье в нашей сборке Minecraft.

+ +

Для Prism Launcher · с автообновлениями

+
+ Дальше — целый мир +
+ +
+
+
+ +

Место встречи

Добавь в список серверов

+
+
+ store.hectic-lab.com:25568 + +
+

+
+
+ +
+
+
+

За каждым блоком —
новое открытие.

+

Знакомые города и далёкие земли. Мир Warcraft, в котором можно не только путешествовать, но и строить свою историю.

+
+
+
+ +

Азерот

Знакомые земли, города и простор для собственных построек. Выбирай направление и отправляйся в путь.

+
+
+ +

Запределье

Отдельное измерение для продолжения путешествия. Когда одного мира уже недостаточно.

+
+
+
+
+ +
+
+

Три шага до приключения

+
+
    +
  1. + +

    Установи Prism Launcher

    Скачай Prism Launcher и выбери Java 21 в настройках. Это дом для твоей сборки.

    +
  2. +
  3. + +

    Добавь сборку

    Скачай ZIP для Prism. Затем открой «Добавить сборку» → «Импорт из ZIP» и выбери скачанный файл.

    +
  4. +
  5. + +

    Запускай и присоединяйся

    Разреши команду перед запуском: она установит и обновит моды через packwiz. Адрес сервера уже добавлен в сборку.

    +
  6. +
+ +
+
+
+ +
+
+

Перед входом
в мир

+
+
+ Как обновляется сборка? +

Перед каждым запуском packwiz проверяет файлы и устанавливает опубликованные обновления модов и конфигурации. Скачивать новую сборку вручную не нужно.

+
+
+ Сохранятся мои настройки? +

Личные настройки в options.txt сохраняются. Файлы конфигурации, которыми управляет сборка, могут заменяться при обновлении.

+
+
+ Что делать после обновления Minecraft? +

При смене версии Minecraft или NeoForge может понадобиться ещё раз запустить игру после обновления. Разрешённая команда перед запуском должна оставаться включённой.

+
+
+ Можно скачать обычный mrpack? +

Да, доступен обычный mrpack. В нём нет автообновлений: новые версии нужно устанавливать вручную. Для проверки файлов есть контрольные суммы SHA-256.

+
+
+
+
+
+ + + +