LihonT 3 Luna pre-alpha: version line, the animal no longer needs the chat pictures switch

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
cheb0chik
2026-11-10 15:32:42 +03:00
parent 5df4cddf7d
commit 072e28a838
10 changed files with 300 additions and 243 deletions

View File

@@ -29,6 +29,8 @@ PAYLOAD = [
("src/web/assets/pets/dog.png", "assets/pets/dog.png"),
("src/web/assets/pets/lion.png", "assets/pets/lion.png"),
("src/web/assets/site/md3.css", "assets/site/md3.css"),
("src/web/assets/site/oa.css", "assets/site/oa.css"),
("src/web/assets/site/oa-md3.css", "assets/site/oa-md3.css"),
("src/web/assets/site/md3.js", "assets/site/md3.js"),
("src/web/assets/site/icons.svg", "assets/site/icons.svg"),
("src/web/assets/site/plugin_howto.svg", "assets/site/plugin_howto.svg"),

View File

@@ -35,7 +35,6 @@ public final class Bubbles {
private Bubbles() {}
public static void watch(final Activity activity) {
if (!BubbleStore.enabled(activity)) return;
final View decor = activity.getWindow().getDecorView();
if (WATCHED.containsKey(decor)) return;
WATCHED.put(decor, Boolean.TRUE);
@@ -43,7 +42,7 @@ public final class Bubbles {
decor.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
@Override public boolean onPreDraw() {
try {
if (BubbleStore.enabled(activity)) apply(activity, decor);
apply(activity, decor);
} catch (Throwable ignored) {
// Decoration: never let it take a chat down.
}
@@ -75,11 +74,12 @@ public final class Bubbles {
if (!(found instanceof ViewGroup)) return;
ViewGroup list = (ViewGroup) found;
String partner = null;
Bitmap own = BubbleStore.forSlot(activity, BubbleStore.OWN, false);
// one picture for the chat, chosen by either of the two, is the same on both phones and replaces the personal ones
partner = cachedName(activity, decor, list);
PetFlame.apply(activity, decor, partnerUid, partner); // the animal or the picture of the pair instead of the streak flame
if (!BubbleStore.enabled(activity)) return; // the animal does not depend on the chat pictures being switched on
Bitmap own = BubbleStore.forSlot(activity, BubbleStore.OWN, false);
BubbleStore.seen(activity, partner);
PetFlame.apply(activity, decor, partnerUid, partner); // the picture of the pair instead of the streak flame in the header
Bitmap shared = partnerUid == null ? null : lihont.two.avatar.PairPictures.forPartner(activity, partnerUid);
String publishedId = partnerUid == null ? null : lihont.two.avatar.ShapeCatalog.bubbleOf(partnerUid);
Bitmap published = publishedId == null ? null : lihont.two.avatar.PairPictures.artBitmap(activity, publishedId);

View File

@@ -46,13 +46,15 @@ import java.util.Locale;
/** Material 3 settings screen for LihonT 2. */
public final class LihonTSettingsActivity extends Activity {
private static final String VERSION_LINE = "LihonT 2.0 · Serena";
private static final String VERSION_LINE = "LihonT 3 · Luna pre-alpha";
private static final String BASE_LINE = "База TikTok 47.1.3";
private static final String CHANNEL_URL = "https://t.me/lihont";
private static final String SOURCE_URL = "https://git.lihont.space/lihont/LihonT";
private static final String LICENSE_URL = SOURCE_URL + "/src/branch/main/LICENSE";
private static final String CHANGES =
"• LihonT Store: отдельное приложение с каталогом рамок и пузырей чата от людей. Добавляете вещь кнопкой «+», и она появляется в моде (рамка в выборе рамок, пузырь в настройках чата). Свои работы публикуются там же, сначала их проверяют."
"• Звери Серийчика: котёнок, щенок или львёнок вместо обычного Серийчика в чате и на экране серии. Растёт с серией (0, 7, 30, 100 дней), сереет, когда серия вот-вот сгорит, его можно перетаскивать. Зверя дарят ссылкой: Настройки мода → Серийчик."
+ "\n"
+ "• LihonT Store: отдельное приложение с каталогом рамок и пузырей чата от людей. Добавляете вещь кнопкой «+», и она появляется в моде (рамка в выборе рамок, пузырь в настройках чата). Свои работы публикуются там же, сначала их проверяют."
+ "\n"
+ "• Своя рамка из любой картинки (кнопка «Своя рамка» в выборе рамок): фото вырезается в кольцо само. Её видят все с этой версией после проверки."
+ "\n"

View File

@@ -0,0 +1,36 @@
/* Over md3.css on the LihonT pages built from its parts: the white, near-black look of oa.css. */
:root {
--md-sys-color-primary: #0d0d0f; --md-sys-color-on-primary: #ffffff; --md-sys-color-primary-container: #f0f0f3; --md-sys-color-on-primary-container: #0d0d0f;
--md-sys-color-secondary: #6b6b73; --md-sys-color-on-secondary: #ffffff; --md-sys-color-secondary-container: #f0f0f3; --md-sys-color-on-secondary-container: #0d0d0f;
--md-sys-color-tertiary-container: #ffe0ee; --md-sys-color-on-tertiary-container: #0d0d0f;
--md-sys-color-surface: #ffffff; --md-sys-color-on-surface: #0d0d0f; --md-sys-color-on-surface-variant: #6b6b73;
--md-sys-color-outline: #b9b9c0; --md-sys-color-outline-variant: #e6e6ea;
--md-sys-color-surface-container-lowest: #ffffff; --md-sys-color-surface-container-low: #f7f7f9; --md-sys-color-surface-container: #f4f4f6;
--md-sys-color-surface-container-high: #ececf0; --md-sys-color-surface-container-highest: #e4e4e9;
--md-sys-elevation-1: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.07);
--md-sys-elevation-2: 0 1px 2px rgba(20,20,40,.05), 0 14px 36px rgba(20,20,40,.09);
--font-sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:root[data-theme="dark"] {
--md-sys-color-primary: #f5f5f7; --md-sys-color-on-primary: #0d0d0f; --md-sys-color-primary-container: #26262b; --md-sys-color-on-primary-container: #f5f5f7;
--md-sys-color-secondary: #a0a0a8; --md-sys-color-on-secondary: #0d0d0f; --md-sys-color-secondary-container: #26262b; --md-sys-color-on-secondary-container: #f5f5f7;
--md-sys-color-tertiary-container: #4a2638; --md-sys-color-on-tertiary-container: #f5f5f7;
--md-sys-color-surface: #0d0d0f; --md-sys-color-on-surface: #f5f5f7; --md-sys-color-on-surface-variant: #a0a0a8;
--md-sys-color-outline: #55555c; --md-sys-color-outline-variant: #2c2c32;
--md-sys-color-surface-container-lowest: #0a0a0c; --md-sys-color-surface-container-low: #141417; --md-sys-color-surface-container: #17171a;
--md-sys-color-surface-container-high: #1c1c20; --md-sys-color-surface-container-highest: #26262b;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--md-sys-color-primary: #f5f5f7; --md-sys-color-on-primary: #0d0d0f; --md-sys-color-primary-container: #26262b; --md-sys-color-on-primary-container: #f5f5f7;
--md-sys-color-secondary: #a0a0a8; --md-sys-color-on-secondary: #0d0d0f; --md-sys-color-secondary-container: #26262b; --md-sys-color-on-secondary-container: #f5f5f7;
--md-sys-color-tertiary-container: #4a2638; --md-sys-color-on-tertiary-container: #f5f5f7;
--md-sys-color-surface: #0d0d0f; --md-sys-color-on-surface: #f5f5f7; --md-sys-color-on-surface-variant: #a0a0a8;
--md-sys-color-outline: #55555c; --md-sys-color-outline-variant: #2c2c32;
--md-sys-color-surface-container-lowest: #0a0a0c; --md-sys-color-surface-container-low: #141417; --md-sys-color-surface-container: #17171a;
--md-sys-color-surface-container-high: #1c1c20; --md-sys-color-surface-container-highest: #26262b;
}
}
h1, h2, h3 { font-weight: 600 !important; letter-spacing: -.03em; }
.t-primary { background: linear-gradient(92deg, #ff6396, #ffa028 26%, #6ccb52 50%, #4f9dff 74%, #b574ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 800; }
.card { border-radius: 28px; }

206
src/web/assets/site/oa.css Normal file
View File

@@ -0,0 +1,206 @@
/* LihonT site, the light look: a white ground, near-black type, pill buttons, soft cards without outlines, pastel tiles and one
candy-coloured word. Used by the home page, /pay/ and /pet/. The class names are the ones the pages already had. */
:root {
--bg: #ffffff; --ink: #0d0d0f; --card: #ffffff; --soft: #f4f4f6; --soft-2: #ececf0; --muted: #6b6b73; --line: rgba(13, 13, 15, .08);
--inv-bg: #0d0d0f; --inv-ink: #ffffff; --inv-muted: rgba(255, 255, 255, .72); --main-bg: #0d0d0f; --main-ink: #ffffff; --main-muted: rgba(255, 255, 255, .72);
--lift: 0 1px 2px rgba(20, 20, 40, .05), 0 14px 36px rgba(20, 20, 40, .09);
--lift-hi: 0 2px 4px rgba(20, 20, 40, .06), 0 22px 50px rgba(20, 20, 40, .14);
--coral: #ffe0e0; --yellow: #fff0c8; --mint: #dcf5e6; --violet: #7a4fd0; --sky: #deeaff; --pink: #ffe0ee; --peach: #ffe6d8;
--on-accent: #0d0d0f;
--candy: linear-gradient(92deg, #ff6396 0%, #ffa028 26%, #6ccb52 50%, #4f9dff 74%, #b574ff 100%);
--ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0d0d0f; --ink: #f5f5f7; --card: #17171a; --soft: #1c1c20; --soft-2: #26262b; --muted: #a0a0a8; --line: rgba(255, 255, 255, .1);
--inv-bg: #f5f5f7; --inv-ink: #0d0d0f; --inv-muted: rgba(13, 13, 15, .7); --main-bg: linear-gradient(135deg, #1d1d24, #23202e); --main-ink: #f5f5f7; --main-muted: rgba(245, 245, 247, .7);
--lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .45); --lift-hi: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .6);
--coral: #4a2a2e; --yellow: #45391c; --mint: #1f3f2e; --violet: #8f6be0; --sky: #23314f; --pink: #4a2638; --peach: #47301f;
--on-accent: #f5f5f7;
}
}
:root[data-theme="dark"] {
--bg: #0d0d0f; --ink: #f5f5f7; --card: #17171a; --soft: #1c1c20; --soft-2: #26262b; --muted: #a0a0a8; --line: rgba(255, 255, 255, .1);
--inv-bg: #f5f5f7; --inv-ink: #0d0d0f; --inv-muted: rgba(13, 13, 15, .7); --main-bg: linear-gradient(135deg, #1d1d24, #23202e); --main-ink: #f5f5f7; --main-muted: rgba(245, 245, 247, .7);
--lift: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .45); --lift-hi: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .6);
--coral: #4a2a2e; --yellow: #45391c; --mint: #1f3f2e; --violet: #8f6be0; --sky: #23314f; --pink: #4a2638; --peach: #47301f;
--on-accent: #f5f5f7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.page { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--inv-bg); color: var(--inv-ink); padding: 8px 14px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
/* the one coloured word */
h1 em, .candy {
font-style: normal; font-weight: 800; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent;
background-size: 200% 100%; animation: candy 9s ease-in-out infinite alternate; padding-right: .04em;
}
@keyframes candy { to { background-position: 100% 0; } }
/* cards, buttons, chips */
.sticker, .card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--lift); }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 0;
border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none;
cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.btn:hover { background: var(--soft-2); transform: translateY(-1px); }
.btn { white-space: nowrap; }
@media (max-width: 520px) { .top__end > a[data-confetti] { display: none; } .btn--lg { white-space: normal; text-align: center; } }
.btn:active { transform: scale(.97); }
.btn--yellow, .btn--mint { background: var(--inv-bg); color: var(--inv-ink); }
.btn--yellow:hover, .btn--mint:hover { background: var(--inv-bg); box-shadow: var(--lift); }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.06rem; }
.btn--flat { background: transparent; }
.btn--block { display: flex; width: 100%; }
.icon-btn { width: 44px; height: 44px; padding: 0; min-height: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .86rem; }
.chip--y { background: var(--yellow); } .chip--m { background: var(--mint); } .chip--p { background: var(--pink); } .chip--s { background: var(--sky); }
.chip--v { background: var(--violet); color: #fff; }
/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top__in:not(.page) { width: min(1120px, 100% - 32px); margin-inline: auto; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 700; margin-left: -10px; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--soft); }
.top__end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav + .top__end { margin-left: 8px; }
@media (min-width: 980px) { .nav { display: flex; } .menu-btn { display: none; } }
.drawer { position: fixed; inset: 64px 0 auto 0; z-index: 19; display: none; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--lift); }
.drawer.open { display: grid; gap: 2px; }
.drawer a { padding: 12px 16px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.drawer a:hover { background: var(--soft); }
/* hero: the words in the middle, a row of tiles under them */
.hero { padding: 72px 0 24px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(2.7rem, 8.4vw, 5.6rem); max-width: 14ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 56ch; }
.hero .cluster { justify-content: center; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero > * { animation: rise .8s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .06s; } .hero > :nth-child(3) { animation-delay: .12s; } .hero > :nth-child(4) { animation-delay: .18s; } .hero > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(18px); } }
.hero .eyebrow { justify-self: center; }
.tiles { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 22px); padding: 34px 0 30px; width: 100%; }
.tile { flex: 0 1 200px; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; box-shadow: var(--lift); animation: tile 6s ease-in-out infinite; position: relative; overflow: hidden; }
.tile:nth-child(1) { background: var(--sky); transform: rotate(-5deg); animation-delay: -1s; }
.tile:nth-child(2) { background: var(--pink); animation-delay: -2.5s; }
.tile:nth-child(3) { background: var(--peach); flex-basis: 250px; z-index: 1; box-shadow: var(--lift-hi); animation-delay: -4s; }
.tile:nth-child(4) { background: var(--yellow); animation-delay: -3s; }
.tile:nth-child(5) { background: var(--mint); transform: rotate(5deg); animation-delay: -5s; }
@keyframes tile { 50% { translate: 0 -10px; } }
.tile svg, .tile img { width: 62%; height: 62%; object-fit: contain; }
.tile .pet { width: 84%; height: 84%; }
.tile .say { padding: .5em .9em; border-radius: 1.2em; font-weight: 600; font-size: clamp(.6rem, 1.5vw, .95rem); color: #fff; background: linear-gradient(120deg, #7a4fd0, #b574ff); }
.tile .say + .say { margin-top: 8%; background: var(--card); color: var(--ink); justify-self: start; }
.tile .stack2 { display: grid; width: 76%; justify-items: end; }
.tile small { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: clamp(.55rem, 1.2vw, .78rem); font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .tile:nth-child(1), .tile:nth-child(5) { display: none; } }
/* a quiet line of words that runs */
.marquee { overflow: hidden; white-space: nowrap; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee div { display: inline-block; padding: 12px 0; font-weight: 600; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -.02em; color: var(--muted); opacity: .55; animation: run 40s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }
/* sections */
section.block { padding: 72px 0; }
.eyebrow { display: inline-flex; margin-bottom: 4px; }
.head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.head h2, .block > .page > h2 { font-size: clamp(2rem, 5.4vw, 3.5rem); }
.head p { font-size: 1.12rem; }
.head .chip, .eyebrow { justify-self: start; width: fit-content; }
.notes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.note { padding: 28px; display: grid; gap: 12px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s; }
.note:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.note__tag { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--on-accent); }
.note h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* code and two columns */
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; background: var(--soft); border-radius: 20px; overflow-x: auto; }
.code code { white-space: normal; word-break: break-all; font-size: .88rem; flex: 1 1 260px; min-width: 0; }
.code button { flex: none; background: var(--card); box-shadow: 0 1px 2px rgba(20, 20, 40, .08); }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.howto { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--lift); background: var(--card); border: 1px solid var(--line); }
/* downloads */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dl__card { padding: 30px; display: grid; gap: 16px; align-content: start; }
.dl__card h3 { font-size: 1.4rem; }
.dl__card--main { background: var(--main-bg); color: var(--main-ink); grid-column: 1 / -1; border-color: var(--line); padding: clamp(28px, 5vw, 48px); }
.dl__card--main .muted { color: var(--main-muted); }
.dl__card--main .btn { background: rgba(255, 255, 255, .14); color: var(--main-ink); }
.dl__card--main .btn:hover { background: rgba(255, 255, 255, .22); }
.dl__card--main .btn--yellow, .dl__card--main .btn--yellow:hover { background: #ffffff; color: #0d0d0f; }
.dl__card--main .chip { background: var(--candy); color: #fff; }
.sha { font-size: .8rem; word-break: break-all; opacity: .6; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; text-decoration: none; background: var(--soft); color: var(--ink); font-weight: 600; transition: background .15s, transform .2s var(--ease); }
.file:hover { background: var(--soft-2); transform: translateX(4px); }
.file small { display: block; font-weight: 400; color: var(--muted); }
/* community */
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 14px; padding: 18px; align-items: flex-start; border-radius: 24px; }
.avatar { width: 44px; height: 44px; flex: none; background: var(--pink); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; border-radius: 50%; }
.comment:nth-child(2) .avatar { background: var(--sky); border-radius: 34% 66% 55% 45% / 45% 45% 55% 55%; }
.comment b img { width: 18px; height: 18px; vertical-align: -3px; margin-left: 4px; }
/* questions */
.faq { display: grid; gap: 10px; max-width: 860px; }
details.sticker { box-shadow: none; background: var(--soft); border-color: transparent; border-radius: 22px; transition: background .2s; }
details.sticker[open] { background: var(--card); border-color: var(--line); box-shadow: var(--lift); }
summary { padding: 18px 22px; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); background: var(--soft); }
details > div { padding: 0 22px 22px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 40px 0 96px; margin-top: 48px; }
footer .row, footer .page { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { font-weight: 500; text-decoration: none; color: var(--muted); } footer nav a:hover { color: var(--ink); }
footer .note-line { margin-top: 20px; font-size: .86rem; display: grid; gap: 4px; flex-basis: 100%; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 18; box-shadow: var(--lift-hi); }
canvas#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
/* the small pages: one column in the middle */
body.solo { min-height: 100vh; display: flex; flex-direction: column; }
body.solo main { flex: 1; padding: 56px 0 40px; }
body.solo .page { width: min(720px, 100% - 32px); }
body.solo .hero { padding: 0; margin-bottom: 36px; gap: 18px; }
body.solo .hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); max-width: none; }
body.solo footer { padding: 28px 0; margin-top: 0; }
.card { padding: 30px; display: grid; gap: 18px; }
.card h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.stack { display: grid; gap: 12px; }
.heart { width: 132px; height: 132px; animation: beat 1.6s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(255, 99, 150, .35)); }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.1); } 55% { transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
.reveal { opacity: 1; transform: none; }
}

