refactor icons

This commit is contained in:
2024-06-26 16:32:59 +00:00
parent 027dd332e1
commit afa36e9f08
32 changed files with 128 additions and 460 deletions

View File

@@ -4,7 +4,7 @@ import { isDesktop } from "~/shared/composables/breakpoints"
import { useContestStore } from "../store/contest"
import ContestInfo from "./components/ContestInfo.vue"
import ContestMenu from "./components/ContestMenu.vue"
import Lock from "~/shared/icons/Lock.vue"
import { Icon } from "@iconify/vue"
const props = defineProps<{
contestID: string
@@ -33,10 +33,13 @@ const passwordFormVisible = computed(
<n-space vertical size="large" v-if="contestStore.contest">
<n-space align="center" justify="space-between">
<n-space align="center">
<Icon
v-if="contestStore.isPrivate"
icon="openmoji:locked"
:width="30"
:height="30"
></Icon>
<h2 class="contestTitle">{{ contestStore.contest.title }}</h2>
<n-icon size="large" v-if="contestStore.isPrivate" class="lockIcon">
<Lock />
</n-icon>
<n-tag
size="small"
:type="CONTEST_STATUS[contestStore.contestStatus]['type']"
@@ -79,7 +82,4 @@ const passwordFormVisible = computed(
font-weight: 500;
margin: 0;
}
.lockIcon {
transform: translateY(2px);
}
</style>