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

@@ -1,24 +1,19 @@
<script setup lang="ts">
import { Contest } from "utils/types"
import { ContestType } from "utils/constants"
import Lock from "~/shared/icons/Lock.vue"
import { Icon } from "@iconify/vue"
defineProps<{ contest: Contest }>()
</script>
<template>
<n-space>
<span>{{ contest.title }}</span>
<n-icon
size="large"
class="lockIcon"
<n-flex>
<Icon
v-if="contest.contest_type === ContestType.private"
>
<Lock />
</n-icon>
</n-space>
:height="20"
:width="20"
icon="openmoji:locked"
></Icon>
<span>{{ contest.title }}</span>
</n-flex>
</template>
<style scoped>
.lockIcon {
transform: translateY(2px);
}
</style>
<style scoped></style>