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