Карточка «Поддержка» в профиле: блок-строка, раскрытие и эффекты

- Под «Сменить профиль» блок-строка с суммами ♡ · ↗ · ✦ в цветах метрик,
  тап раскрывает стеклянную карточку с суммами и историей переводов.
- Раскрытие с подкруткой в видимую область, сияние: кометы «пополнения»,
  блик по рамке со вспышкой, орбита; reduced-motion — статичный вид.
- Стили вынесены в styles/features/profile-support.css, эффекты —
  в js/components/support-shine-effects.js.
- formatStarAmount() — число без символа звезды для вёрстки с SVG-иконкой.
- Ключ screens.support_phase2.summary (ru/en), подписи без emoji.
- DESIGN.md §11.3 и WALLET_SHINE_SUPPORT.md обновлены.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pixel
2026-11-29 18:14:59 +03:00
co-authored by Claude Opus 5.5
parent d3a84dd451
commit 55f2d11721
11 changed files with 939 additions and 41 deletions
+6 -2
View File
@@ -28,9 +28,13 @@ export function parseStarCents(input) {
if (cents < 10n || cents > 0xffff_ffff_ffff_ffffn) throw new Error('Минимальная поддержка — 0,10 ⭐');
return cents;
}
export function formatStars(value) {
/** Только число («0.10»): для вёрстки, где единица показана отдельной SVG-иконкой. */
export function formatStarAmount(value) {
const cents = BigInt(value);
return `${cents / 100n}.${String(cents % 100n).padStart(2, '0')} ⭐`;
return `${cents / 100n}.${String(cents % 100n).padStart(2, '0')}`;
}
export function formatStars(value) {
return `${formatStarAmount(value)} ⭐`;
}
export function splitStarCents(value) {
const cents = BigInt(value);