perf(web): add favicon, webmanifest and browserconfig

This commit is contained in:
Masahiko AMANO 2025-01-07 13:27:14 +03:00
parent 14a7104c5f
commit ffc249a9f8
30 changed files with 77 additions and 0 deletions

View File

@ -18,6 +18,9 @@ func Serve(addr string) {
r.LoadHTMLGlob("templates/*.html")
r.Static("/favicon.ico", "./static/service/favicon.ico")
r.Static("/skazanull.webmanifest", "./static/service/skazanull.webmanifest")
r.Static("/browserconfig.xml", "./static/service/browserconfig.xml")
r.Static("/static", "./static")
r.GET("/", api.MiddlewareAuth, root)
r.GET("/quotes", api.MiddlewareAuth, middlewareAuth, quotes)

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/ms-icon-70x70.png" />
<square150x150logo src="/ms-icon-150x150.png" />
<square310x310logo src="/ms-icon-310x310.png" />
<TileColor>#8B6D5C</TileColor>
</tile>
</msapplication>
</browserconfig>

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,46 @@
{
"name": "SkazaNull",
"lang": "ru-RU",
"start_url": "/",
"scope": "/",
"display": "standalone",
"theme_color": "#8B6D5C",
"icons": [
{
"src": "/static/images/android-icon-36x36.png",
"sizes": "36x36",
"type": "image/png",
"density": "0.75"
},
{
"src": "/static/images/android-icon-48x48.png",
"sizes": "48x48",
"type": "image/png",
"density": "1.0"
},
{
"src": "/static/images/android-icon-72x72.png",
"sizes": "72x72",
"type": "image/png",
"density": "1.5"
},
{
"src": "/static/images/android-icon-96x96.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.0"
},
{
"src": "/static/images/android-icon-144x144.png",
"sizes": "144x144",
"type": "image/png",
"density": "3.0"
},
{
"src": "/static/images/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
}
]
}

View File

@ -1,6 +1,23 @@
{{ define "head" }}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="57x57" href="/static/images/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/static/images/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/static/images/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/static/images/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/static/images/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/static/images/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/static/images/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/static/images/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/static/images/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/static/images/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png">
<link rel="manifest" href="/skazanull.webmanifest">
<meta name="msapplication-TileColor" content="#8B6D5C">
<meta name="msapplication-TileImage" content="/static/images/ms-icon-144x144.png">
<meta name="theme-color" content="#8B6D5C">
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&amp;family=Inter:wght@400;500;600&amp;display=swap" rel="stylesheet" />
<link href="/static/css/font-awesome.6.4.0.min.css" rel="stylesheet"/>
<link href="/static/css/tailwind-custom.css" rel="stylesheet"/>