Make Russian website copy clearer and more natural

This commit is contained in:
nyan404 committed 2026-11-22 17:09:02 +03:00
1 parent ad8e2d1438
commit eb04ce3e48
9 files changed
+91 -92

No files matched your search

+8 -8
View File
@@ -2,7 +2,7 @@
<html lang="ru">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Беличья нора — новая заявка</title>
<title>Беличья нора: новая заявка</title>
<style>
:root { font-family: "Trebuchet MS", ui-sans-serif, sans-serif; color: #242522; background: #fff; --focus:#1e6a2b; }
* { box-sizing: border-box; } body { margin: 0; background: #fff; } main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 76px; }
@@ -23,24 +23,24 @@
</head>
<body><main>
<nav class="topnav"><a class="brand" href="/belki">Беличья нора</a><a href="/belki">Калькулятор отчётов</a></nav>
<section id="app"><h1>Новая заявка</h1><p class="intro">Заполните форму, и администратор получит заявку. Готовить форумную отпись не нужно.</p>
<section id="app"><h1>Новая заявка</h1><p class="intro">Отправьте заявку через эту форму, и её получит администратор. Писать на форуме не нужно.</p>
<div class="types" role="group" aria-label="Тип заявки">
<button class="type active" type="button" data-type="feather_donation">Пожертвовать перо отряду</button><button class="type" type="button" data-type="kitten">Хочу стать бельчонком</button><button class="type" type="button" data-type="flying_squirrel">Хочу стать белкой-летягой</button><button class="type" type="button" data-type="curator">Хочу стать куратором</button>
</div>
<form id="form" class="panel"><div class="grid">
<label>Имя кота<input name="name" required></label><label>ID кота<input name="character_id" type="number" min="1" required></label>
<label id="vkField" class="wide">Ссылка на страницу VK <span class="hint">(необязательно)</span><input name="vk_link" type="text" inputmode="url" placeholder="vk.com/id… или vk.ru/id…"></label>
<section id="kittenFields" class="wide hidden"><label>Скриншот активности<span class="upload"><strong>Выберите изображение</strong><span>PNG, JPEG или WebP до 15 МБ</span><input class="screenshots" type="file" accept="image/png,image/jpeg,image/webp" multiple></span></label><ul class="files"></ul></section>
<section id="curatorFields" class="wide hidden"><label>Скриншот ЛУ с дробью<span class="upload"><strong>Прикрепите скриншот ЛУ с дробью</strong><span>PNG, JPEG или WebP; нужен хотя бы один файл</span><input class="screenshots" type="file" accept="image/png,image/jpeg,image/webp" multiple></span></label><ul class="files"></ul></section>
<section id="flyingFields" class="wide hidden"><label>Уже сдавали практику?<select name="practiced_before"><option value="no">Нет, не сдавал(-а)</option><option value="yes">Да, сдавал(-а)</option></select></label><label id="practiceLink" class="hidden">Ссылка на комментарий с прошлой практики<input name="practice_review_link" type="url" placeholder="https://catwar.su/... или https://vk.com/... "></label></section>
<section id="featherFields" class="wide"><h2>Перья для казны</h2><p class="hint">Укажите цвет, количество и откуда получены перья.</p><div id="feathers"></div><button id="addFeather" class="secondary" type="button">Добавить перо</button></section>
<section id="kittenFields" class="wide hidden"><label>Скриншот активности<span class="upload"><strong>Прикрепите хотя бы один скриншот</strong><span>PNG, JPEG или WebP до 15 МБ на файл</span><input class="screenshots" type="file" accept="image/png,image/jpeg,image/webp" multiple></span></label><ul class="files"></ul></section>
<section id="curatorFields" class="wide hidden"><label>Скриншот ЛУ с дробью<span class="upload"><strong>Прикрепите хотя бы один скриншот</strong><span>PNG, JPEG или WebP до 15 МБ на файл</span><input class="screenshots" type="file" accept="image/png,image/jpeg,image/webp" multiple></span></label><ul class="files"></ul></section>
<section id="flyingFields" class="wide hidden"><label>Уже сдавали практику?<select name="practiced_before"><option value="no">Нет, не сдавал(-а)</option><option value="yes">Да, сдавал(-а)</option></select></label><label id="practiceLink" class="hidden">Ссылка на комментарий с прошлой практики (обязательно)<input name="practice_review_link" type="url" placeholder="https://catwar.su/... или https://vk.com/... "></label></section>
<section id="featherFields" class="wide"><h2>Перья для казны</h2><p class="hint">Укажите, сколько перьев, какого они цвета и откуда.</p><div id="feathers"></div><button id="addFeather" class="secondary" type="button">Добавить перо</button></section>
</div><p id="error" class="error" role="alert"></p><div class="actions"><button class="primary" type="submit">Отправить заявку</button></div></form><div id="success" class="success hidden" role="status"></div>
</section>
</main><script>
/* Form helpers manage repeatable feather rows, conditional sections, image
uploads, and final serialization into the applications API payload. */
const form=document.querySelector('#form'), error=document.querySelector('#error'); let active='feather_donation', submitting=false;
function addFeather(data={}){const row=document.createElement('div');row.className='feather';row.innerHTML='<label>Количество<input data-field="amount" type="number" min="1" required></label><label>Цвет<input data-field="color" placeholder="например, синие" required></label><label>Источник добычи<input data-field="source" placeholder="личные запасы, осмотр дупла…" required></label><button class="remove" type="button">Убрать</button>';Object.entries(data).forEach(([k,v])=>{const el=row.querySelector(`[data-field="${k}"]`);if(el)el.value=v});row.querySelector('.remove').onclick=()=>row.remove();document.querySelector('#feathers').append(row)} addFeather();document.querySelector('#addFeather').onclick=()=>addFeather();
function addFeather(data={}){const row=document.createElement('div');row.className='feather';row.innerHTML='<label>Количество<input data-field="amount" type="number" min="1" required></label><label>Цвет<input data-field="color" placeholder="например, синие" required></label><label>Откуда перья<input data-field="source" placeholder="личные запасы, осмотр дупла…" required></label><button class="remove" type="button">Убрать</button>';Object.entries(data).forEach(([k,v])=>{const el=row.querySelector(`[data-field="${k}"]`);if(el)el.value=v});row.querySelector('.remove').onclick=()=>row.remove();document.querySelector('#feathers').append(row)} addFeather();document.querySelector('#addFeather').onclick=()=>addFeather();
function setVisible(selector,visible){const section=document.querySelector(selector);section.classList.toggle('hidden',!visible);section.querySelectorAll('input,select,textarea,button').forEach(field=>field.disabled=!visible)}
function sync(){setVisible('#featherFields',active==='feather_donation');setVisible('#kittenFields',active==='kitten');setVisible('#curatorFields',active==='curator');setVisible('#flyingFields',active==='flying_squirrel');setVisible('#vkField',active==='flying_squirrel');const practiced=document.querySelector('[name="practiced_before"]');setVisible('#practiceLink',active==='flying_squirrel'&&practiced.value==='yes');document.querySelectorAll('.type').forEach(x=>{x.classList.toggle('active',x.dataset.type===active);x.setAttribute('aria-pressed',String(x.dataset.type===active))})} document.querySelectorAll('.type').forEach(b=>b.onclick=()=>{active=b.dataset.type;sync()});sync();
document.querySelector('[name="practiced_before"]').onchange=()=>sync();
@@ -70,7 +70,7 @@
const result = await response.json();
if (!response.ok) throw new Error(result.error || 'Не удалось отправить заявку');
const success = document.querySelector('#success');
success.textContent = `Заявка №${result.id} отправлена на рассмотрение.`;
success.textContent = `Заявка №${result.id} отправлена. Её рассмотрит администратор.`;
success.classList.remove('hidden');
form.reset();
document.querySelector('#feathers').replaceChildren();