Skip to content

Commit 23dfa48

Browse files
author
Hofstetter Benjamin
committed
favicon
1 parent fe40935 commit 23dfa48

File tree

8 files changed

+34
-1
lines changed

8 files changed

+34
-1
lines changed

opendata.swiss/ui/app/app.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,18 @@ const isMobileMenuOpen = ref(false);
4242
useHead({
4343
bodyAttrs: {
4444
class: 'body--ods-brand'
45-
}
45+
},
46+
link: [
47+
{ rel: 'icon', type: 'image/png', sizes: '96x96', href: '/favicon-96x96.png' },
48+
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
49+
{ rel: 'shortcut icon', href: '/favicon.ico' },
50+
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
51+
{ rel: 'manifest', href: '/site.webmanifest' },
52+
],
53+
meta: [
54+
{ name: 'apple-mobile-web-app-title', content: 'opendata.swiss' },
55+
// you can add other default meta tags, e.g. description, viewport, etc
56+
]
4657
})
4758
4859
function mobileMenuOpened(value: boolean) {
6.93 KB
Loading
3.82 KB
Loading
10.5 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "opendata.swiss",
3+
"short_name": "opendata.swiss",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}
8.08 KB
Loading
37.8 KB
Loading

0 commit comments

Comments
 (0)