Skip to content

Commit

Permalink
chore(theme): add manifest changer thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jun 12, 2024
1 parent b13e41d commit 51c7fa7
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 2 deletions.
46 changes: 46 additions & 0 deletions app/static/site.black.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "DankMuzikk",
"short_name": "DankMuzikk",
"icons": [
{
"src": "/static/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/static/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"start_url": "/",
"scope": "https://dankmuzikk.com",
"display": "standalone",
"orientation": "portrait",
"description": "Create, Share and Play Music Playlists.",
"id": "com.mbaraa.dankmuzikk",
"categories": ["music"],
"shortcuts": [
{
"name": "Home",
"url": "/"
},
{
"name": "About",
"url": "/about"
},
{
"name": "Playlists",
"url": "/playlists"
}
],
"launch_handler": {
"client_mode": "auto"
},
"lang": "en",
"dir": "auto"
}
File renamed without changes.
46 changes: 46 additions & 0 deletions app/static/site.white.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "DankMuzikk",
"short_name": "DankMuzikk",
"icons": [
{
"src": "/static/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/static/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"start_url": "/",
"scope": "https://dankmuzikk.com",
"display": "standalone",
"orientation": "portrait",
"description": "Create, Share and Play Music Playlists.",
"id": "com.mbaraa.dankmuzikk",
"categories": ["music"],
"shortcuts": [
{
"name": "Home",
"url": "/"
},
{
"name": "About",
"url": "/about"
},
{
"name": "Playlists",
"url": "/playlists"
}
],
"launch_handler": {
"client_mode": "auto"
},
"lang": "en",
"dir": "auto"
}
2 changes: 1 addition & 1 deletion app/views/layouts/default.templ
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ templ Default(title string, children ...templ.Component) {
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"/>
<link rel="manifest" href="/static/site.webmanifest"/>
<link rel="manifest" href={ fmt.Sprintf("/static/site.%s.webmanifest", ctx.Value("theme-name").(string)) }/>
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#3E732C"/>
<meta name="msapplication-TileColor" content="#3E732C"/>
<meta name="theme-color" content="#3E732C"/>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/raw.templ
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ templ Raw(title string, children ...templ.Component) {
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"/>
<link rel="manifest" href="/static/site.webmanifest"/>
<link rel="manifest" href={ fmt.Sprintf("/static/site.%s.webmanifest", ctx.Value("theme-name").(string)) }/>
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#3E732C"/>
<meta name="msapplication-TileColor" content="#3E732C"/>
<meta name="theme-color" content="#3E732C"/>
Expand Down

0 comments on commit 51c7fa7

Please sign in to comment.