perf(web): add favicon, webmanifest and browserconfig
@ -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)
|
||||
|
||||
BIN
web/static/images/android-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
web/static/images/android-icon-192x192.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
web/static/images/android-icon-36x36.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
web/static/images/android-icon-48x48.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
web/static/images/android-icon-72x72.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
web/static/images/android-icon-96x96.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
web/static/images/apple-icon-114x114.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
web/static/images/apple-icon-120x120.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
web/static/images/apple-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
web/static/images/apple-icon-152x152.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
web/static/images/apple-icon-180x180.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
web/static/images/apple-icon-57x57.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
web/static/images/apple-icon-60x60.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
web/static/images/apple-icon-72x72.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
web/static/images/apple-icon-76x76.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
web/static/images/apple-icon-precomposed.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
web/static/images/apple-icon.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
web/static/images/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
web/static/images/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
web/static/images/favicon-96x96.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
web/static/images/favicon.png
Normal file
|
After Width: | Height: | Size: 651 KiB |
BIN
web/static/images/ms-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
web/static/images/ms-icon-150x150.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
web/static/images/ms-icon-310x310.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
web/static/images/ms-icon-70x70.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
11
web/static/service/browserconfig.xml
Normal 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>
|
||||
BIN
web/static/service/favicon.ico
Normal file
|
After Width: | Height: | Size: 76 KiB |
46
web/static/service/skazanull.webmanifest
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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&family=Inter:wght@400;500;600&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"/>
|
||||
|
||||