Update index.html

This commit is contained in:
thehrz 2023-06-26 11:08:21 +08:00
parent 7a0f325071
commit f2b0431dc6
No known key found for this signature in database
GPG Key ID: 683658B4CAC43158
2 changed files with 24 additions and 26 deletions

View File

@ -1,27 +1,25 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="zh">
<head>
<head> <meta charset="UTF-8" />
<meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="apple-touch-icon" href="/pwa-192x192.png" />
<link rel="apple-touch-icon" href="/pwa-192x192.png" /> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9" /> <meta name="msapplication-TileColor" content="#00aba9" />
<meta name="msapplication-TileColor" content="#00aba9" /> <script>
<script> (function () {
(function () { const prefersDark
const prefersDark = window.matchMedia
= window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
&& window.matchMedia('(prefers-color-scheme: dark)').matches const setting = localStorage.getItem('vueuse-color-scheme') || 'auto'
const setting = localStorage.getItem('vueuse-color-scheme') || 'auto' if (setting === 'dark' || (prefersDark && setting !== 'light'))
if (setting === 'dark' || (prefersDark && setting !== 'light')) document.documentElement.classList.toggle('dark', true)
document.documentElement.classList.toggle('dark', true) })()
})() </script>
</script> </head>
</head>
<body class="font-sans">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<body class="font-sans">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html> </html>

View File

@ -2,7 +2,7 @@
useHead({ useHead({
title: '合肥市南园学校19预科2班', title: '合肥市南园学校19预科2班',
meta: [ meta: [
{ name: 'description', content: '合肥市南园学校19预科2班纪念项目' }, { name: 'description', content: '合肥市南园学校19预科2班纪念项目' },
{ {
name: 'theme-color', name: 'theme-color',
content: computed(() => isDark.value ? '#00aba9' : '#ffffff'), content: computed(() => isDark.value ? '#00aba9' : '#ffffff'),