View File

@@ -4,8 +4,8 @@
<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="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0d0d0f" media="(prefers-color-scheme: dark)">
<meta name="description" content="LihonT 2 Luna: TikTok в стиле Material 3. Режим призрака, свои пузыри в чате, до 9 фото в комментарии, плагины, виджет огонька, форма аватарок. Открытый код.">
<meta property="og:title" content="LihonT 2 · Luna">
<meta property="og:description" content="Призрак, свои пузыри, плагины, огоньки-виджеты. TikTok в стиле Material 3, открытый код.">
@@ -17,165 +17,7 @@
/* A saved theme is applied before the first paint, so there is no flash. */
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; --violet: #9670ff; --sky: #5ab4ff; --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; --on-accent: #221c2e;
}
}
:root[data-theme="dark"] {
--bg: #1c1626; --ink: #f6efe4; --card: #2b2338; --muted: #b9afc9; --dots: rgba(246,239,228,.1);
--shadow: #0b0810; --on-accent: #221c2e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
margin: 0; 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; }
.page { width: min(1120px, 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; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 900; letter-spacing: -.02em; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
/* stickers: a thick outline and a hard shadow */
.sticker { background: var(--card); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--shadow); }
.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--mint { background: var(--mint); color: var(--on-accent); }
.btn--lg { min-height: 60px; padding: 14px 30px; font-size: 1.15rem; }
.btn--flat { box-shadow: none; border-width: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 800; font-size: .9rem; }
.chip--y { background: var(--yellow); color: var(--on-accent); } .chip--m { background: var(--mint); color: var(--on-accent); }
.chip--p { background: var(--pink); color: var(--on-accent); } .chip--v { background: var(--violet); color: #fff; } .chip--s { background: var(--sky); color: var(--on-accent); }
.muted { color: var(--muted); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* top bar */
.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; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.35rem; }
.brand img { width: 36px; height: 36px; animation: sway 5s ease-in-out infinite; }
.brand b { color: var(--coral); }
@keyframes sway { 50% { transform: rotate(10deg) scale(1.06); } }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.nav a:hover, .nav a.on { background: var(--yellow); color: var(--on-accent); }
.top__end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav + .top__end { margin-left: 0; }
.icon-btn { width: 46px; height: 46px; padding: 0; min-height: 0; }
@media (min-width: 980px) { .nav { display: flex; } .menu-btn { display: none; } }
.drawer { position: fixed; inset: 68px 0 auto 0; z-index: 19; display: none; padding: 16px; background: var(--bg); border-bottom: 3px solid var(--ink); }
.drawer.open { display: grid; gap: 6px; }
.drawer a { padding: 12px 16px; border-radius: 16px; font-weight: 800; text-decoration: none; border: 2.5px solid transparent; }
.drawer a:hover { border-color: var(--ink); background: var(--yellow); color: var(--on-accent); }
/* hero */
.hero { padding: 48px 0 28px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; padding-top: 72px; } }
.hero h1 { font-size: clamp(2.6rem, 8.5vw, 5.4rem); }
.hero 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); }
.hero p.lead { font-size: 1.2rem; margin: 22px 0 28px; max-width: 54ch; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stage { position: relative; min-height: 460px; }
.stage .bubble { position: absolute; padding: 14px 20px; border: 3px solid var(--ink); border-radius: 26px; font-weight: 800; box-shadow: 5px 5px 0 var(--shadow); max-width: 78%; animation: float 5s ease-in-out infinite; }
.b1 { top: 10px; left: 0; background: linear-gradient(120deg, #3d3bbd, #1c1370); color: #fff; }
.b2 { top: 108px; right: 0; background: linear-gradient(120deg, #aa50dc, #5a1e8c); color: #fff; animation-delay: -1.5s !important; }
.b3 { top: 210px; left: 12px; background: linear-gradient(120deg, #ffe2b0, #ffbec8); color: #221c2e; animation-delay: -3s !important; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
.stage .flame { position: absolute; width: 150px; animation: float 4s ease-in-out infinite; }
.f1 { left: 4%; bottom: 20px; width: 190px !important; } .f2 { right: 6%; bottom: 110px; width: 110px !important; animation-delay: -2s !important; } .f3 { right: 30%; bottom: 0; width: 78px !important; animation-delay: -1s !important; }
.ghost { position: absolute; right: 8%; top: 330px; width: 104px; animation: ghost 6s ease-in-out infinite; }
@keyframes ghost { 0%,100% { opacity: .95; transform: translateY(0); } 50% { opacity: .3; transform: translateY(-18px); } }
/* sections */
section.block { padding: 64px 0; }
.eyebrow { display: inline-block; margin-bottom: 14px; }
.block > .page > h2, .head h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.head p { font-size: 1.12rem; }
.head .chip, .eyebrow { justify-self: start; width: fit-content; }
.marquee { border-block: 3px solid var(--ink); background: var(--yellow); color: var(--on-accent); overflow: hidden; white-space: nowrap; }
.marquee div { display: inline-block; padding: 12px 0; font-weight: 900; font-size: 1.2rem; animation: run 28s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }
/* notes of the release: cards that jump in */
.notes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.note { padding: 26px; display: grid; gap: 12px; align-content: start; transition: transform .15s; }
.note:hover { transform: rotate(-1deg) translateY(-4px); }
.note__tag { width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 18px; display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; color: var(--on-accent); }
.note h3 { font-size: 1.45rem; }
.reveal { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .5s, transform .5s cubic-bezier(.2,1.4,.4,1); }
.reveal.in { opacity: 1; transform: none; }
/* code */
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--bg); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--shadow); overflow-x: auto; }
.code code { white-space: normal; word-break: break-all; font-size: .9rem; flex: 1 1 260px; min-width: 0; }
.code button { flex: none; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.howto { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--shadow); background: var(--card); }
/* downloads */
.dl { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dl__card { padding: 28px; display: grid; gap: 16px; align-content: start; }
.dl__card--main { background: var(--violet); color: #fff; grid-column: 1 / -1; }
.dl__card--main .muted { color: rgba(255,255,255,.85); }
.dl__card--main .btn { color: var(--ink); }
.sha { font-size: .82rem; word-break: break-all; opacity: .9; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 2.5px solid var(--ink); border-radius: 18px; text-decoration: none; background: var(--bg); color: var(--ink); font-weight: 800; transition: transform .12s; }
.file:hover { transform: translateX(6px); background: var(--yellow); color: var(--on-accent); }
.file small { display: block; font-weight: 600; opacity: .8; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.ticks li { padding-left: 32px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--ink); }
/* community */
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.avatar { width: 46px; height: 46px; flex: none; border: 3px solid var(--ink); background: var(--pink); color: var(--on-accent); display: grid; place-items: center; font-weight: 900; border-radius: 50%; }
.comment:nth-child(2) .avatar { background: var(--sky); border-radius: 34% 66% 55% 45% / 45% 45% 55% 55%; }
.comment b img { width: 18px; height: 18px; vertical-align: -3px; margin-left: 4px; }
/* faq */
.faq { display: grid; gap: 14px; max-width: 860px; }
details { padding: 0; }
summary { padding: 18px 22px; font-weight: 800; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--on-accent); font-weight: 900; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 22px 20px; color: var(--muted); }
footer { border-top: 3px solid var(--ink); padding: 36px 0 90px; margin-top: 40px; background: var(--card); }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer nav a { font-weight: 800; text-decoration: none; } footer nav a:hover { text-decoration: underline wavy; }
footer .note-line { margin-top: 18px; font-size: .88rem; display: grid; gap: 4px; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 18; }
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; }
.reveal { opacity: 1; transform: none; }
}
</style>
<link rel="stylesheet" href="/assets/site/oa.css">
</head>
<body>
<a class="skip" href="#main">К содержимому</a>
@@ -219,26 +61,22 @@
<main id="main">
<section class="page hero" aria-labelledby="hero-title">
<div>
<span class="chip chip--m eyebrow">Релиз · Luna · TikTok 47.1.3</span>
<h1 id="hero-title">Твой TikTok<br>в стиле <em>Material 3</em></h1>
<p class="lead muted">Режим призрака, свои пузыри в чате, до 9 фото в комментарии, плагины без кода и виджет с живым огоньком. Код открыт, root не нужен.</p>
<div class="cluster">
<a class="btn btn--yellow btn--lg" data-confetti href="https://git.lihont.space/lihont/LihonT/releases/tag/v2.0-luna" rel="noopener">Скачать LihonT 2 · Luna</a>
<a class="btn btn--lg" href="#new">Что нового</a>
</div>
<div class="chips">
<span class="chip">Android 6.0+</span><span class="chip">arm64-v8a</span><span class="chip">Без root</span><span class="chip chip--p">Открытый код</span>
</div>
<span class="chip eyebrow">Релиз · Luna · TikTok 47.1.3</span>
<h1 id="hero-title">Твой TikTok в стиле <em>Material&nbsp;3</em></h1>
<p class="lead muted">Режим призрака, свои пузыри в чате, до 9 фото в комментарии, плагины без кода и виджет с живым огоньком. Код открыт, root не нужен.</p>
<div class="cluster">
<a class="btn btn--yellow btn--lg" data-confetti href="https://git.lihont.space/lihont/LihonT/releases/tag/v2.0-luna" rel="noopener">Скачать LihonT 2 · Luna</a>
<a class="btn btn--lg" href="#new">Что нового</a>
</div>
<div class="stage" aria-hidden="true">
<div class="bubble b1">Привет! Это моя картинка</div>
<div class="bubble b2">Видно всё</div>
<div class="bubble b3">На светлой чёрный</div>
<svg class="ghost" viewBox="0 0 100 100"><path d="M18 52C18 26 34 10 50 10s32 16 32 42v36l-9-8-8 8-7-8-7 8-8-8-9 8Z" fill="#fff" stroke="#221c2e" stroke-width="5" stroke-linejoin="round"/><circle cx="39" cy="44" r="5" fill="#221c2e"/><circle cx="61" cy="44" r="5" fill="#221c2e"/><circle cx="50" cy="55" r="3.5" fill="#221c2e"/></svg>
<div class="flame f1"><svg viewBox="0 0 360 360"><use href="#flower"/><g transform="translate(126 36) scale(4.5)"><use href="#flame-on" width="24" height="24"/></g><text x="180" y="305" text-anchor="middle" font-size="120" font-weight="900" fill="#4e1320" font-family="sans-serif">7</text></svg></div>
<div class="flame f2"><svg viewBox="0 0 360 360"><use href="#flower"/><g transform="translate(126 36) scale(4.5)"><use href="#flame-off" width="24" height="24"/></g><text x="180" y="305" text-anchor="middle" font-size="120" font-weight="900" fill="#4e1320" font-family="sans-serif">7</text></svg></div>
<div class="flame f3"><svg viewBox="0 0 360 360"><use href="#flower"/><g transform="translate(126 36) scale(4.5)"><use href="#flame-on" width="24" height="24"/></g><text x="180" y="305" text-anchor="middle" font-size="120" font-weight="900" fill="#4e1320" font-family="sans-serif">3</text></svg></div>
<div class="tiles" aria-hidden="true">
<div class="tile"><svg viewBox="0 0 100 100"><path d="M18 52C18 26 34 10 50 10s32 16 32 42v36l-9-8-8 8-7-8-7 8-8-8-9 8Z" fill="#fff" stroke="#0d0d0f" stroke-width="4" stroke-linejoin="round"/><circle cx="39" cy="44" r="5" fill="#0d0d0f"/><circle cx="61" cy="44" r="5" fill="#0d0d0f"/><circle cx="50" cy="56" r="3.5" fill="#0d0d0f"/></svg></div>
<div class="tile"><div class="stack2"><span class="say">Моя картинка</span><span class="say">Видно всё</span></div></div>
<div class="tile"><img class="pet" src="/assets/pets/cat.png" alt="" width="512" height="512"><small>Скоро: звери Серийчика</small></div>
<div class="tile"><svg viewBox="0 0 360 360"><use href="#flower"/><g transform="translate(126 36) scale(4.5)"><use href="#flame-on" width="24" height="24"/></g><text x="180" y="305" text-anchor="middle" font-size="120" font-weight="900" fill="#4e1320" font-family="sans-serif">7</text></svg></div>
<div class="tile"><svg viewBox="0 0 100 100"><g fill="#fff" stroke="#0d0d0f" stroke-width="3"><rect x="14" y="22" width="52" height="52" rx="10" transform="rotate(-8 40 48)"/><rect x="34" y="26" width="52" height="52" rx="10" transform="rotate(6 60 52)"/></g><text x="60" y="64" text-anchor="middle" font-size="34" font-weight="800" fill="#0d0d0f" font-family="sans-serif">9</text></svg></div>
</div>
<div class="chips">
<span class="chip">Android 6.0+</span><span class="chip">arm64-v8a</span><span class="chip">Без root</span><span class="chip chip--p">Открытый код</span>
</div>
</section>
@@ -363,11 +201,14 @@
menu.addEventListener("click", function () { var o = drawer.classList.toggle("open"); menu.setAttribute("aria-expanded", o); });
drawer.addEventListener("click", function (e) { if (e.target.tagName === "A") { drawer.classList.remove("open"); menu.setAttribute("aria-expanded", "false"); } });
document.getElementById("theme").addEventListener("click", function () {
var dark = getComputedStyle(root).getPropertyValue("--bg").trim() === "#1c1626";
var dark = getComputedStyle(root).getPropertyValue("--bg").trim() === "#0d0d0f";
var next = dark ? "light" : "dark";
root.setAttribute("data-theme", next);
try { localStorage.setItem("lihont-theme", next); } catch (e) {}
});
var bar = document.querySelector(".top");
var onScroll = function () { bar.classList.toggle("scrolled", scrollY > 8); };
addEventListener("scroll", onScroll, { passive: true }); onScroll();
var copy = document.getElementById("copy");
copy.addEventListener("click", function () {
var text = document.getElementById("pipcmd").textContent;
@@ -391,7 +232,7 @@
/* the download button throws confetti */
var canvas = document.getElementById("confetti"), ctx = canvas.getContext("2d"), bits = [], running = false;
var colors = ["#ff6b6b", "#ffcd3c", "#5ed6aa", "#9670ff", "#5ab4ff", "#ff96c8"];
var colors = ["#ff6396", "#ffa028", "#6ccb52", "#4f9dff", "#b574ff", "#ffd23c"];
function size() { canvas.width = innerWidth; canvas.height = innerHeight; }
addEventListener("resize", size); size();
function burst(x, y) {

View File

@@ -13,6 +13,7 @@
try { var t = localStorage.getItem("lihont-theme"); if (t === "light" || t === "dark") document.documentElement.setAttribute("data-theme", t); } catch (e) {}
</script>
<link rel="stylesheet" href="/assets/site/md3.css">
<link rel="stylesheet" href="/assets/site/oa-md3.css">
<script src="/assets/site/md3.js" defer></script>
</head>
<body>

View File

@@ -6,15 +6,15 @@
<title>LihonT: зеркало</title>
<meta name="description" content="Запасная копия сайта LihonT. Работает, пока основной сервер недоступен.">
<style>
:root{--bg:#fff3d6;--card:#ffffff;--ink:#1c1820;--muted:#6b5f6e;--accent:#ff6f9c;--line:#1c1820}
@media (prefers-color-scheme:dark){:root{--bg:#1d1822;--card:#2a2330;--ink:#f6eef7;--muted:#b9a9bd;--accent:#ff8fb3;--line:#f6eef7}}
:root{--bg:#fff;--card:#fff;--ink:#0d0d0f;--muted:#6b6b73;--soft:#f4f4f6;--line:rgba(13,13,15,.08)}
@media (prefers-color-scheme:dark){:root{--bg:#0d0d0f;--card:#17171a;--ink:#f5f5f7;--muted:#a0a0a8;--soft:#1c1c20;--line:rgba(255,255,255,.1)}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
main{max-width:640px;margin:0 auto;padding:32px 16px 56px}
h1{font-size:28px;margin:0 0 4px}
.sub{color:var(--muted);margin:0 0 24px}
.card{background:var(--card);border:3px solid var(--line);border-radius:20px;padding:20px;margin:0 0 16px;box-shadow:5px 5px 0 var(--line)}
.btn{display:inline-block;background:var(--accent);color:#1c1820;font-weight:700;text-decoration:none;border:3px solid var(--line);border-radius:14px;padding:12px 18px;box-shadow:3px 3px 0 var(--line)}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 "Inter","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;-webkit-font-smoothing:antialiased}
main{max-width:640px;margin:0 auto;padding:48px 16px 56px}
h1{font-size:34px;font-weight:600;letter-spacing:-.03em;margin:0 0 6px}
.sub{color:var(--muted);margin:0 0 28px}
.card{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:22px;margin:0 0 14px;box-shadow:0 1px 2px rgba(20,20,40,.05),0 14px 36px rgba(20,20,40,.09)}
.btn{display:inline-block;background:var(--ink);color:var(--bg);font-weight:600;text-decoration:none;border-radius:999px;padding:12px 22px}
code{word-break:break-all;font-size:12px}
a{color:inherit}
small{color:var(--muted)}

View File

@@ -4,48 +4,17 @@
<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="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0d0d0f" 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>
<link rel="stylesheet" href="/assets/site/oa.css">
</head>
<body>
<body class="solo">
<a class="skip" href="#main">К содержимому</a>
<canvas id="confetti" aria-hidden="true"></canvas>
@@ -61,7 +30,7 @@
<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>
<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="#ff6396"/><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>
@@ -88,14 +57,14 @@
(function () {
var root = document.documentElement;
document.getElementById("theme").addEventListener("click", function () {
var dark = getComputedStyle(root).getPropertyValue("--bg").trim() === "#1c1626";
var dark = getComputedStyle(root).getPropertyValue("--bg").trim() === "#0d0d0f";
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"];
var colors = ["#ff6396", "#ffa028", "#6ccb52", "#4f9dff", "#b574ff", "#ffd23c"];
function size() { canvas.width = innerWidth; canvas.height = innerHeight; }
addEventListener("resize", size); size();
function burst(x, y) {

View File

@@ -8,19 +8,19 @@
<title>Серийчик в подарок: LihonT</title>
<link rel="icon" type="image/svg+xml" href="/logo_single_note.svg">
<style>
:root { --bg: #fff4e0; --ink: #221c2e; --card: #fff; --muted: #5b5368; --yellow: #ffcd3c; --shadow: #221c2e; }
@media (prefers-color-scheme: dark) { :root { --bg: #1c1626; --ink: #f6efe4; --card: #2b2338; --muted: #b9afc9; --shadow: #0b0810; } }
:root { --bg: #fff; --ink: #0d0d0f; --soft: #f4f4f6; --muted: #6b6b73; --tile: #ffe6d8; --inv-bg: #0d0d0f; --inv-ink: #fff; }
@media (prefers-color-scheme: dark) { :root { --bg: #0d0d0f; --ink: #f5f5f7; --soft: #1c1c20; --muted: #a0a0a8; --tile: #47301f; --inv-bg: #f5f5f7; --inv-ink: #0d0d0f; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--ink); font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 17px; line-height: 1.5; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--ink); font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
main { width: min(440px, 100%); text-align: center; display: grid; gap: 16px; justify-items: center; }
h1 { margin: 0; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.1; font-weight: 900; }
h1 { margin: 0; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; }
p { margin: 0; } .muted { color: var(--muted); }
img { width: 220px; height: 220px; object-fit: contain; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(5px 5px 0 var(--shadow)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
img { width: 240px; height: 240px; padding: 14px; object-fit: contain; background: var(--tile); border-radius: 22%; box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 22px 50px rgba(20,20,40,.14); animation: bob 5s ease-in-out infinite; margin-bottom: 10px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { img { animation: none; } }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; 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; box-shadow: 5px 5px 0 var(--shadow); }
.btn--yellow { background: var(--yellow); color: #221c2e; }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--shadow); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 10px 22px; border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; transition: transform .15s; }
.btn--yellow { background: var(--inv-bg); color: var(--inv-ink); }
.btn:active { transform: scale(.97); }
[hidden] { display: none !important; }
</style>
</head>