style(global): update background gradients and visual styling

- Replace radial gradient with combined radial and linear gradients
- Update color schemes with warmer tones and improved transparency
- Adjust border colors and add subtle glow effects
- Increase blur intensity for better glassmorphism effect

style(game): enhance seat player card design

- Add avatar panel container for better layout structure
- Implement dealer mark positioning with absolute placement
- Add missing suit icons with computed property mapping
- Replace text-based missing marks with image icons when available
- Improve visual hierarchy and spacing between elements

refactor(game): add computed property for dynamic suit icon selection

- Import suit icon assets (wan, tong, tiao)
- Create computed property to map suit labels to corresponding icons
- Handle fallback to text display when no icon is available
```
This commit is contained in:
2026-03-24 16:26:13 +08:00
parent 72253b1391
commit ceba41fb08
3 changed files with 966 additions and 268 deletions

View File

@@ -23,7 +23,9 @@ body,
body {
margin: 0;
min-width: 320px;
background: radial-gradient(circle at 12% 12%, #254935 0%, #11251c 45%, #0a1411 100%);
background:
radial-gradient(circle at top, rgba(219, 171, 91, 0.16), transparent 22%),
linear-gradient(180deg, #442621 0%, #24110e 100%);
}
#app {
@@ -54,10 +56,12 @@ p {
width: min(440px, 100%);
padding: 28px 24px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.16);
background: rgba(8, 27, 20, 0.82);
backdrop-filter: blur(8px);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
border: 1px solid rgba(246, 212, 139, 0.18);
background:
linear-gradient(180deg, rgba(62, 33, 26, 0.96), rgba(26, 14, 11, 0.96)),
radial-gradient(circle at top, rgba(255, 214, 134, 0.08), transparent 40%);
backdrop-filter: blur(10px);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.auth-card h1 {
@@ -204,8 +208,10 @@ button:disabled {
gap: 12px;
padding: 18px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.15);
background: linear-gradient(130deg, rgba(22, 57, 43, 0.9), rgba(10, 30, 22, 0.92));
border: 1px solid rgba(244, 210, 140, 0.14);
background:
linear-gradient(180deg, rgba(62, 33, 26, 0.94), rgba(30, 15, 12, 0.92)),
radial-gradient(circle at top, rgba(255, 214, 134, 0.08), transparent 42%);
}
.hall-topbar {
@@ -289,8 +295,8 @@ button:disabled {
.panel {
padding: 18px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(10, 30, 22, 0.85);
border: 1px solid rgba(244, 210, 140, 0.12);
background: rgba(40, 21, 17, 0.8);
}
.panel h2 {
@@ -762,16 +768,25 @@ button:disabled {
display: flex;
align-items: center;
gap: 10px;
min-width: 148px;
padding: 8px 12px;
border-radius: 14px;
border: 1px solid rgba(244, 222, 163, 0.24);
background: rgba(8, 27, 20, 0.72);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
min-width: 154px;
padding: 9px 12px;
border-radius: 16px;
border: 1px solid rgba(248, 226, 173, 0.24);
background:
linear-gradient(180deg, rgba(43, 52, 73, 0.84), rgba(17, 22, 34, 0.82)),
radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 12px 28px rgba(0, 0, 0, 0.24);
}
.avatar-panel {
position: relative;
flex: 0 0 auto;
}
.player-badge.seat-top {
top: 76px;
top: 28px;
left: 50%;
transform: translateX(-50%);
}
@@ -783,7 +798,7 @@ button:disabled {
}
.player-badge.seat-bottom {
bottom: 90px;
bottom: 136px;
left: 50%;
transform: translateX(-50%);
}
@@ -805,22 +820,29 @@ button:disabled {
.avatar-card {
display: grid;
place-items: center;
width: 42px;
height: 42px;
border-radius: 12px;
background: linear-gradient(145deg, #ecd995, #d3b767);
color: #1c2d23;
width: 48px;
height: 48px;
border-radius: 10px;
border: 1px solid rgba(255, 248, 215, 0.32);
background:
linear-gradient(145deg, #b3e79c, #4eaf4a 46%, #2f7e28 100%);
color: #f7fff7;
font-weight: 800;
box-shadow:
inset 0 2px 4px rgba(255, 255, 255, 0.18),
0 6px 14px rgba(0, 0, 0, 0.22);
}
.player-meta p {
font-size: 14px;
font-weight: 700;
color: #eef5ff;
}
.player-meta strong {
font-size: 13px;
color: #f7e4b0;
font-size: 15px;
color: #ffd85c;
text-shadow: 0 0 10px rgba(255, 216, 92, 0.2);
}
.dealer-mark,
@@ -828,22 +850,39 @@ button:disabled {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
padding: 0 6px;
min-width: 28px;
height: 28px;
border-radius: 999px;
font-size: 12px;
}
.dealer-mark {
background: rgba(236, 188, 84, 0.88);
color: #1c2d23;
position: absolute;
right: -8px;
bottom: -6px;
background: linear-gradient(180deg, #ffe38a 0%, #f1b92e 100%);
color: #5f3200;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}
.missing-mark {
margin-left: auto;
background: rgba(255, 255, 255, 0.08);
color: #d6eadf;
width: 34px;
height: 34px;
padding: 0;
overflow: hidden;
background: linear-gradient(180deg, rgba(114, 219, 149, 0.2) 0%, rgba(21, 148, 88, 0.34) 100%);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
}
.missing-mark img {
width: 22px;
height: 22px;
object-fit: contain;
}
.missing-mark span {
color: #effff5;
}
.wall {