From 89534f7bf388def45ca43c140bc5275f312b97c4 Mon Sep 17 00:00:00 2001 From: 170-carry Date: Thu, 30 Apr 2026 23:13:48 +0800 Subject: [PATCH] =?UTF-8?q?h5=E5=91=A8=E6=98=9F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/activity/week-star/index.html | 153 ++++++++++++++++++++++--------- 1 file changed, 112 insertions(+), 41 deletions(-) diff --git a/h5/activity/week-star/index.html b/h5/activity/week-star/index.html index 24cae22..0617a02 100644 --- a/h5/activity/week-star/index.html +++ b/h5/activity/week-star/index.html @@ -62,8 +62,9 @@ } .page { - width: min(100%, var(--page-width)); + width: 100%; min-height: 100vh; + min-height: 100dvh; margin: 0 auto; background: linear-gradient(180deg, #163a07 0%, #123708 38%, #0d2f08 100%); overflow: hidden; @@ -113,7 +114,7 @@ width: min(72%, 230px); max-width: calc(100% - 44px); aspect-ratio: 665 / 88; - padding: 0 24px 6px; + padding: 0 24px 2px; background: center / 100% 100% no-repeat var(--subtitle-frame-image); color: #f8e29b; font-size: 13px; @@ -158,6 +159,22 @@ object-fit: contain; } + .gift-card.gift-skeleton .gift-inner { + position: relative; + overflow: hidden; + border-radius: 16px; + } + + .gift-card.gift-skeleton .gift-inner::before { + content: ""; + width: 70%; + aspect-ratio: 1; + border-radius: 24px; + background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 248, 198, 0.35) 48%, rgba(255, 255, 255, 0.12) 100%); + background-size: 220% 100%; + animation: rank-skeleton-loading 1.1s ease-in-out infinite; + } + .gift-empty { opacity: 0.3; } @@ -165,14 +182,16 @@ .tab-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: 8px; - padding: 14px 15px 0; + gap: 12px; + padding: 12px 17px 14px; } .tab-button { position: relative; + display: block; width: 100%; - aspect-ratio: 336 / 126; + aspect-ratio: 336 / 108; + padding: 0; border: 0; appearance: none; background: none; @@ -191,8 +210,8 @@ .tab-button.active::before { background-image: var(--tab-active-image); - width: 103.4%; - height: 109%; + width: 103.57%; + height: 108.73%; } .tab-button span { @@ -216,15 +235,7 @@ .tab-button.active span { color: #c15f17; - } - - .period-strip { - padding: 18px 18px 16px; - color: #fff8c6; - text-align: center; - font-size: 18px; - line-height: 1.1; - font-weight: 700; + transform: translate(-50%, calc(-50% + 1px)); } .rank-stage { @@ -271,6 +282,48 @@ color: transparent; } + .rank-row.skeleton { + color: transparent; + } + + .rank-row.skeleton .rank-mark, + .rank-row.skeleton .rank-avatar, + .rank-row.skeleton .rank-name, + .rank-row.skeleton .rank-score { + position: relative; + overflow: hidden; + background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 248, 198, 0.28) 48%, rgba(255, 255, 255, 0.1) 100%); + background-size: 220% 100%; + animation: rank-skeleton-loading 1.1s ease-in-out infinite; + } + + .rank-row.skeleton .rank-mark { + height: 18px; + border-radius: 999px; + } + + .rank-row.skeleton .rank-name { + height: 16px; + max-width: 54%; + border-radius: 999px; + } + + .rank-row.skeleton .rank-score { + width: 48px; + height: 16px; + border-radius: 999px; + } + + @keyframes rank-skeleton-loading { + 0% { + background-position: 120% 0; + } + + 100% { + background-position: -120% 0; + } + } + .rank-mark { width: 30px; flex: 0 0 30px; @@ -485,9 +538,10 @@