Skip to content

Commit

Permalink
feat: add manifest for add to home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Dec 18, 2023
1 parent ec84620 commit f673927
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 3 deletions.
Binary file added public/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"theme_color": "#262626",
"background_color": "#262626",
"display": "fullscreen",
"scope": "/",
"start_url": "/",
"name": "Movies",
"short_name": "Movies",
"description": "Movies",
"icons": [
{
"src": "/public/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/public/icon-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "/public/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "/public/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"screenshots": [
{
"src": "/public/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"form_factor": "narrow"
},
{
"src": "/public/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"form_factor": "wide"
}
]
}
5 changes: 3 additions & 2 deletions views/layout.templ
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ templ Layout(title string) {
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta
name="description"
content="The movies I&#39;ve watched during my lifetime."
content="The movies I've watched during my lifetime."
/>
<meta property="og:title" content="Movies"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://movies.willcodefor.beer/"/>
<meta
property="og:description"
content="The movies I&#39;ve watched during my lifetime."
content="The movies I've watched during my lifetime."
/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="@rnattochdag"/>
<meta name="twitter:creator" content="@rnattochdag"/>
<link href="/public/styles.css" rel="stylesheet"/>
<link rel="manifest" href="/public/manifest.webmanifest"/>
<script src="/public/htmx.1.9.8.min.js"></script>
<script src="/public/hyperscript.0.9.12.min.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion views/layout_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f673927

Please sign in to comment.