Files
LihonT/src/web/pay_index.html
cheb0chik 8b7fa5ff57 LihonT 2 Serena alpha
Themes as data: the settings and the rest of TikTok take a look (Stickers, Windows 95, or a theme a plugin brings with the
right ui.theme); the DEBUG recovery mode (Clear cache in Android resets the look and puts the plugins in safe mode); new
plugin functions (name.style, confetti and buzz on a tap); a few memory trims in the chat bubbles; the person list for bubbles
no longer shows screen labels.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 12:32:37 +03:00

124 lines
9.8 KiB
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.
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fff4e0" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#1c1626" media="(prefers-color-scheme: dark)">
<meta name="description" content="Поддержка разработки LihonT через CloudTips.">
<title>LihonT — поддержать разработку</title>
<link rel="icon" type="image/svg+xml" href="/logo_single_note.svg">
<script>
try { var t = localStorage.getItem("lihont-theme"); if (t === "light" || t === "dark") document.documentElement.setAttribute("data-theme", t); } catch (e) {}
</script>
<style>
:root { --bg: #fff4e0; --ink: #221c2e; --card: #ffffff; --muted: #5b5368; --dots: rgba(34,28,46,.13); --coral: #ff6b6b; --yellow: #ffcd3c; --mint: #5ed6aa; --pink: #ff96c8; --shadow: #221c2e; --on-accent: #221c2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #1c1626; --ink: #f6efe4; --card: #2b2338; --muted: #b9afc9; --dots: rgba(246,239,228,.1); --shadow: #0b0810; } }
:root[data-theme="dark"] { --bg: #1c1626; --ink: #f6efe4; --card: #2b2338; --muted: #b9afc9; --dots: rgba(246,239,228,.1); --shadow: #0b0810; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 17px; line-height: 1.55; background-image: radial-gradient(var(--dots) 2.5px, transparent 2.6px); background-size: 40px 40px; animation: drift 40s linear infinite; overflow-x: hidden; }
@keyframes drift { to { background-position: 400px 240px; } }
a { color: inherit; } p { margin: 0; } h1, h2 { margin: 0; line-height: 1.08; font-weight: 900; letter-spacing: -.02em; }
.page { width: min(720px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--on-accent); padding: 8px 14px; border-radius: 12px; z-index: 99; } .skip:focus { left: 8px; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; width: min(1120px, 100% - 32px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.35rem; } .brand b { color: var(--coral); }
.brand img { width: 36px; height: 36px; animation: sway 5s ease-in-out infinite; } @keyframes sway { 50% { transform: rotate(10deg) scale(1.06); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 5px 5px 0 var(--shadow); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); } .btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--shadow); }
.btn--yellow { background: var(--yellow); color: var(--on-accent); } .btn--lg { min-height: 60px; font-size: 1.15rem; } .btn--block { display: flex; width: 100%; }
.btn--flat { box-shadow: none; border-width: 2px; } .icon-btn { width: 46px; height: 46px; padding: 0; min-height: 0; }
.top__end { display: flex; gap: 10px; align-items: center; }
main { flex: 1; padding: 48px 0 40px; }
.hero { text-align: center; display: grid; gap: 18px; justify-items: center; margin-bottom: 36px; }
.heart { width: 150px; height: 150px; animation: beat 1.4s ease-in-out infinite; filter: drop-shadow(6px 6px 0 var(--shadow)); }
@keyframes beat { 0%, 100% { transform: scale(1) rotate(-3deg); } 30% { transform: scale(1.12) rotate(3deg); } 55% { transform: scale(.97); } }
.chip { display: inline-flex; padding: 4px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--pink); color: var(--on-accent); font-weight: 800; font-size: .9rem; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); } h1 em { font-style: normal; background: var(--yellow); color: var(--on-accent); padding: 0 .18em; border-radius: .25em; display: inline-block; transform: rotate(-2deg); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); }
.muted { color: var(--muted); }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--shadow); padding: 28px; display: grid; gap: 18px; }
.card h2 { font-size: 1.6rem; } .stack { display: grid; gap: 14px; }
footer { border-top: 3px solid var(--ink); padding: 28px 0; background: var(--card); } footer .page { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
canvas#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
</style>
</head>
<body>
<a class="skip" href="#main">К содержимому</a>
<canvas id="confetti" aria-hidden="true"></canvas>
<header class="top">
<div class="top__in">
<a class="brand" href="/" aria-label="LihonT, главная"><img src="/logo_single_note.svg" alt="">Lihon<b>T</b></a>
<div class="top__end">
<button class="btn icon-btn btn--flat" type="button" id="theme" aria-label="Сменить тему" title="Тема">◐</button>
<a class="btn btn--yellow" href="/">На главную</a>
</div>
</div>
</header>
<main id="main" class="page">
<div class="hero">
<svg class="heart" viewBox="0 0 100 100" aria-hidden="true"><path d="M50 90C16 64 4 44 12 26 19 11 40 9 50 28 60 9 81 11 88 26c8 18-4 38-38 64Z" fill="#ff6b6b" stroke="#221c2e" stroke-width="5" stroke-linejoin="round"/><path d="M24 30c3-7 11-9 17-5" stroke="#fff" stroke-width="5" stroke-linecap="round" fill="none" opacity=".8"/></svg>
<span class="chip">Поддержка проекта</span>
<h1>Поддержи развитие <em>LihonT</em></h1>
<p class="muted">Если нравится мод и хочется помочь проекту расти, поддержи разработку через CloudTips на любую комфортную сумму. Все средства идут на оплату серверов и развитие новых версий.</p>
</div>
<section class="card" aria-labelledby="donate-title">
<h2 id="donate-title">Прямой донат через CloudTips</h2>
<p class="muted">Оплата принимается через сервис CloudTips с банковских карт и СБП. Спасибо каждому, кто помогает проекту оставаться бесплатным и развиваться.</p>
<div class="stack">
<a class="btn btn--yellow btn--lg btn--block" id="donate" href="https://pay.cloudtips.ru/p/37d08eb5" target="_blank" rel="noopener">Перейти к оплате в CloudTips</a>
<a class="btn btn--block" href="https://t.me/cheb0chik" target="_blank" rel="noopener">Связаться с автором @cheb0chik</a>
</div>
</section>
</main>
<footer>
<div class="page">
<a class="btn" href="/">На главную LihonT</a>
<span class="muted">© 2026 LihonT · поддержка проекта</span>
</div>
</footer>
<script>
(function () {
var root = document.documentElement;
document.getElementById("theme").addEventListener("click", function () {
var dark = getComputedStyle(root).getPropertyValue("--bg").trim() === "#1c1626";
var next = dark ? "light" : "dark";
root.setAttribute("data-theme", next);
try { localStorage.setItem("lihont-theme", next); } catch (e) {}
});
/* hearts and confetti fly up when the donate button is pressed */
var canvas = document.getElementById("confetti"), ctx = canvas.getContext("2d"), bits = [], running = false;
var colors = ["#ff6b6b", "#ffcd3c", "#5ed6aa", "#9670ff", "#5ab4ff", "#ff96c8"];
function size() { canvas.width = innerWidth; canvas.height = innerHeight; }
addEventListener("resize", size); size();
function burst(x, y) {
if (matchMedia("(prefers-reduced-motion: reduce)").matches) return;
for (var i = 0; i < 40; i++) {
var a = -Math.PI * (0.05 + Math.random() * 0.9), v = 6 + Math.random() * 9;
bits.push({ x: x, y: y, vx: Math.cos(a) * v, vy: Math.sin(a) * v, r: 4 + Math.random() * 6, c: colors[i % 6], s: Math.random() * 6, life: 1 });
}
if (!running) { running = true; requestAnimationFrame(step); }
}
function step() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
bits = bits.filter(function (b) { return b.life > 0; });
bits.forEach(function (b) {
b.vy += .35; b.x += b.vx; b.y += b.vy; b.life -= .012; b.s += .2;
ctx.globalAlpha = Math.max(0, b.life); ctx.fillStyle = b.c;
ctx.save(); ctx.translate(b.x, b.y); ctx.rotate(b.s); ctx.fillRect(-b.r, -b.r / 2, b.r * 2, b.r); ctx.restore();
});
if (bits.length) requestAnimationFrame(step); else { running = false; ctx.clearRect(0, 0, canvas.width, canvas.height); }
}
document.getElementById("donate").addEventListener("click", function (e) { burst(e.clientX || innerWidth / 2, e.clientY || innerHeight / 2); });
})();
</script>
</body>
</html>