From 96e13a85b50c3336d367d6e47e9734ba569470e3 Mon Sep 17 00:00:00 2001 From: jiangchen <1703935164@qq.com> Date: Tue, 1 Sep 2026 20:11:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20single-mascot=20main=20page=20=E2=80=94?= =?UTF-8?q?=20no=20buttons,=20tap=20bubble=20+=20bounce=20+=20peak/off-pea?= =?UTF-8?q?k=20pricing,=20balance/usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.ux | 328 ++++++++++----------------------------- 1 file changed, 82 insertions(+), 246 deletions(-) diff --git a/src/pages/index/index.ux b/src/pages/index/index.ux index a700c47..93e3d2c 100644 --- a/src/pages/index/index.ux +++ b/src/pages/index/index.ux @@ -1,138 +1,74 @@ @@ -142,154 +78,54 @@ export default { width: 100%; height: 100%; flex-direction: column; + justify-content: center; + align-items: center; background-color: #0b1220; } -.swiper { - flex: 1; - width: 100%; - indicator-size: 0px; -} - -.page-item { - width: 100%; - height: 100%; - padding: 12px; - box-sizing: border-box; -} - -.left-page, -.right-page { - flex-direction: column; - align-items: flex-start; -} - -.center-page { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.page-title { - color: #e6f0ff; - font-size: 24px; - font-weight: bold; - margin-bottom: 12px; -} - -.page-hint { - color: #6b7a99; - font-size: 16px; - margin-top: 20px; -} - -.session-list { - width: 100%; - flex-direction: column; -} - -.session-row { - width: 100%; - height: 44px; - flex-direction: row; - justify-content: space-between; - align-items: center; - margin-bottom: 8px; - padding: 0 10px; - border-radius: 10px; - background-color: #152238; -} - -.session-title { - color: #dbe8ff; - font-size: 17px; -} - -.session-dot { - color: #33b4ff; - font-size: 16px; -} - .mascot { - width: 180px; - height: 180px; + width: 220px; + height: 220px; } -.status-text { - color: #e6f0ff; +.mascot-bounce { + transform: scale(0.92); +} + +.peak { font-size: 18px; - margin-top: 14px; + font-weight: bold; + margin-top: 10px; } -.session-hint { - color: #7d8fb0; +.peak-green { + color: #3ddc84; +} + +.peak-red { + color: #ff5b5b; +} + +.stats { + color: #9fb0d0; font-size: 14px; - margin-top: 4px; + margin-top: 6px; } -.center-actions { - flex-direction: row; - margin-top: 18px; - gap: 12px; +.bubble { + position: absolute; + top: 90px; + left: 50%; + margin-left: -110px; + width: 220px; + padding: 10px 12px; + border-radius: 14px; + background-color: #ffffff; } -.btn { - width: 100px; - height: 40px; - border-radius: 20px; - background-color: #33b4ff; - color: #08131f; - font-size: 16px; +.bubble-text { + color: #0b1220; + font-size: 14px; text-align: center; } - -.btn-ghost { - background-color: #1c2c47; - color: #dbe8ff; -} - -.setting-label { - color: #8fa4c9; - font-size: 14px; - margin-top: 8px; -} - -.setting-input { - width: 100%; - height: 38px; - border-radius: 8px; - background-color: #152238; - color: #e6f0ff; - font-size: 15px; - padding: 0 8px; - margin-bottom: 4px; -} - -.conn-text { - color: #6b7a99; - font-size: 14px; - margin-top: 8px; -} - -.dots { - flex-direction: row; - justify-content: center; - align-items: center; - height: 14px; - margin-top: 4px; - gap: 8px; -} - -.dot { - width: 7px; - height: 7px; - border-radius: 4px; - background-color: rgba(255, 255, 255, 0.28); -} - -.dot-active { - width: 22px; - border-radius: 4px; - background-color: #33b4ff; -}