From f3bf3c402a8e7b6df0c44256b55c414ef229cf87 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 19 Oct 2020 13:34:15 +0530 Subject: jp site done and set as default --- .env | 1 + main.go | 2 +- static/css/main.css | 32 ++++++++++++++++++++++++++++++++ static/main.css | 4 ---- templates/index.html | 12 ------------ templates/jp.index.html | 18 ++++++++++++++++++ templates/main.css | 3 --- 7 files changed, 52 insertions(+), 20 deletions(-) create mode 100644 .env create mode 100644 static/css/main.css delete mode 100644 static/main.css delete mode 100644 templates/index.html create mode 100644 templates/jp.index.html delete mode 100644 templates/main.css diff --git a/.env b/.env new file mode 100644 index 0000000..b1030fc --- /dev/null +++ b/.env @@ -0,0 +1 @@ +REPEAT=10 diff --git a/main.go b/main.go index d1bbdf9..d7354e3 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ func main() { router.Static("/static", "static") router.GET("/", func(c *gin.Context) { - c.HTML(http.StatusOK, "index.html", nil) + c.HTML(http.StatusOK, "jp.index.html", nil) }) router.Run(":" + port) diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..b263761 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,32 @@ +body { + background-color: #000000; +} + +#jp-body { + position: absolute; + left: 50%; top: 50%; + transform: translate(-50%, -95%); + border: 5px solid #000000; + padding: 10px; +} + + +#jp-body * { + text-align: center; + color: #ffffff; +} + +#jp-body #name { + width: 65%; + color: #ff0000; +} + +#jp-body #send { + background-color: #C0C8CA; + color: #000000; + position: absolute; + top: 100%; + left: 50%; + transform: translate(-50%, 58%); +} + diff --git a/static/main.css b/static/main.css deleted file mode 100644 index bdac772..0000000 --- a/static/main.css +++ /dev/null @@ -1,4 +0,0 @@ -h1 { - text-align: center; - align: center; -} diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 364f320..0000000 --- a/templates/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - Hell Correspondence - - - -
-

Do you wanna know what hell feels like?

-
- - diff --git a/templates/jp.index.html b/templates/jp.index.html new file mode 100644 index 0000000..520be85 --- /dev/null +++ b/templates/jp.index.html @@ -0,0 +1,18 @@ + + + + Hell Correspondence + + + + +
+

あなたの怨み、晴らします。

+ +
+ +
+ +
+ + diff --git a/templates/main.css b/templates/main.css deleted file mode 100644 index 6ff73fa..0000000 --- a/templates/main.css +++ /dev/null @@ -1,3 +0,0 @@ -h1 { - text-align: center; -} -- cgit v1.2.3