verce-vue-test 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/design-qa.md +17 -9
- package/package.json +1 -1
- package/src/views/HomeView.vue +340 -172
- package/vite.config.ts +6 -0
- package/mini2.0-main 2/.editorconfig +0 -8
- package/mini2.0-main 2/.env.development +0 -3
- package/mini2.0-main 2/.env.production +0 -3
- package/mini2.0-main 2/.env.test +0 -3
- package/mini2.0-main 2/.gitattributes +0 -1
- package/mini2.0-main 2/.oxlintrc.json +0 -10
- package/mini2.0-main 2/.prettierrc.json +0 -6
- package/mini2.0-main 2/.vscode/extensions.json +0 -9
- package/mini2.0-main 2/README.md +0 -179
- package/mini2.0-main 2/auto-imports.d.ts +0 -629
- package/mini2.0-main 2/components.d.ts +0 -21
- package/mini2.0-main 2/docs/MX_API.md +0 -244
- package/mini2.0-main 2/docs/REQUEST.md +0 -217
- package/mini2.0-main 2/docs/jsapi.js +0 -515
- package/mini2.0-main 2/docs/package-json-guide.md +0 -132
- package/mini2.0-main 2/env.d.ts +0 -13
- package/mini2.0-main 2/eslint.config.ts +0 -26
- package/mini2.0-main 2/index.html +0 -16
- package/mini2.0-main 2/package-lock.json +0 -6442
- package/mini2.0-main 2/package.json +0 -66
- package/mini2.0-main 2/plugins/bump-version.ts +0 -61
- package/mini2.0-main 2/postcss.config.ts +0 -15
- package/mini2.0-main 2/public/favicon.ico +0 -0
- package/mini2.0-main 2/public/images/12a73787-86a9-4891-a65f-66104746f6a8.png +0 -0
- package/mini2.0-main 2/public/images/5798d7aa-ba8b-4605-8079-58b35495ac55.png +0 -0
- package/mini2.0-main 2/public/images/73fef1e4-0fd0-4a1a-9b8b-a70a5b6acbbc.png +0 -0
- package/mini2.0-main 2/public/images/bc685b4c-0cca-4a79-924c-a8ee10e6f8eb.png +0 -0
- package/mini2.0-main 2/public/images/c3dbbd9d-be56-490e-b9f4-6ee17ebefffc.png +0 -0
- package/mini2.0-main 2/public/images/ea745a10-42aa-4f44-8d7f-3ab02cc0adcd.png +0 -0
- package/mini2.0-main 2/public/images/f5876785-b927-4347-ba19-999114240649.png +0 -0
- package/mini2.0-main 2/public/images/img.png +0 -0
- package/mini2.0-main 2/src/App.vue +0 -11
- package/mini2.0-main 2/src/api/user.ts +0 -33
- package/mini2.0-main 2/src/auto-imports.d.ts +0 -639
- package/mini2.0-main 2/src/components.d.ts +0 -23
- package/mini2.0-main 2/src/config/config.properties +0 -3
- package/mini2.0-main 2/src/config/env.ts +0 -6
- package/mini2.0-main 2/src/config/plugin.properties.pro +0 -6
- package/mini2.0-main 2/src/config/plugin.properties.test +0 -6
- package/mini2.0-main 2/src/core/mxApi/index.ts +0 -217
- package/mini2.0-main 2/src/core/request/index.ts +0 -42
- package/mini2.0-main 2/src/main.ts +0 -28
- package/mini2.0-main 2/src/router/index.ts +0 -70
- package/mini2.0-main 2/src/stores/app.ts +0 -24
- package/mini2.0-main 2/src/stores/counter.ts +0 -12
- package/mini2.0-main 2/src/stores/user.ts +0 -52
- package/mini2.0-main 2/src/types/api.d.ts +0 -14
- package/mini2.0-main 2/src/types/nprogress.d.ts +0 -8
- package/mini2.0-main 2/src/utils/query.ts +0 -27
- package/mini2.0-main 2/src/utils/request.ts +0 -159
- package/mini2.0-main 2/src/views/clearing-detail/index.vue +0 -49
- package/mini2.0-main 2/src/views/foreign-position/index.vue +0 -49
- package/mini2.0-main 2/src/views/home/index.vue +0 -201
- package/mini2.0-main 2/src/views/login/index.vue +0 -196
- package/mini2.0-main 2/src/views/net-debit/index.vue +0 -49
- package/mini2.0-main 2/src/views/pbc-position/index.vue +0 -49
- package/mini2.0-main 2/src/views/position-estimate/index.vue +0 -49
- package/mini2.0-main 2/src/views/rmb-position/index.vue +0 -49
- package/mini2.0-main 2/src/views/warning/index.vue +0 -49
- package/mini2.0-main 2/tsconfig.app.json +0 -18
- package/mini2.0-main 2/tsconfig.json +0 -11
- package/mini2.0-main 2/tsconfig.node.json +0 -28
- package/mini2.0-main 2/vite.config.ts +0 -69
package/src/views/HomeView.vue
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Component } from 'vue'
|
|
3
|
+
import { useRouter } from 'vue-router'
|
|
3
4
|
import {
|
|
5
|
+
Bell,
|
|
4
6
|
Clock,
|
|
5
7
|
Compass,
|
|
6
8
|
Connection,
|
|
9
|
+
DataLine,
|
|
10
|
+
HomeFilled,
|
|
7
11
|
Lock,
|
|
8
12
|
School,
|
|
13
|
+
TrendCharts,
|
|
9
14
|
} from '@element-plus/icons-vue'
|
|
10
15
|
|
|
11
16
|
import homePageBg from '@/assets/home/home-page-bg.png'
|
|
@@ -35,7 +40,15 @@ type BalanceCard = {
|
|
|
35
40
|
glow: string
|
|
36
41
|
}
|
|
37
42
|
|
|
43
|
+
type HomeMenuItem = {
|
|
44
|
+
label: string
|
|
45
|
+
route: string
|
|
46
|
+
icon: Component
|
|
47
|
+
active?: boolean
|
|
48
|
+
}
|
|
49
|
+
|
|
38
50
|
const updatedAt = '2025-05-27 10:30:00'
|
|
51
|
+
const router = useRouter()
|
|
39
52
|
|
|
40
53
|
const balanceCards: BalanceCard[] = [
|
|
41
54
|
{
|
|
@@ -152,6 +165,19 @@ const balanceCards: BalanceCard[] = [
|
|
|
152
165
|
glow: 'rgba(88, 41, 191, 0.27)',
|
|
153
166
|
},
|
|
154
167
|
]
|
|
168
|
+
|
|
169
|
+
const menuItems: HomeMenuItem[] = [
|
|
170
|
+
{ label: '总览', route: '/', icon: HomeFilled, active: true },
|
|
171
|
+
{ label: '驾驶舱', route: '/fund-cockpit', icon: TrendCharts },
|
|
172
|
+
{ label: '头寸', route: '/position-forecast', icon: DataLine },
|
|
173
|
+
{ label: '公告', route: '/notice-announcement', icon: Bell },
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
function openMenu(item: HomeMenuItem) {
|
|
177
|
+
if (item.route !== '/') {
|
|
178
|
+
router.push(item.route)
|
|
179
|
+
}
|
|
180
|
+
}
|
|
155
181
|
</script>
|
|
156
182
|
|
|
157
183
|
<template>
|
|
@@ -160,76 +186,102 @@ const balanceCards: BalanceCard[] = [
|
|
|
160
186
|
:style="{ '--home-bg': `url(${homePageBg})` }"
|
|
161
187
|
aria-label="账户余额总览"
|
|
162
188
|
>
|
|
163
|
-
<
|
|
164
|
-
<
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
<div class="updated-at">
|
|
174
|
-
<el-icon><Clock /></el-icon>
|
|
175
|
-
<span>更新时间:</span>
|
|
176
|
-
<time :datetime="updatedAt">{{ updatedAt }}</time>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
<div class="balance-grid">
|
|
180
|
-
<article
|
|
181
|
-
v-for="card in balanceCards"
|
|
182
|
-
:key="card.id"
|
|
183
|
-
class="balance-card"
|
|
184
|
-
:style="{
|
|
185
|
-
'--card-bg': `url(${card.background})`,
|
|
186
|
-
'--accent': card.accent,
|
|
187
|
-
'--accent-deep': card.accentDeep,
|
|
188
|
-
'--accent-soft': card.accentSoft,
|
|
189
|
-
'--card-border': card.border,
|
|
190
|
-
'--card-glow': card.glow,
|
|
191
|
-
}"
|
|
192
|
-
>
|
|
193
|
-
<img class="card-bg" :src="card.background" alt="" aria-hidden="true" />
|
|
194
|
-
|
|
195
|
-
<div class="badge-shell" aria-hidden="true">
|
|
196
|
-
<div class="currency-badge">
|
|
197
|
-
<span
|
|
198
|
-
v-if="card.symbol"
|
|
199
|
-
class="currency-symbol"
|
|
200
|
-
:class="{ 'is-compact': card.iconSize === 'compact' }"
|
|
201
|
-
>
|
|
202
|
-
{{ card.symbol }}
|
|
203
|
-
</span>
|
|
204
|
-
<component :is="card.icon" v-else class="badge-icon" />
|
|
189
|
+
<div class="home-layout">
|
|
190
|
+
<section class="balance-panel">
|
|
191
|
+
<header class="panel-head">
|
|
192
|
+
<div class="page-heading">
|
|
193
|
+
<h1>账户余额总览</h1>
|
|
194
|
+
<div class="heading-rule" aria-hidden="true">
|
|
195
|
+
<span></span>
|
|
196
|
+
<i><Lock /></i>
|
|
197
|
+
<span></span>
|
|
205
198
|
</div>
|
|
206
199
|
</div>
|
|
207
200
|
|
|
208
|
-
<
|
|
201
|
+
<div class="updated-at">
|
|
202
|
+
<el-icon><Clock /></el-icon>
|
|
203
|
+
<span>更新时间:</span>
|
|
204
|
+
<time :datetime="updatedAt">{{ updatedAt }}</time>
|
|
205
|
+
</div>
|
|
206
|
+
</header>
|
|
207
|
+
|
|
208
|
+
<div class="balance-grid">
|
|
209
|
+
<article
|
|
210
|
+
v-for="card in balanceCards"
|
|
211
|
+
:key="card.id"
|
|
212
|
+
class="balance-card"
|
|
213
|
+
:style="{
|
|
214
|
+
'--card-bg': `url(${card.background})`,
|
|
215
|
+
'--accent': card.accent,
|
|
216
|
+
'--accent-deep': card.accentDeep,
|
|
217
|
+
'--accent-soft': card.accentSoft,
|
|
218
|
+
'--card-border': card.border,
|
|
219
|
+
'--card-glow': card.glow,
|
|
220
|
+
}"
|
|
221
|
+
>
|
|
222
|
+
<img class="card-bg" :src="card.background" alt="" aria-hidden="true" />
|
|
223
|
+
|
|
224
|
+
<div class="badge-shell" aria-hidden="true">
|
|
225
|
+
<div class="currency-badge">
|
|
226
|
+
<span
|
|
227
|
+
v-if="card.symbol"
|
|
228
|
+
class="currency-symbol"
|
|
229
|
+
:class="{ 'is-compact': card.iconSize === 'compact' }"
|
|
230
|
+
>
|
|
231
|
+
{{ card.symbol }}
|
|
232
|
+
</span>
|
|
233
|
+
<component :is="card.icon" v-else class="badge-icon" />
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<h2>{{ card.title }}</h2>
|
|
209
238
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
239
|
+
<div class="amount-block">
|
|
240
|
+
<div class="amount-row">
|
|
241
|
+
<span class="amount-main">{{ card.amount }}</span>
|
|
242
|
+
<span class="amount-decimal">{{ card.decimal }}</span>
|
|
243
|
+
</div>
|
|
244
|
+
<div class="unit-label">{{ card.unit }}</div>
|
|
214
245
|
</div>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
246
|
+
</article>
|
|
247
|
+
</div>
|
|
248
|
+
</section>
|
|
249
|
+
|
|
250
|
+
<nav class="right-menu" aria-label="首页快捷菜单">
|
|
251
|
+
<button
|
|
252
|
+
v-for="item in menuItems"
|
|
253
|
+
:key="item.route"
|
|
254
|
+
class="menu-item"
|
|
255
|
+
:class="{ 'is-active': item.active }"
|
|
256
|
+
type="button"
|
|
257
|
+
:aria-current="item.active ? 'page' : undefined"
|
|
258
|
+
@click="openMenu(item)"
|
|
259
|
+
>
|
|
260
|
+
<el-icon class="menu-icon">
|
|
261
|
+
<component :is="item.icon" />
|
|
262
|
+
</el-icon>
|
|
263
|
+
<span class="menu-label">{{ item.label }}</span>
|
|
264
|
+
</button>
|
|
265
|
+
</nav>
|
|
266
|
+
</div>
|
|
220
267
|
</main>
|
|
221
268
|
</template>
|
|
222
269
|
|
|
223
270
|
<style scoped>
|
|
224
271
|
.balance-home {
|
|
225
272
|
--navy: #071a55;
|
|
273
|
+
--page-gap: clamp(0.55rem, 1.15vw, 1.35rem);
|
|
274
|
+
--edge-pad-x: clamp(0.75rem, 2.5vw, 2.65rem);
|
|
275
|
+
--edge-pad-y: clamp(0.75rem, 4vh, 2.65rem);
|
|
276
|
+
--menu-width: clamp(4.25rem, 6.5vw, 7.25rem);
|
|
277
|
+
--panel-radius: clamp(1.1rem, 2.6vw, 3rem);
|
|
278
|
+
--card-radius: clamp(0.65rem, 0.85vw, 1rem);
|
|
226
279
|
position: relative;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
height:
|
|
230
|
-
|
|
280
|
+
width: 100%;
|
|
281
|
+
min-height: 100vh;
|
|
282
|
+
min-height: 100dvh;
|
|
283
|
+
padding: var(--edge-pad-y) var(--edge-pad-x);
|
|
231
284
|
overflow: hidden;
|
|
232
|
-
container-type: size;
|
|
233
285
|
color: var(--navy);
|
|
234
286
|
background: #dcecff var(--home-bg) center / cover no-repeat;
|
|
235
287
|
font-family:
|
|
@@ -240,63 +292,78 @@ const balanceCards: BalanceCard[] = [
|
|
|
240
292
|
sans-serif;
|
|
241
293
|
}
|
|
242
294
|
|
|
295
|
+
.home-layout {
|
|
296
|
+
display: grid;
|
|
297
|
+
grid-template-columns: minmax(0, 1fr) var(--menu-width);
|
|
298
|
+
gap: var(--page-gap);
|
|
299
|
+
width: 100%;
|
|
300
|
+
height: calc(100vh - var(--edge-pad-y) * 2);
|
|
301
|
+
height: calc(100dvh - var(--edge-pad-y) * 2);
|
|
302
|
+
min-height: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
243
305
|
.balance-panel {
|
|
244
|
-
position:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
306
|
+
position: relative;
|
|
307
|
+
display: grid;
|
|
308
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
309
|
+
min-width: 0;
|
|
310
|
+
min-height: 0;
|
|
249
311
|
overflow: hidden;
|
|
250
312
|
border: 2px solid rgba(255, 255, 255, 0.92);
|
|
251
|
-
border-radius:
|
|
313
|
+
border-radius: var(--panel-radius);
|
|
252
314
|
background:
|
|
253
315
|
linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(245, 251, 255, 0.42)),
|
|
254
316
|
rgba(243, 249, 255, 0.52);
|
|
255
317
|
box-shadow:
|
|
256
318
|
0 0 0 2px rgba(166, 204, 245, 0.55),
|
|
257
|
-
0 1.
|
|
258
|
-
inset 0 0 1.
|
|
259
|
-
inset 0 -
|
|
319
|
+
0 clamp(0.6rem, 1.4vw, 1.7rem) clamp(1rem, 3vw, 3.4rem) rgba(67, 125, 189, 0.25),
|
|
320
|
+
inset 0 0 clamp(0.8rem, 1.8vw, 2rem) rgba(255, 255, 255, 0.82),
|
|
321
|
+
inset 0 clamp(-1rem, -1vw, -0.3rem) clamp(1rem, 2.8vw, 3rem) rgba(95, 155, 220, 0.14);
|
|
260
322
|
backdrop-filter: blur(2px);
|
|
261
323
|
}
|
|
262
324
|
|
|
263
325
|
.balance-panel::before {
|
|
264
326
|
position: absolute;
|
|
265
|
-
inset: 1.
|
|
327
|
+
inset: clamp(0.55rem, 1.15vw, 1.35rem);
|
|
266
328
|
content: "";
|
|
267
329
|
pointer-events: none;
|
|
268
330
|
border: 1px solid rgba(187, 217, 247, 0.62);
|
|
269
|
-
border-radius:
|
|
270
|
-
box-shadow: inset 0 0 1.
|
|
331
|
+
border-radius: calc(var(--panel-radius) * 0.78);
|
|
332
|
+
box-shadow: inset 0 0 clamp(0.8rem, 1.8vw, 2rem) rgba(255, 255, 255, 0.72);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.panel-head {
|
|
336
|
+
position: relative;
|
|
337
|
+
z-index: 1;
|
|
338
|
+
display: grid;
|
|
339
|
+
min-height: clamp(6.1rem, 15vh, 9.4rem);
|
|
340
|
+
padding: clamp(1.25rem, 3vh, 2.6rem) clamp(1.25rem, 3.75vw, 4rem) 0;
|
|
271
341
|
}
|
|
272
342
|
|
|
273
343
|
.page-heading {
|
|
274
|
-
position: absolute;
|
|
275
|
-
top: 4.1%;
|
|
276
|
-
left: 0;
|
|
277
|
-
right: 0;
|
|
278
344
|
display: grid;
|
|
279
345
|
justify-items: center;
|
|
346
|
+
align-self: start;
|
|
280
347
|
}
|
|
281
348
|
|
|
282
349
|
.page-heading h1 {
|
|
283
350
|
margin: 0;
|
|
284
351
|
color: #06195a;
|
|
285
|
-
font-size: 4.
|
|
352
|
+
font-size: clamp(2.35rem, 4.05vw, 4.7rem);
|
|
286
353
|
font-weight: 900;
|
|
287
354
|
line-height: 0.98;
|
|
288
355
|
letter-spacing: 0;
|
|
289
356
|
text-shadow:
|
|
290
|
-
0 0.
|
|
291
|
-
0 0.
|
|
357
|
+
0 0.08rem 0 rgba(255, 255, 255, 0.86),
|
|
358
|
+
0 0.14rem 0.25rem rgba(38, 66, 137, 0.2);
|
|
292
359
|
}
|
|
293
360
|
|
|
294
361
|
.heading-rule {
|
|
295
362
|
display: grid;
|
|
296
|
-
grid-template-columns:
|
|
363
|
+
grid-template-columns: minmax(4rem, 12vw) clamp(1rem, 1.55vw, 1.8rem) minmax(4rem, 12vw);
|
|
297
364
|
align-items: center;
|
|
298
|
-
gap: 0.
|
|
299
|
-
margin-top: 1.
|
|
365
|
+
gap: clamp(0.32rem, 0.55vw, 0.65rem);
|
|
366
|
+
margin-top: clamp(0.45rem, 1vw, 1.15rem);
|
|
300
367
|
color: #1f57e2;
|
|
301
368
|
}
|
|
302
369
|
|
|
@@ -313,8 +380,8 @@ const balanceCards: BalanceCard[] = [
|
|
|
313
380
|
|
|
314
381
|
.heading-rule i {
|
|
315
382
|
display: grid;
|
|
316
|
-
width: 1.
|
|
317
|
-
height: 1.
|
|
383
|
+
width: clamp(1rem, 1.35vw, 1.55rem);
|
|
384
|
+
height: clamp(1rem, 1.35vw, 1.55rem);
|
|
318
385
|
place-items: center;
|
|
319
386
|
color: #2466ec;
|
|
320
387
|
}
|
|
@@ -327,54 +394,55 @@ const balanceCards: BalanceCard[] = [
|
|
|
327
394
|
|
|
328
395
|
.updated-at {
|
|
329
396
|
position: absolute;
|
|
330
|
-
top:
|
|
331
|
-
right:
|
|
397
|
+
top: clamp(1.8rem, 5.8vh, 3.75rem);
|
|
398
|
+
right: clamp(1.25rem, 3.75vw, 4rem);
|
|
332
399
|
display: flex;
|
|
333
400
|
align-items: center;
|
|
334
401
|
color: #23305b;
|
|
335
|
-
font-size: 1.
|
|
402
|
+
font-size: clamp(0.8rem, 1.05vw, 1.18rem);
|
|
336
403
|
font-weight: 500;
|
|
337
404
|
line-height: 1;
|
|
338
405
|
white-space: nowrap;
|
|
339
406
|
}
|
|
340
407
|
|
|
341
408
|
.updated-at .el-icon {
|
|
342
|
-
margin-right: 0.
|
|
409
|
+
margin-right: clamp(0.25rem, 0.45vw, 0.55rem);
|
|
343
410
|
color: #172969;
|
|
344
|
-
font-size: 1.
|
|
411
|
+
font-size: clamp(0.95rem, 1.28vw, 1.42rem);
|
|
345
412
|
}
|
|
346
413
|
|
|
347
414
|
.balance-grid {
|
|
348
|
-
position:
|
|
349
|
-
top: 10.1cqw;
|
|
350
|
-
right: 3.85%;
|
|
351
|
-
bottom: 4cqw;
|
|
352
|
-
left: 3.82%;
|
|
415
|
+
position: relative;
|
|
353
416
|
z-index: 1;
|
|
354
417
|
display: grid;
|
|
355
418
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
356
419
|
grid-template-rows: repeat(4, minmax(0, 1fr));
|
|
357
|
-
gap: 1.
|
|
420
|
+
gap: clamp(0.65rem, 1.45vh, 1.35rem) clamp(0.75rem, 1.6vw, 1.75rem);
|
|
421
|
+
min-height: 0;
|
|
422
|
+
padding: 0 clamp(1.25rem, 3.75vw, 4rem) clamp(1.15rem, 3.65vh, 2.8rem);
|
|
358
423
|
}
|
|
359
424
|
|
|
360
425
|
.balance-card {
|
|
361
426
|
position: relative;
|
|
362
427
|
display: grid;
|
|
363
|
-
grid-template-columns:
|
|
428
|
+
grid-template-columns:
|
|
429
|
+
clamp(4.25rem, 7vmin, 7rem)
|
|
430
|
+
minmax(clamp(5.5rem, 9vw, 10.75rem), 0.52fr)
|
|
431
|
+
minmax(0, 1fr);
|
|
364
432
|
align-items: center;
|
|
365
433
|
min-width: 0;
|
|
366
434
|
min-height: 0;
|
|
367
435
|
overflow: hidden;
|
|
368
|
-
padding: 0 1.
|
|
436
|
+
padding: 0 clamp(0.85rem, 1.6vw, 1.7rem) 0 clamp(0.75rem, 1.35vw, 1.45rem);
|
|
369
437
|
border: 1px solid var(--card-border);
|
|
370
|
-
border-radius:
|
|
438
|
+
border-radius: var(--card-radius);
|
|
371
439
|
background:
|
|
372
440
|
linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
|
|
373
441
|
#ffffff;
|
|
374
442
|
box-shadow:
|
|
375
|
-
0 0.
|
|
376
|
-
0 0 0.
|
|
377
|
-
-0.
|
|
443
|
+
0 0.13rem clamp(0.35rem, 0.65vw, 0.75rem) var(--card-glow),
|
|
444
|
+
0 0 clamp(0.45rem, 0.85vw, 1rem) rgba(255, 255, 255, 0.9) inset,
|
|
445
|
+
-0.16rem 0 0 var(--accent) inset;
|
|
378
446
|
}
|
|
379
447
|
|
|
380
448
|
.balance-card::before {
|
|
@@ -382,11 +450,11 @@ const balanceCards: BalanceCard[] = [
|
|
|
382
450
|
top: 11%;
|
|
383
451
|
bottom: 11%;
|
|
384
452
|
left: 0;
|
|
385
|
-
width: 0.
|
|
453
|
+
width: clamp(0.15rem, 0.22vw, 0.24rem);
|
|
386
454
|
content: "";
|
|
387
455
|
border-radius: 0 99px 99px 0;
|
|
388
456
|
background: linear-gradient(180deg, var(--accent-soft), var(--accent-deep));
|
|
389
|
-
box-shadow: 0 0 0.
|
|
457
|
+
box-shadow: 0 0 clamp(0.45rem, 0.85vw, 1rem) var(--card-glow);
|
|
390
458
|
}
|
|
391
459
|
|
|
392
460
|
.balance-card::after {
|
|
@@ -420,8 +488,8 @@ const balanceCards: BalanceCard[] = [
|
|
|
420
488
|
|
|
421
489
|
.badge-shell {
|
|
422
490
|
display: grid;
|
|
423
|
-
width: 6.
|
|
424
|
-
|
|
491
|
+
width: clamp(3.9rem, 6.6vmin, 6.85rem);
|
|
492
|
+
aspect-ratio: 1;
|
|
425
493
|
place-items: center;
|
|
426
494
|
border-radius: 50%;
|
|
427
495
|
background:
|
|
@@ -429,52 +497,52 @@ const balanceCards: BalanceCard[] = [
|
|
|
429
497
|
radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 61%, rgba(255, 255, 255, 0) 62%),
|
|
430
498
|
conic-gradient(from 200deg, rgba(255, 255, 255, 0.1), var(--accent-soft), rgba(255, 255, 255, 0.78), var(--accent-deep), rgba(255, 255, 255, 0.24));
|
|
431
499
|
box-shadow:
|
|
432
|
-
0 0.
|
|
433
|
-
0 0 1.
|
|
500
|
+
0 0.13rem clamp(0.38rem, 0.7vw, 0.82rem) var(--card-glow),
|
|
501
|
+
0 0 clamp(0.65rem, 1.25vw, 1.45rem) rgba(255, 255, 255, 0.86) inset;
|
|
434
502
|
}
|
|
435
503
|
|
|
436
504
|
.currency-badge {
|
|
437
505
|
position: relative;
|
|
438
506
|
display: grid;
|
|
439
|
-
width:
|
|
440
|
-
|
|
507
|
+
width: 81%;
|
|
508
|
+
aspect-ratio: 1;
|
|
441
509
|
place-items: center;
|
|
442
510
|
overflow: hidden;
|
|
443
|
-
border: 0.
|
|
511
|
+
border: clamp(0.1rem, 0.16vw, 0.18rem) solid rgba(255, 255, 255, 0.92);
|
|
444
512
|
border-radius: 50%;
|
|
445
513
|
color: #ffffff;
|
|
446
514
|
background:
|
|
447
515
|
radial-gradient(circle at 42% 35%, var(--accent-soft), var(--accent) 58%, var(--accent-deep) 100%);
|
|
448
516
|
box-shadow:
|
|
449
|
-
0 0 0 0.
|
|
450
|
-
0 0.
|
|
451
|
-
inset 0 -0.
|
|
517
|
+
0 0 0 clamp(0.07rem, 0.13vw, 0.15rem) rgba(255, 255, 255, 0.52),
|
|
518
|
+
0 0.14rem 0.32rem rgba(2, 35, 79, 0.18),
|
|
519
|
+
inset 0 -0.14rem 0.32rem rgba(0, 0, 0, 0.14);
|
|
452
520
|
}
|
|
453
521
|
|
|
454
522
|
.currency-symbol {
|
|
455
523
|
color: #ffffff;
|
|
456
|
-
font-size: 3.
|
|
524
|
+
font-size: clamp(2rem, 3.25vmin, 3.35rem);
|
|
457
525
|
font-weight: 900;
|
|
458
526
|
line-height: 1;
|
|
459
527
|
letter-spacing: 0;
|
|
460
|
-
text-shadow: 0 0.
|
|
528
|
+
text-shadow: 0 0.08rem 0.1rem rgba(0, 0, 0, 0.17);
|
|
461
529
|
}
|
|
462
530
|
|
|
463
531
|
.currency-symbol.is-compact {
|
|
464
|
-
font-size: 1.
|
|
532
|
+
font-size: clamp(1.15rem, 1.75vmin, 1.85rem);
|
|
465
533
|
}
|
|
466
534
|
|
|
467
535
|
.badge-icon {
|
|
468
|
-
width: 3.
|
|
469
|
-
height: 3.
|
|
536
|
+
width: clamp(1.85rem, 3vmin, 3.2rem);
|
|
537
|
+
height: clamp(1.85rem, 3vmin, 3.2rem);
|
|
470
538
|
color: #ffffff;
|
|
471
|
-
filter: drop-shadow(0 0.
|
|
539
|
+
filter: drop-shadow(0 0.06rem 0.06rem rgba(0, 0, 0, 0.2));
|
|
472
540
|
}
|
|
473
541
|
|
|
474
542
|
.balance-card h2 {
|
|
475
543
|
margin: 0;
|
|
476
544
|
color: #050d44;
|
|
477
|
-
font-size: 1.
|
|
545
|
+
font-size: clamp(1.15rem, 1.7vw, 2rem);
|
|
478
546
|
font-weight: 900;
|
|
479
547
|
line-height: 1.04;
|
|
480
548
|
letter-spacing: 0;
|
|
@@ -485,7 +553,7 @@ const balanceCards: BalanceCard[] = [
|
|
|
485
553
|
display: grid;
|
|
486
554
|
justify-items: end;
|
|
487
555
|
min-width: 0;
|
|
488
|
-
padding-top: 0.
|
|
556
|
+
padding-top: clamp(0.2rem, 0.55vw, 0.6rem);
|
|
489
557
|
}
|
|
490
558
|
|
|
491
559
|
.amount-row {
|
|
@@ -503,119 +571,219 @@ const balanceCards: BalanceCard[] = [
|
|
|
503
571
|
font-weight: 900;
|
|
504
572
|
line-height: 0.94;
|
|
505
573
|
text-align: right;
|
|
506
|
-
text-shadow: 0 0.
|
|
574
|
+
text-shadow: 0 0.08rem 0.15rem rgba(255, 255, 255, 0.92);
|
|
507
575
|
white-space: nowrap;
|
|
508
576
|
}
|
|
509
577
|
|
|
510
578
|
.amount-main {
|
|
511
579
|
min-width: 0;
|
|
512
580
|
overflow: hidden;
|
|
513
|
-
font-size: 3.
|
|
581
|
+
font-size: clamp(1.75rem, 2.85vw, 3.35rem);
|
|
514
582
|
letter-spacing: 0;
|
|
515
583
|
text-overflow: ellipsis;
|
|
516
584
|
}
|
|
517
585
|
|
|
518
586
|
.amount-decimal {
|
|
519
587
|
flex: 0 0 auto;
|
|
520
|
-
margin-top: 0.
|
|
521
|
-
margin-left: 0.
|
|
522
|
-
font-size: 1.
|
|
588
|
+
margin-top: clamp(0.35rem, 0.72vw, 0.8rem);
|
|
589
|
+
margin-left: clamp(0.06rem, 0.14vw, 0.16rem);
|
|
590
|
+
font-size: clamp(0.95rem, 1.42vw, 1.65rem);
|
|
523
591
|
letter-spacing: 0;
|
|
524
592
|
}
|
|
525
593
|
|
|
526
594
|
.unit-label {
|
|
527
|
-
margin-top: 0.
|
|
595
|
+
margin-top: clamp(0.35rem, 0.75vw, 0.85rem);
|
|
528
596
|
color: color-mix(in srgb, var(--accent-deep) 88%, #00164e);
|
|
529
|
-
font-size: 1.
|
|
597
|
+
font-size: clamp(0.95rem, 1.35vw, 1.55rem);
|
|
530
598
|
font-weight: 500;
|
|
531
599
|
line-height: 1;
|
|
532
600
|
letter-spacing: 0;
|
|
533
601
|
text-align: right;
|
|
534
602
|
}
|
|
535
603
|
|
|
536
|
-
|
|
604
|
+
.right-menu {
|
|
605
|
+
position: relative;
|
|
606
|
+
z-index: 2;
|
|
607
|
+
display: grid;
|
|
608
|
+
align-content: center;
|
|
609
|
+
gap: clamp(0.55rem, 1.25vh, 1rem);
|
|
610
|
+
min-width: 0;
|
|
611
|
+
min-height: 0;
|
|
612
|
+
padding: clamp(0.55rem, 1.4vh, 1.2rem) clamp(0.35rem, 0.7vw, 0.75rem);
|
|
613
|
+
border: 1px solid rgba(255, 255, 255, 0.76);
|
|
614
|
+
border-radius: clamp(0.85rem, 1.4vw, 1.45rem);
|
|
615
|
+
background:
|
|
616
|
+
linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(229, 242, 255, 0.62)),
|
|
617
|
+
rgba(224, 239, 255, 0.46);
|
|
618
|
+
box-shadow:
|
|
619
|
+
0 0.7rem 1.6rem rgba(65, 126, 194, 0.22),
|
|
620
|
+
inset 0 0 1rem rgba(255, 255, 255, 0.76);
|
|
621
|
+
backdrop-filter: blur(5px);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.menu-item {
|
|
625
|
+
display: grid;
|
|
626
|
+
justify-items: center;
|
|
627
|
+
gap: clamp(0.25rem, 0.55vh, 0.45rem);
|
|
628
|
+
width: 100%;
|
|
629
|
+
min-width: 0;
|
|
630
|
+
padding: clamp(0.55rem, 1.15vh, 0.95rem) clamp(0.25rem, 0.6vw, 0.6rem);
|
|
631
|
+
border: 1px solid rgba(135, 173, 226, 0.38);
|
|
632
|
+
border-radius: clamp(0.65rem, 0.9vw, 1rem);
|
|
633
|
+
color: #17306d;
|
|
634
|
+
background: rgba(255, 255, 255, 0.54);
|
|
635
|
+
box-shadow: inset 0 0 0.7rem rgba(255, 255, 255, 0.58);
|
|
636
|
+
font: inherit;
|
|
637
|
+
cursor: pointer;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.menu-item:hover {
|
|
641
|
+
border-color: rgba(47, 104, 217, 0.48);
|
|
642
|
+
background: rgba(245, 251, 255, 0.9);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.menu-item.is-active {
|
|
646
|
+
color: #ffffff;
|
|
647
|
+
border-color: rgba(26, 94, 232, 0.72);
|
|
648
|
+
background: linear-gradient(180deg, #2b7df1, #1157d5);
|
|
649
|
+
box-shadow:
|
|
650
|
+
0 0.4rem 1rem rgba(19, 93, 216, 0.32),
|
|
651
|
+
inset 0 0.1rem 0.8rem rgba(255, 255, 255, 0.32);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.menu-icon {
|
|
655
|
+
font-size: clamp(1.25rem, 2vw, 2rem);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.menu-label {
|
|
659
|
+
max-width: 100%;
|
|
660
|
+
overflow-wrap: anywhere;
|
|
661
|
+
font-size: clamp(0.78rem, 1vw, 1rem);
|
|
662
|
+
font-weight: 800;
|
|
663
|
+
line-height: 1.05;
|
|
664
|
+
text-align: center;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
@media (max-width: 1180px) {
|
|
537
668
|
.balance-home {
|
|
538
|
-
|
|
539
|
-
|
|
669
|
+
--edge-pad-x: clamp(0.55rem, 1.65vw, 1.35rem);
|
|
670
|
+
--edge-pad-y: clamp(0.55rem, 2vh, 1.25rem);
|
|
671
|
+
--menu-width: clamp(3.6rem, 6vw, 5rem);
|
|
540
672
|
}
|
|
541
673
|
|
|
542
|
-
.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
width: calc(100% - 32px);
|
|
546
|
-
min-height: 860px;
|
|
547
|
-
margin: 16px auto;
|
|
674
|
+
.panel-head {
|
|
675
|
+
min-height: clamp(5.1rem, 12vh, 7rem);
|
|
676
|
+
padding-inline: clamp(1rem, 2.4vw, 2rem);
|
|
548
677
|
}
|
|
549
678
|
|
|
550
679
|
.page-heading h1 {
|
|
551
|
-
font-size: clamp(
|
|
680
|
+
font-size: clamp(2rem, 3.6vw, 3.3rem);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.updated-at {
|
|
684
|
+
top: clamp(1.35rem, 4vh, 2.25rem);
|
|
685
|
+
right: clamp(1rem, 2.4vw, 2rem);
|
|
686
|
+
font-size: clamp(0.72rem, 1vw, 0.9rem);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.balance-grid {
|
|
690
|
+
padding-inline: clamp(1rem, 2.4vw, 2rem);
|
|
691
|
+
padding-bottom: clamp(0.9rem, 2.2vh, 1.5rem);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.balance-card {
|
|
695
|
+
grid-template-columns:
|
|
696
|
+
clamp(3.65rem, 6vmin, 5.3rem)
|
|
697
|
+
minmax(clamp(4.8rem, 9vw, 7.5rem), 0.45fr)
|
|
698
|
+
minmax(0, 1fr);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.menu-label {
|
|
702
|
+
font-size: clamp(0.7rem, 1.05vw, 0.85rem);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
@media (max-width: 900px), (max-aspect-ratio: 5 / 4) {
|
|
707
|
+
.balance-home {
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
--menu-width: clamp(3.35rem, 10vw, 4.6rem);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.home-layout {
|
|
713
|
+
height: calc(100vh - var(--edge-pad-y) * 2);
|
|
714
|
+
height: calc(100dvh - var(--edge-pad-y) * 2);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.balance-panel {
|
|
718
|
+
overflow-y: auto;
|
|
552
719
|
}
|
|
553
720
|
|
|
554
721
|
.updated-at {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
font-size: clamp(
|
|
722
|
+
position: static;
|
|
723
|
+
justify-content: center;
|
|
724
|
+
margin-top: clamp(0.45rem, 1vh, 0.75rem);
|
|
725
|
+
font-size: clamp(0.7rem, 1.7vw, 0.9rem);
|
|
559
726
|
}
|
|
560
727
|
|
|
561
|
-
.
|
|
562
|
-
|
|
728
|
+
.panel-head {
|
|
729
|
+
min-height: auto;
|
|
730
|
+
padding-block: clamp(0.9rem, 2.5vh, 1.35rem) clamp(0.85rem, 2vh, 1.2rem);
|
|
563
731
|
}
|
|
564
732
|
|
|
565
733
|
.balance-grid {
|
|
566
|
-
top: 18%;
|
|
567
|
-
right: 24px;
|
|
568
|
-
bottom: 30px;
|
|
569
|
-
left: 24px;
|
|
570
734
|
grid-template-columns: 1fr;
|
|
571
|
-
grid-template-rows:
|
|
572
|
-
|
|
735
|
+
grid-template-rows: none;
|
|
736
|
+
grid-auto-rows: minmax(clamp(6.5rem, 16vh, 9rem), auto);
|
|
737
|
+
gap: clamp(0.55rem, 1.4vh, 0.9rem);
|
|
738
|
+
padding-bottom: clamp(0.9rem, 2vh, 1.3rem);
|
|
573
739
|
}
|
|
574
740
|
|
|
575
741
|
.balance-card {
|
|
576
|
-
grid-template-columns:
|
|
577
|
-
|
|
578
|
-
|
|
742
|
+
grid-template-columns:
|
|
743
|
+
clamp(3.7rem, 11vw, 5rem)
|
|
744
|
+
minmax(clamp(5.4rem, 18vw, 7.5rem), 0.52fr)
|
|
745
|
+
minmax(0, 1fr);
|
|
746
|
+
padding-inline: clamp(0.65rem, 2vw, 1rem);
|
|
579
747
|
}
|
|
580
748
|
|
|
581
|
-
.
|
|
582
|
-
|
|
583
|
-
height: 82px;
|
|
749
|
+
.amount-main {
|
|
750
|
+
font-size: clamp(1.55rem, 5.3vw, 2.65rem);
|
|
584
751
|
}
|
|
585
752
|
|
|
586
|
-
.
|
|
587
|
-
|
|
588
|
-
height: 66px;
|
|
753
|
+
.amount-decimal {
|
|
754
|
+
font-size: clamp(0.8rem, 2.65vw, 1.25rem);
|
|
589
755
|
}
|
|
590
756
|
|
|
591
|
-
.
|
|
592
|
-
|
|
757
|
+
.right-menu {
|
|
758
|
+
gap: clamp(0.4rem, 1vh, 0.65rem);
|
|
759
|
+
padding-inline: clamp(0.25rem, 0.9vw, 0.45rem);
|
|
593
760
|
}
|
|
594
761
|
|
|
595
|
-
.
|
|
596
|
-
|
|
762
|
+
.menu-item {
|
|
763
|
+
padding-inline: 0.15rem;
|
|
597
764
|
}
|
|
765
|
+
}
|
|
598
766
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
767
|
+
@media (max-height: 690px) and (min-width: 901px) {
|
|
768
|
+
.balance-home {
|
|
769
|
+
--edge-pad-y: clamp(0.45rem, 1.4vh, 0.75rem);
|
|
602
770
|
}
|
|
603
771
|
|
|
604
|
-
.
|
|
605
|
-
|
|
772
|
+
.panel-head {
|
|
773
|
+
min-height: clamp(4.7rem, 12vh, 5.6rem);
|
|
774
|
+
padding-top: clamp(0.85rem, 2vh, 1.2rem);
|
|
606
775
|
}
|
|
607
776
|
|
|
608
|
-
.
|
|
609
|
-
font-size: clamp(
|
|
777
|
+
.page-heading h1 {
|
|
778
|
+
font-size: clamp(2rem, 3.35vw, 3.7rem);
|
|
610
779
|
}
|
|
611
780
|
|
|
612
|
-
.
|
|
613
|
-
margin-top:
|
|
614
|
-
font-size: clamp(16px, 3.5vw, 24px);
|
|
781
|
+
.heading-rule {
|
|
782
|
+
margin-top: 0.35rem;
|
|
615
783
|
}
|
|
616
784
|
|
|
617
|
-
.
|
|
618
|
-
|
|
785
|
+
.balance-grid {
|
|
786
|
+
gap: clamp(0.45rem, 1vh, 0.8rem) clamp(0.65rem, 1.2vw, 1.2rem);
|
|
619
787
|
}
|
|
620
788
|
}
|
|
621
789
|
</style>
|