diff options
-rw-r--r-- | main.go | 8 | ||||
-rw-r--r-- | static/css/new.main.css | 3 | ||||
-rw-r--r-- | templates/maintain.html | 11 | ||||
-rw-r--r-- | templates/new.index.html | 10 | ||||
-rw-r--r-- | templates/redirect.index.html | 2 | ||||
-rw-r--r-- | templates/skeleton.htm | 8 |
6 files changed, 41 insertions, 1 deletions
@@ -34,5 +34,13 @@ func main() { c.HTML(http.StatusOK, "redirect.index.html", nil) }) + router.GET("/new", func(c *gin.Context) { + c.HTML(http.StatusOK, "new.index.html", nil) + }) + + router.GET("/site-down", func(c *gin.Context) { + c.HTML(http.StatusOK, "maintain.html", nil) + }) + router.Run(":" + port) } diff --git a/static/css/new.main.css b/static/css/new.main.css new file mode 100644 index 0000000..44e3bc4 --- /dev/null +++ b/static/css/new.main.css @@ -0,0 +1,3 @@ +body { + background-color: #101010; +} diff --git a/templates/maintain.html b/templates/maintain.html new file mode 100644 index 0000000..31d38fe --- /dev/null +++ b/templates/maintain.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>Site inactive</title> + </head> + <body> + <h6> + Hell girl is busy lol + </h6> + </body> +</html> diff --git a/templates/new.index.html b/templates/new.index.html new file mode 100644 index 0000000..fd1aba7 --- /dev/null +++ b/templates/new.index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <link rel="stylesheet" type="text/css" href="static/css/new.main.css"> + <title>Hell Correspondence</title> + </head> + <body> + hh + </body> +</html> diff --git a/templates/redirect.index.html b/templates/redirect.index.html index 63b279b..3efe297 100644 --- a/templates/redirect.index.html +++ b/templates/redirect.index.html @@ -3,7 +3,7 @@ <head> <script> function Redirect() { - window.location = "/en"; + window.location = "/site-down"; } setTimeout('Redirect()', 10) </script> diff --git a/templates/skeleton.htm b/templates/skeleton.htm new file mode 100644 index 0000000..3977919 --- /dev/null +++ b/templates/skeleton.htm @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> + <head> + <title></title> + </head> + <body> + </body> +</html> |