Update unocss

This commit is contained in:
thehrz 2023-06-22 22:25:04 +08:00
parent 0275c93c6d
commit acaa38c038
No known key found for this signature in database
4 changed files with 11 additions and 11 deletions

View File

@ -11,23 +11,23 @@ const toggleLocales = () => {
<template> <template>
<nav class="text-xl m-6 flex justify-center"> <nav class="text-xl m-6 flex justify-center">
<RouterLink class="icon-btn mx-2" to="/" :title="t('button.home')"> <RouterLink class="icon-btn mx-2" to="/" :title="t('button.home')">
<div i-carbon-campsite /> <div class="i-carbon-campsite" />
</RouterLink> </RouterLink>
<button class="icon-btn mx-2 !outline-none" :title="t('button.toggle_dark')" @click="toggleDark()"> <button class="icon-btn mx-2 !outline-none" :title="t('button.toggle_dark')" @click="toggleDark()">
<div i="carbon-sun dark:carbon-moon" /> <div class="i-carbon-sun dark:i-carbon-moon" />
</button> </button>
<a class="icon-btn mx-2" :title="t('button.toggle_langs')" @click="toggleLocales()"> <a class="icon-btn mx-2" :title="t('button.toggle_langs')" @click="toggleLocales()">
<div i-carbon-language /> <div class="i-carbon-language" />
</a> </a>
<RouterLink class="icon-btn mx-2" to="/about" :title="t('button.about')"> <RouterLink class="icon-btn mx-2" to="/about" :title="t('button.about')">
<div i-carbon-dicom-overlay /> <div class="i-carbon-dicom-overlay" />
</RouterLink> </RouterLink>
<a class="icon-btn mx-2" rel="noreferrer" href="https://git.thehrz.net/thehrz/19yuke2-vue" target="_blank" title="Gitea"> <a class="icon-btn mx-2" rel="noreferrer" href="https://git.thehrz.net/thehrz/19yuke2-vue" target="_blank" title="Gitea">
<div i-simple-icons-gitea /> <div class="i-simple-icons-gitea" />
</a> </a>
</nav> </nav>
</template> </template>

View File

@ -21,15 +21,17 @@ export default {
<template> <template>
<v-app-bar :theme="isDark ? 'dark' : 'light'" class="!static"> <v-app-bar :theme="isDark ? 'dark' : 'light'" class="!static">
<v-app-bar-nav-icon /> <v-app-bar-nav-icon class="md:hidden" />
<img class="w-40px" src="/favicon.svg">
<router-link to="/"> <router-link to="/">
<v-toolbar-title c-coolgray-700 font-bold> <v-toolbar-title class="c-coolgray-700 font-bold">
合肥市南园学校19预科2班 合肥市南园学校19预科2班
</v-toolbar-title> </v-toolbar-title>
</router-link> </router-link>
<div mx-1 hidden md:block> <div class="mx-1 hidden md:block">
<v-btn v-for="(page, index) in pages" :key="index" class="m-1" :to="page.page"> <v-btn v-for="(page, index) in pages" :key="index" class="m-1" :to="page.page">
{{ page.title }} {{ page.title }}
</v-btn> </v-btn>

View File

@ -1,5 +1,5 @@
<div class="text-center"> <div class="text-center">
<div i-carbon-dicom-overlay class="text-4xl -mb-6 m-auto" /> <div class="i-carbon-dicom-overlay text-4xl -mb-6 m-auto" />
<h3>关于本站</h3> <h3>关于本站</h3>
</div> </div>

View File

@ -1,6 +1,5 @@
import { import {
defineConfig, defineConfig,
presetAttributify,
presetIcons, presetIcons,
presetTypography, presetTypography,
presetUno, presetUno,
@ -21,7 +20,6 @@ export default defineConfig({
], ],
presets: [ presets: [
presetUno(), presetUno(),
presetAttributify(),
presetIcons({ presetIcons({
scale: 1.2, scale: 1.2,
warn: true, warn: true,