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.StaticFile("/favicon.ico", "./public/favicon.ico")
router.Static("/", "./public")
router.NoRoute(handler)
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 {
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);
font-family: 'Misans', Arial, sans-serif;
padding: 30px;
@@ -98,7 +103,7 @@
left: 0;
right: 0;
text-align: center;
font-size: 1rem;
font-size: 1.2rem;
}
pre {
@@ -556,4 +561,4 @@
</script>
</body>
</html>
</html>