mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
⚡️ 调整部分 ui
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div class="calendar-box">
|
<div class="calendar-box">
|
||||||
<div class="calendar-title">
|
<div class="calendar-title">
|
||||||
<div class="calendar-title-left">
|
<div class="calendar-title-left">
|
||||||
<v-icon size="small">mdi-calendar-clock</v-icon>
|
<v-icon size="small" style="opacity: 0.8">mdi-calendar-clock</v-icon>
|
||||||
<span>今日素材</span>
|
<span>今日素材</span>
|
||||||
<span>{{ dateNow }}</span>
|
<span>{{ dateNow }}</span>
|
||||||
<!-- 如果是某人生日,礼物图标颜色为红色 -->
|
<!-- 如果是某人生日,礼物图标颜色为红色 -->
|
||||||
|
|||||||
@@ -250,8 +250,7 @@ onUnmounted(() => {
|
|||||||
.pool-title-left img {
|
.pool-title-left img {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
border-radius: 50%;
|
filter: brightness(0.8);
|
||||||
background: var(--common-shadow-4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.pool-title-right {
|
.pool-title-right {
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="position-card-text">
|
<div class="position-card-text">
|
||||||
<v-icon>mdi-clock-outline</v-icon>
|
<v-icon>mdi-clock-outline</v-icon>
|
||||||
<span>剩余时间:</span>
|
|
||||||
<span v-if="positionTimeGet[card.postId] !== '已结束'">{{
|
<span v-if="positionTimeGet[card.postId] !== '已结束'">{{
|
||||||
positionTimeGet[card.postId]
|
positionTimeGet[card.postId]
|
||||||
}}</span>
|
}}</span>
|
||||||
@@ -130,6 +129,7 @@ onUnmounted(() => {
|
|||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
|
filter: brightness(0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
.position-grid {
|
.position-grid {
|
||||||
@@ -182,5 +182,11 @@ onUnmounted(() => {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.position-card-text :nth-child(1) {
|
||||||
|
color: var(--btn-text);
|
||||||
|
filter: brightness(0.8);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<TItemBox :model-value="box" />
|
<TItemBox :model-value="box" />
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
|
|
||||||
import TItemBox from "../main/t-itembox.vue";
|
import TItemBox from "../main/t-itembox.vue";
|
||||||
import type { TItemBoxData } from "../main/t-itembox.vue";
|
import type { TItemBoxData } from "../main/t-itembox.vue";
|
||||||
@@ -14,33 +14,48 @@ interface TibCalendarItemProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<TibCalendarItemProps>();
|
const props = defineProps<TibCalendarItemProps>();
|
||||||
const box = computed<TItemBoxData>(() => {
|
const box = ref<TItemBoxData>({
|
||||||
|
bg: "",
|
||||||
|
icon: "",
|
||||||
|
size: "100px",
|
||||||
|
height: "100px",
|
||||||
|
display: "inner",
|
||||||
|
clickable: false,
|
||||||
|
lt: "",
|
||||||
|
ltSize: "30px",
|
||||||
|
innerHeight: 25,
|
||||||
|
innerIcon: "",
|
||||||
|
innerText: "",
|
||||||
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
if (props.model === "avatar") {
|
if (props.model === "avatar") {
|
||||||
return {
|
box.value = {
|
||||||
bg: props.data.bg,
|
bg: props.data.bg,
|
||||||
icon: props.data.icon,
|
icon: props.data.icon,
|
||||||
size: "100px",
|
size: "100px",
|
||||||
height: "100px",
|
height: "100px",
|
||||||
display: "inner",
|
display: "inner",
|
||||||
clickable: props.clickable,
|
clickable: props.clickable,
|
||||||
lt: props.data.elementIcon,
|
lt: props.data.elementIcon ?? "",
|
||||||
ltSize: "30px",
|
ltSize: "30px",
|
||||||
innerHeight: 25,
|
innerHeight: 25,
|
||||||
innerIcon: props.data.weaponIcon,
|
innerIcon: props.data.weaponIcon,
|
||||||
innerText: props.data.name,
|
innerText: props.data.name,
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
box.value = {
|
||||||
|
bg: props.data.bg,
|
||||||
|
icon: props.data.icon,
|
||||||
|
size: "100px",
|
||||||
|
height: "100px",
|
||||||
|
display: "inner",
|
||||||
|
clickable: props.clickable,
|
||||||
|
lt: props.data.weaponIcon,
|
||||||
|
ltSize: "30px",
|
||||||
|
innerHeight: 25,
|
||||||
|
innerText: props.data.name,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return {
|
|
||||||
bg: props.data.bg,
|
|
||||||
icon: props.data.icon,
|
|
||||||
size: "100px",
|
|
||||||
height: "100px",
|
|
||||||
display: "inner",
|
|
||||||
clickable: props.clickable,
|
|
||||||
lt: props.data.weaponIcon,
|
|
||||||
ltSize: "30px",
|
|
||||||
innerHeight: 25,
|
|
||||||
innerText: props.data.name,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -143,10 +143,13 @@ function toDetail(item: TGApp.App.Calendar.Item): void {
|
|||||||
|
|
||||||
.toc-src-box :nth-child(2) {
|
.toc-src-box :nth-child(2) {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
border-radius: 50%;
|
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
background: var(--common-shadow-4);
|
filter: invert(87%) sepia(14%) saturate(216%) hue-rotate(180deg) brightness(81%) contrast(87%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .toc-src-box :nth-child(2) {
|
||||||
|
filter: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-src-text {
|
.toc-src-text {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<div class="version-icon-series">v{{ series.version }}</div>
|
<div class="version-icon-series">v{{ series.version }}</div>
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<v-img width="40px" style="margin-right: 10px" :src="getIcon(series.id)" />
|
<v-img class="series-icon" :src="getIcon(series.id)" />
|
||||||
</template>
|
</template>
|
||||||
<v-list-item-title :title="series.name">
|
<v-list-item-title :title="series.name">
|
||||||
{{ series.name }}
|
{{ series.name }}
|
||||||
@@ -558,6 +558,18 @@ async function getAchievements(
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.series-icon {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background:
|
||||||
|
linear-gradient(to bottom, rgb(255 255 255 / 15%) 0%, rgb(0 0 0 / 15%) 100%),
|
||||||
|
radial-gradient(at top center, rgb(255 255 255 / 40%) 0%, rgb(0 0 0 / 40%) 120%) #989898;
|
||||||
|
background-blend-mode: multiply, multiply;
|
||||||
|
}
|
||||||
|
|
||||||
.version-icon-single {
|
.version-icon-single {
|
||||||
color: var(--tgc-pink-1);
|
color: var(--tgc-pink-1);
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
|
|||||||
Reference in New Issue
Block a user