From 072e28a838d160f04d4e39080f494b6c5edd8132 Mon Sep 17 00:00:00 2001 From: cheb0chik Date: Tue, 10 Nov 2026 15:32:42 +0300 Subject: [PATCH] LihonT 3 Luna pre-alpha: version line, the animal no longer needs the chat pictures switch Co-Authored-By: Claude Fable 5.2 --- scripts/stage_site.py | 2 + src/lihont/two/chat/Bubbles.java | 8 +- .../two/settings/LihonTSettingsActivity.java | 6 +- src/web/assets/site/oa-md3.css | 36 +++ src/web/assets/site/oa.css | 206 ++++++++++++++++++ src/web/index.html | 205 ++--------------- src/web/members_index.html | 1 + src/web/mirror_index.html | 16 +- src/web/pay_index.html | 45 +--- src/web/pet_index.html | 18 +- 10 files changed, 300 insertions(+), 243 deletions(-) create mode 100644 src/web/assets/site/oa-md3.css create mode 100644 src/web/assets/site/oa.css diff --git a/scripts/stage_site.py b/scripts/stage_site.py index 6e84c63..a0ec96f 100644 --- a/scripts/stage_site.py +++ b/scripts/stage_site.py @@ -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"), diff --git a/src/lihont/two/chat/Bubbles.java b/src/lihont/two/chat/Bubbles.java index a26866d..32c019a 100644 --- a/src/lihont/two/chat/Bubbles.java +++ b/src/lihont/two/chat/Bubbles.java @@ -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); diff --git a/src/lihont/two/settings/LihonTSettingsActivity.java b/src/lihont/two/settings/LihonTSettingsActivity.java index e99c631..8975a22 100644 --- a/src/lihont/two/settings/LihonTSettingsActivity.java +++ b/src/lihont/two/settings/LihonTSettingsActivity.java @@ -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" diff --git a/src/web/assets/site/oa-md3.css b/src/web/assets/site/oa-md3.css new file mode 100644 index 0000000..e42510e --- /dev/null +++ b/src/web/assets/site/oa-md3.css @@ -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; } diff --git a/src/web/assets/site/oa.css b/src/web/assets/site/oa.css new file mode 100644 index 0000000..c8eb759 --- /dev/null +++ b/src/web/assets/site/oa.css @@ -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; } +} diff --git a/src/web/index.html b/src/web/index.html index f012d79..c96efef 100644 --- a/src/web/index.html +++ b/src/web/index.html @@ -4,8 +4,8 @@ - - + + @@ -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) {} - + @@ -219,26 +61,22 @@
-
- Релиз · Luna · TikTok 47.1.3 -

Твой TikTok
в стиле Material 3

-

Режим призрака, свои пузыри в чате, до 9 фото в комментарии, плагины без кода и виджет с живым огоньком. Код открыт, root не нужен.

- -
- Android 6.0+arm64-v8aБез rootОткрытый код -
+ Релиз · Luna · TikTok 47.1.3 +

Твой TikTok в стиле Material 3

+

Режим призрака, свои пузыри в чате, до 9 фото в комментарии, плагины без кода и виджет с живым огоньком. Код открыт, root не нужен.

+ -
@@ -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) { diff --git a/src/web/members_index.html b/src/web/members_index.html index d2887a0..fdf8daf 100644 --- a/src/web/members_index.html +++ b/src/web/members_index.html @@ -13,6 +13,7 @@ try { var t = localStorage.getItem("lihont-theme"); if (t === "light" || t === "dark") document.documentElement.setAttribute("data-theme", t); } catch (e) {} + diff --git a/src/web/mirror_index.html b/src/web/mirror_index.html index 46d80e5..620ce1c 100644 --- a/src/web/mirror_index.html +++ b/src/web/mirror_index.html @@ -6,15 +6,15 @@ LihonT: зеркало + - + @@ -61,7 +30,7 @@
- + Поддержка проекта

Поддержи развитие LihonT

Если нравится мод и хочется помочь проекту расти, поддержи разработку через CloudTips на любую комфортную сумму. Все средства идут на оплату серверов и развитие новых версий.

@@ -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) { diff --git a/src/web/pet_index.html b/src/web/pet_index.html index 5711739..17eb3f3 100644 --- a/src/web/pet_index.html +++ b/src/web/pet_index.html @@ -8,19 +8,19 @@ Серийчик в подарок: LihonT