feat: change favicon to halo logo

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/624/head
Ryan Wang 2022-09-27 17:30:14 +08:00
parent e92d102bf4
commit 2b9ddcfa56
10 changed files with 84 additions and 51 deletions

View File

@ -1,55 +1,60 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible"/> <meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="webkit" name="renderer"/> <meta content="webkit" name="renderer" />
<meta <meta
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
name="viewport" name="viewport"
/> />
<meta content="noindex,nofollow" name="robots"/> <meta content="noindex,nofollow" name="robots" />
<title>Halo</title> <title>Halo</title>
<link href="/favicon.ico" rel="icon"/> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<%- injectScript %> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<style> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
body { <link rel="manifest" href="/site.webmanifest" />
height: 100%; <meta name="msapplication-TileColor" content="#da532c" />
background-color: #f5f5f5; <meta name="theme-color" content="#ffffff" />
} <%- injectScript %>
<style>
#loader { body {
position: absolute; height: 100%;
top: 0; background-color: #f5f5f5;
right: 0;
bottom: 0;
left: 0;
margin: auto;
border: solid 3px #e5e5e5;
border-top-color: #333;
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
} }
}
</style> #loader {
</head> position: absolute;
<body> top: 0;
<noscript> right: 0;
<strong> bottom: 0;
We're sorry but halo admin client doesn't work properly without left: 0;
JavaScript enabled. Please enable it to continue. margin: auto;
</strong> border: solid 3px #e5e5e5;
</noscript> border-top-color: #333;
<div id="app"> border-radius: 50%;
<div id="loader"></div> width: 30px;
</div> height: 30px;
<script src="/src/main.ts" type="module"></script> animation: spin 0.6s linear infinite;
</body> }
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<noscript>
<strong>
We're sorry but halo admin client doesn't work properly without
JavaScript enabled. Please enable it to continue.
</strong>
</noscript>
<div id="app">
<div id="loader"></div>
</div>
<script src="/src/main.ts" type="module"></script>
</body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

9
public/browserconfig.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="./mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

BIN
public/mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

19
public/site.webmanifest Normal file
View File

@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "./android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "./android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}