Merge branch 'dev/net' into develop

This commit is contained in:
Net 2024-04-04 15:25:41 +07:00
commit 97c43049f2
5 changed files with 19 additions and 20 deletions

View file

@ -8,7 +8,7 @@ const props = defineProps<{
}[]; }[];
}>(); }>();
const color = ['purple', 'pink', 'yellow', 'green']; const color = ['purple', 'pink', 'yellow', 'green', 'blue'];
</script> </script>
<template> <template>
@ -22,12 +22,7 @@ const color = ['purple', 'pink', 'yellow', 'green'];
:key="v.label" :key="v.label"
class="bordered wave col-12" class="bordered wave col-12"
:class="`color-${color[i % 5]}`" :class="`color-${color[i % 5]}`"
style=" style="width: 200px; min-width: 150px; box-shadow: var(--shadow-2)"
width: 200px;
min-width: 150px;
max-height: 95px;
box-shadow: var(--shadow-2);
"
> >
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path <path
@ -36,7 +31,7 @@ const color = ['purple', 'pink', 'yellow', 'green'];
></path> ></path>
</svg> </svg>
<div class="column justify-around stat-card-comtent"> <div class="column justify-around stat-card-content">
<div class="col-4 text-h5 text-weight-bold">{{ v.amount }}</div> <div class="col-4 text-h5 text-weight-bold">{{ v.amount }}</div>
<div class="text-weight-bold">{{ v.label }}</div> <div class="text-weight-bold">{{ v.label }}</div>
</div> </div>
@ -64,13 +59,17 @@ svg {
fill-opacity: 1; fill-opacity: 1;
} }
.stat-card-comtent { .stat-card-content {
z-index: 2; z-index: 2;
color: var(--_color-stat-card); color: var(--_color-stat-card);
height: 100%; height: 100%;
width: 200px; width: 200px;
} }
.color-blue {
--_color-stat-card: var(--blue-5);
}
.color-purple { .color-purple {
--_color-stat-card: var(--purple-8); --_color-stat-card: var(--purple-8);
} }

View file

@ -70,6 +70,13 @@ defineProps<{
} }
.tooltip { .tooltip {
--_main-page-branch-tooltip: 100%;
--_bg-box-content: var(--blue-5);
--_color-box-content-text: var(--_bg-box-content);
--_bg-box-content-text: white;
--_bg-tooltip-branch: #f0f9ff;
--_bg-tooltip-branch-arrow: var(--_bg-tooltip-branch);
position: relative; position: relative;
display: inline-block; display: inline-block;

View file

@ -4,17 +4,6 @@
@import 'open-props/shadows'; @import 'open-props/shadows';
@import 'open-props/zindex'; @import 'open-props/zindex';
:root {
--_main-page-branch-tooltip: 100%;
--_bg-box-content: var(--blue-5);
--_color-box-content-text: var(--_bg-box-content);
--_bg-box-content-text: white;
--_bg-tooltip-branch: #f0f9ff;
--_bg-tooltip-branch-arrow: var(--_bg-tooltip-branch);
--_color-stat-card: var(--blue-5);
}
html { html {
--brand-1: #035aa1; --brand-1: #035aa1;
--brand-2: #f50000; --brand-2: #f50000;

View file

@ -12,6 +12,8 @@ export default {
search: 'Search', search: 'Search',
download: 'Download', download: 'Download',
save: 'Save', save: 'Save',
edit: 'Edit',
delete: 'Delete',
...drawerComponent, ...drawerComponent,
...branchMainPage, ...branchMainPage,
...main, ...main,

View file

@ -10,6 +10,8 @@ export default {
search: 'ค้นหา', search: 'ค้นหา',
download: 'ดาวน์โหลด', download: 'ดาวน์โหลด',
save: 'บันทึก', save: 'บันทึก',
edit: 'แก้ไขข้อมูล',
delete: 'ลบข้อมูล',
...drawerComponent, ...drawerComponent,
...branchMainPage, ...branchMainPage,
...main, ...main,