This commit is contained in:
NewName
2024-12-22 22:50:31 +08:00
parent 421fa36a60
commit d41f2d41c6
3 changed files with 9 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ func main() {
} }
}() }()
router.StaticFile("/", "./public/index.html") router.Static("/", "./public")
router.StaticFile("/favicon.ico", "./public/favicon.ico")
router.NoRoute(handler) router.NoRoute(handler)
err := router.Run(fmt.Sprintf("%s:%d", host, port)) err := router.Run(fmt.Sprintf("%s:%d", host, port))

1
ghproxy/public/bj.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 154 KiB

View File

@@ -30,6 +30,11 @@
body { body {
background-color: var(--color); background-color: var(--color);
background-image: url('./bj.svg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
color: var(--fontcolor); color: var(--fontcolor);
font-family: 'Misans', Arial, sans-serif; font-family: 'Misans', Arial, sans-serif;
padding: 30px; padding: 30px;
@@ -98,7 +103,7 @@
left: 0; left: 0;
right: 0; right: 0;
text-align: center; text-align: center;
font-size: 1rem; font-size: 1.2rem;
} }
pre { pre {
@@ -556,4 +561,4 @@
</script> </script>
</body> </body>
</html> </html>