diff --git a/src/assets/index.css b/src/assets/index.css index 3d8dab21..78705dbe 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -22,13 +22,17 @@ --common-color-yellow: #fec90b; --common-color-grey: #96979a; --common-color-grey-2: #b3b3b3; + /* color white */ --tgc-white-1: #ffffff; /* normal white */ --tgc-white-2: #f0f1f6; /* Github mobile bg */ --tgc-white-3: #f6f8fa; /* Github web bg */ --tgc-white-4: #f4f6f7; /* Github web option */ - - /* color grey */ + --tgc-white-5: #eff3f6; /* Miyoushe side bar */ + --tgc-white-6: #f8f8f8; /* Miyoushe bottom bar */ + --tgc-white-7: #f0f1f5; /* Miyoushe tag */ + --tgc-white-8: #faf7e8; /* Genshin text */ + --tgc-white-9: #ece5d8; /* Genshin text */ /* color dark */ --tgc-dark-1: #000000; /* normal dark */ @@ -37,15 +41,15 @@ --tgc-dark-4: #0d1117; /* Github web bg */ --tgc-dark-5: #161b22; /* Github web list nav */ --tgc-dark-6: #21262d; /* Github web btn bg */ + --tgc-dark-7: #393b40; /* Genshin btn bg */ /* color other */ - --tgc-green-1: #238636; /* Github web btn */ --tgc-blue-1: #3572a5; /* Github web lang bar */ --tgc-blue-2: #00aeec; /* Bilibili btn bg */ + --tgc-blue-3: #4b5466; /* Genshin icon bg */ + --tgc-green-1: #238636; /* Github web btn */ --tgc-pink-1: #fb7299; /* Bilibili btn bg */ - - /* text color */ - --tgc-text-1: #faf7e8; /* Genshin color from ? */ + --tgc-yellow: #ffcd0c; /* Genshin btn bg */ } html { diff --git a/src/assets/themes/dark.css b/src/assets/themes/dark.css index ddfdae1e..a94d4d9d 100644 --- a/src/assets/themes/dark.css +++ b/src/assets/themes/dark.css @@ -14,7 +14,15 @@ html.dark { --app-side-content: var(--tgc-white-4); /* content */ - --content-box-bg-1: var(--tgc-dark-5); + --box-bg-1: var(--tgc-dark-5); + --box-bg-2: var(--tgc-dark-6); + --box-bg-3: var(--tgc-dark-7); + + /* text */ + --box-text-1: var(--tgc-white-1); + --box-text-2: var(--tgc-white-2); + --box-text-3: var(--tgc-blue-1); + --box-text-4: var(--tgc-white-8); /* box-shadow */ --common-shadow-1: rgb(255 255 255 / 10%); diff --git a/src/assets/themes/default.css b/src/assets/themes/default.css index 0fbd0f95..a2f0d892 100644 --- a/src/assets/themes/default.css +++ b/src/assets/themes/default.css @@ -8,13 +8,21 @@ /* default(light) theme */ html.default { /* app container */ - --app-page-bg: var(--tgc-white-3); + --app-page-bg: var(--tgc-white-1); --app-page-content: var(--tgc-dark-5); /* todo 这边直接反色,需要调整 */ - --app-side-bg: var(--tgc-white-4); + --app-side-bg: var(--tgc-white-5); --app-side-content: var(--tgc-dark-4); - /* content */ - --content-box-bg-1: var(--tgc-white-4); + /* box container */ + --box-bg-1: var(--tgc-white-3); + --box-bg-2: var(--tgc-white-7); + --box-bg-3: var(--tgc-white-9); + + /* box text */ + --box-text-1: var(--tgc-dark-5); + --box-text-2: var(--tgc-dark-2); + --box-text-3: var(--tgc-blue-2); + --box-text-4: var(--tgc-blue-3); /* box-shadow */ --common-shadow-1: rgb(0 0 0 / 10%); @@ -28,10 +36,6 @@ html.default { --common-shadow-t-4: rgb(255 255 255 / 40%); --common-shadow-t-8: rgb(255 255 255 / 80%); - /* box bg */ - --common-bg-1: #faf7e8; /* 一级背景色 */ - --common-bgt-1: #3d424b; /* 一级背景色对应的文本色 */ - /* button */ --common-btn-bg-1: #fec90b; /* button 背景色 */ --common-btn-bgt-1: #5b738f; /* button 背景色对应的文本色 */ diff --git a/src/components/home/t-calendar.vue b/src/components/home/t-calendar.vue index 1646035a..3b11085a 100644 --- a/src/components/home/t-calendar.vue +++ b/src/components/home/t-calendar.vue @@ -2,29 +2,44 @@
- mdi-calendar-clock + mdi-calendar-clock 今日素材 {{ dateNow }} - - - 分享 -
-
+
{{ text.text }}
+
+ + + + 分享 + +
- 角色突破 -
+ +
- 武器突破 -
+
// vue import { computed, onMounted, ref } from "vue"; -import TSubLine from "../main/t-subline.vue"; import ToCalendar from "../overlay/to-calendar.vue"; import TibCalendarItem from "../itembox/tib-calendar-item.vue"; // data @@ -73,6 +86,7 @@ const weaponCards = ref([]); // calendar item const showItem = ref(false); +const switchType = ref("avatar"); const selectedItem = ref({}); const selectedType = ref<"avatar" | "weapon">("avatar"); @@ -159,7 +173,8 @@ function getContents(day: number): void { async function share(): Promise { // todo 唤起外部 loading const div = document.querySelector(".calendar-box"); - const title = `【今日素材】${dateNow.value}-${btnNow.value}`; + const showType = switchType.value === "avatar" ? "角色" : "武器"; + const title = `【今日素材】${showType}${btnNow.value}`; await generateShareImg(title, div); } @@ -168,18 +183,18 @@ async function share(): Promise { padding: 10px; border: 1px solid var(--common-shadow-2); border-radius: 5px; - background: var(--common-shadow-t-2); + background: var(--box-bg-1); + display: flex; + flex-direction: column; + gap: 5px; } .calendar-title { display: flex; align-items: center; - justify-content: start; - padding-bottom: 5px; - color: var(--common-text-title); - column-gap: 2rem; font-family: var(--font-title); font-size: 20px; + justify-content: space-between; } .calendar-title-left { @@ -189,29 +204,38 @@ async function share(): Promise { column-gap: 10px; } -.calendar-title-btn { - border-radius: 5px; - color: var(--common-text-content); - cursor: pointer; +.calendar-title-mid { + display: flex; + align-items: center; + justify-content: start; + column-gap: 15px; } .calendar-title-right { display: flex; align-items: center; justify-content: start; - column-gap: 15px; + gap: 15px; } -.calendar-btn { - border-radius: 5px; - background: var(--common-bg-1); - color: var(--common-bgt-1); +.calendar-title-switch { + height: 36px; + display: flex; + align-items: center; + justify-content: center; + color: var(--box-text-3); } -.calendar-btn-selected { +.calendar-title-btn { border-radius: 5px; - background: var(--common-btn-bg-1); - color: var(--common-btn-bgt-1); + color: var(--box-text-3); + border: 1px solid var(--box-text-3); + cursor: pointer; +} + +.calendar-divider { + margin: 10px 0; + opacity: 0.2; } .calendar-grid { diff --git a/src/components/home/t-pool.vue b/src/components/home/t-pool.vue index e5267a49..c9239b1d 100644 --- a/src/components/home/t-pool.vue +++ b/src/components/home/t-pool.vue @@ -201,6 +201,7 @@ onUnmounted(() => { flex-direction: column; padding: 10px; border: 1px solid var(--common-shadow-2); + background: var(--box-bg-1); border-radius: 5px; gap: 10px; } @@ -232,7 +233,7 @@ onUnmounted(() => { overflow: hidden; width: 50%; border-radius: 5px; - box-shadow: 0 0 5px var(--common-shadow-4); + box-shadow: 0 5px 5px var(--common-shadow-4); } .pool-cover { @@ -310,7 +311,7 @@ onUnmounted(() => { align-items: flex-start; justify-content: flex-start; margin-right: 10px; - color: var(--tgc-text-1); + color: var(--tgc-white-1); font-size: 12px; gap: 10px; text-align: left; diff --git a/src/components/home/t-position.vue b/src/components/home/t-position.vue index 073b053a..cc31a5f9 100644 --- a/src/components/home/t-position.vue +++ b/src/components/home/t-position.vue @@ -5,7 +5,8 @@ 近期活动
- + + - +
mdi-calendar-clock - {{ card.time.start }} ~ {{ card.time.end }} + {{ card.time.start }}~{{ card.time.end }}
mdi-clock-outline 剩余时间: - - {{ + {{ positionTimeGet[card.postId] }} - - 已结束 + 已结束
@@ -128,6 +125,7 @@ onUnmounted(() => { .position-box { padding: 10px; border: 1px solid var(--common-shadow-2); + background: var(--box-bg-1); border-radius: 5px; } @@ -154,8 +152,8 @@ onUnmounted(() => { .position-card { border-radius: 5px; - background: var(--content-box-bg-1); - color: var(--common-bgt-1); + background: var(--box-bg-2); + border: 1px solid var(--common-shadow-2); } .position-list { @@ -176,21 +174,22 @@ onUnmounted(() => { width: 100%; height: 100%; object-fit: cover; - transition: all 0.3s; + transition: all 0.5s; } .position-icon :hover { cursor: pointer; - scale: 1.5; + scale: 1.2; +} + +.position-card-btn { + border-radius: 5px; + border: 1px solid var(--common-shadow-4); } .position-card-text { display: inline-block; min-width: 200px; - align-items: center; -} - -.position-card-text :nth-child(1) { - margin: 0 5px; + align-items: flex-start; }