```
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:
@@ -23,7 +23,9 @@ body,
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-width: 320px;
|
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 {
|
#app {
|
||||||
@@ -54,10 +56,12 @@ p {
|
|||||||
width: min(440px, 100%);
|
width: min(440px, 100%);
|
||||||
padding: 28px 24px;
|
padding: 28px 24px;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.16);
|
border: 1px solid rgba(246, 212, 139, 0.18);
|
||||||
background: rgba(8, 27, 20, 0.82);
|
background:
|
||||||
backdrop-filter: blur(8px);
|
linear-gradient(180deg, rgba(62, 33, 26, 0.96), rgba(26, 14, 11, 0.96)),
|
||||||
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
|
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 {
|
.auth-card h1 {
|
||||||
@@ -204,8 +208,10 @@ button:disabled {
|
|||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
border: 1px solid rgba(244, 210, 140, 0.14);
|
||||||
background: linear-gradient(130deg, rgba(22, 57, 43, 0.9), rgba(10, 30, 22, 0.92));
|
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 {
|
.hall-topbar {
|
||||||
@@ -289,8 +295,8 @@ button:disabled {
|
|||||||
.panel {
|
.panel {
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
border: 1px solid rgba(244, 210, 140, 0.12);
|
||||||
background: rgba(10, 30, 22, 0.85);
|
background: rgba(40, 21, 17, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel h2 {
|
.panel h2 {
|
||||||
@@ -762,16 +768,25 @@ button:disabled {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
min-width: 148px;
|
min-width: 154px;
|
||||||
padding: 8px 12px;
|
padding: 9px 12px;
|
||||||
border-radius: 14px;
|
border-radius: 16px;
|
||||||
border: 1px solid rgba(244, 222, 163, 0.24);
|
border: 1px solid rgba(248, 226, 173, 0.24);
|
||||||
background: rgba(8, 27, 20, 0.72);
|
background:
|
||||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
|
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 {
|
.player-badge.seat-top {
|
||||||
top: 76px;
|
top: 28px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
@@ -783,7 +798,7 @@ button:disabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.player-badge.seat-bottom {
|
.player-badge.seat-bottom {
|
||||||
bottom: 90px;
|
bottom: 136px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
@@ -805,22 +820,29 @@ button:disabled {
|
|||||||
.avatar-card {
|
.avatar-card {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
width: 42px;
|
width: 48px;
|
||||||
height: 42px;
|
height: 48px;
|
||||||
border-radius: 12px;
|
border-radius: 10px;
|
||||||
background: linear-gradient(145deg, #ecd995, #d3b767);
|
border: 1px solid rgba(255, 248, 215, 0.32);
|
||||||
color: #1c2d23;
|
background:
|
||||||
|
linear-gradient(145deg, #b3e79c, #4eaf4a 46%, #2f7e28 100%);
|
||||||
|
color: #f7fff7;
|
||||||
font-weight: 800;
|
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 {
|
.player-meta p {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
color: #eef5ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player-meta strong {
|
.player-meta strong {
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
color: #f7e4b0;
|
color: #ffd85c;
|
||||||
|
text-shadow: 0 0 10px rgba(255, 216, 92, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dealer-mark,
|
.dealer-mark,
|
||||||
@@ -828,22 +850,39 @@ button:disabled {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-width: 24px;
|
min-width: 28px;
|
||||||
height: 24px;
|
height: 28px;
|
||||||
padding: 0 6px;
|
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dealer-mark {
|
.dealer-mark {
|
||||||
background: rgba(236, 188, 84, 0.88);
|
position: absolute;
|
||||||
color: #1c2d23;
|
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 {
|
.missing-mark {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
background: rgba(255, 255, 255, 0.08);
|
width: 34px;
|
||||||
color: #d6eadf;
|
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 {
|
.wall {
|
||||||
|
|||||||
@@ -1,10 +1,27 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { computed } from 'vue'
|
||||||
|
import wanIcon from '../../assets/images/flowerClolor/wan.png'
|
||||||
|
import tongIcon from '../../assets/images/flowerClolor/tong.png'
|
||||||
|
import tiaoIcon from '../../assets/images/flowerClolor/tiao.png'
|
||||||
import type { SeatPlayerCardModel } from './seat-player-card'
|
import type { SeatPlayerCardModel } from './seat-player-card'
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
seatClass: string
|
seatClass: string
|
||||||
player: SeatPlayerCardModel
|
player: SeatPlayerCardModel
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
const missingSuitIcon = computed(() => {
|
||||||
|
if (props.player.missingSuitLabel === '万') {
|
||||||
|
return wanIcon
|
||||||
|
}
|
||||||
|
if (props.player.missingSuitLabel === '筒') {
|
||||||
|
return tongIcon
|
||||||
|
}
|
||||||
|
if (props.player.missingSuitLabel === '条') {
|
||||||
|
return tiaoIcon
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -12,12 +29,19 @@ defineProps<{
|
|||||||
class="player-badge"
|
class="player-badge"
|
||||||
:class="[seatClass, { 'is-turn': player.isTurn, offline: !player.isOnline }]"
|
:class="[seatClass, { 'is-turn': player.isTurn, offline: !player.isOnline }]"
|
||||||
>
|
>
|
||||||
|
<div class="avatar-panel">
|
||||||
<div class="avatar-card">{{ player.avatar }}</div>
|
<div class="avatar-card">{{ player.avatar }}</div>
|
||||||
|
<span v-if="player.dealer" class="dealer-mark">庄</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="player-meta">
|
<div class="player-meta">
|
||||||
<p>{{ player.name }}</p>
|
<p>{{ player.name }}</p>
|
||||||
<strong>{{ player.money }}</strong>
|
<strong>{{ player.money }}</strong>
|
||||||
</div>
|
</div>
|
||||||
<span v-if="player.dealer" class="dealer-mark">庄</span>
|
|
||||||
<span class="missing-mark">{{ player.missingSuitLabel }}</span>
|
<div class="missing-mark">
|
||||||
|
<img v-if="missingSuitIcon" :src="missingSuitIcon" alt="" />
|
||||||
|
<span v-else>{{ player.missingSuitLabel }}</span>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user