Files
MrixsCraft-server/internal/templates/html/index.html
Vladimir Zagainov 7ad02cb1b2
Some checks failed
CI / lint (push) Failing after 21s
CI / build (push) Has been skipped
CI / test (push) Has been skipped
CI / docker (push) Has been skipped
feat: implement email validation, CI/CD pipeline, migration history, and web templates
Email validation:
- Replace @/. check with net/mail.ParseAddress on register
- Add size limit check (max 254 chars, RFC 5321)

CI/CD Pipeline:
- Add .gitea/workflows/ci.yml (lint → test → build → docker push)
- Registry: gitea.mrixs.me/Mrixs/MrixsCraft-server
- Push only on main branch

Database:
- Add migrations/002_migration_history.sql (tracking applied migrations)
- Add migrations/README.md (manual apply instructions)

Web Templates:
- Add base.html with Minecraft-themed layout (dark + green accent)
- Add index.html, login.html, register.html with POST forms
- Rewrite templates.go for data-driven rendering with pageData struct
- Fallback placeholder preserved when templates dir missing
2026-05-30 00:39:51 +03:00

18 lines
728 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{define "content"}}
<div class="card">
<h1>Добро пожаловать в MrixsCraft</h1>
<p>Приватный Minecraft-сервер с модпаками. Зарегистрируйся, скачай лаунчер и играй.</p>
<p>
<a href="/register" class="btn">Начать играть</a>
</p>
</div>
<div class="card">
<h2>Как начать</h2>
<ol style="margin-left: 1.25rem; color: var(--text-muted); line-height: 1.8;">
<li>Зарегистрируйся на сайте</li>
<li>Скачай лаунчер для своей ОС</li>
<li>Авторизуйся, выбирай модпак и нажимай PLAY</li>
</ol>
</div>
{{end}}