add favicons
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon-dark.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Contexted</title>
|
||||
</head>
|
||||
|
||||
BIN
public/contexted-black.ico
Normal file
BIN
public/contexted-black.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
public/contexted-blue-inverted.ico
Normal file
BIN
public/contexted-blue-inverted.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
public/contexted-blue.ico
Normal file
BIN
public/contexted-blue.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
public/contexted-white.ico
Normal file
BIN
public/contexted-white.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -4,6 +4,12 @@ import '@fortawesome/fontawesome-free/css/all.min.css'
|
||||
import App from './App.vue'
|
||||
import { setDefaultNotes } from '@/composables/useNotes'
|
||||
import { defaultNotes } from '@/utils/defaultNotes'
|
||||
import { usePreferredDark, useFavicon } from '@vueuse/core'
|
||||
|
||||
const isDark = usePreferredDark()
|
||||
const favicon = computed(() => (isDark.value ? '/contexted-white.ico' : '/contexted-black.ico'))
|
||||
useFavicon(favicon)
|
||||
|
||||
setDefaultNotes(defaultNotes)
|
||||
|
||||
createApp(App).mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user