diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-03-21 14:35:21 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-03-21 14:35:21 +0530 |
commit | fd98b1d6671858a2a725634c82d6907ec25771ea (patch) | |
tree | 2033a7c2ab14f588d698e86d5a4b5e5f2be2c20c /.config/startpage | |
parent | 4e719d6ca4af5a7d56f37f2ec5ef5e59118b03b4 (diff) |
FINALLY THIS WORKS PROPERLY (Pushing all the dotfiles)
Diffstat (limited to '.config/startpage')
-rw-r--r-- | .config/startpage/background.jpg | bin | 0 -> 522763 bytes | |||
-rw-r--r-- | .config/startpage/index.html | 67 | ||||
-rw-r--r-- | .config/startpage/server.go | 22 |
3 files changed, 89 insertions, 0 deletions
diff --git a/.config/startpage/background.jpg b/.config/startpage/background.jpg Binary files differnew file mode 100644 index 0000000..3e8476f --- /dev/null +++ b/.config/startpage/background.jpg diff --git a/.config/startpage/index.html b/.config/startpage/index.html new file mode 100644 index 0000000..18b2dd2 --- /dev/null +++ b/.config/startpage/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> +<head> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Welcome, Vidhu Kant!</title> +</head> +<body> + <style> + body { + margin: 7px; + background-color: #111111; + background-image: url('main/background.jpg'); + background-repeat: no-repeat; + background-size: cover; + } + + .nav-container { + margin: -7px; + background-color: #3333330d; + overflow: hidden; + position: fixed; + bottom: 6px; + width: 100%; + padding: 13px 0px 22px 0px; + } + + .nav { + max-width: 96%; + margin: 3%; + padding: 12px 12px 12px 12px; + background-color: #FCFCFCdd; + border: 2px solid #232627; + border-radius: 90px 90px 90px 90px; + } + + .nav a { + color: #FFFFFF; + background-color: #5b76b7; + text-decoration: none; + padding: 8px 18px; + border-radius: 20px; + margin-right: 3px; + margin-left: 3px; + } + + </style> + <div class="clock"> + {{ .time }} + </div> + <div class="nav-container"> + <span class="nav"> + <a href="https://myanimelist.net">MyAnimeList</a> + <a href="https://old.reddit.com">Reddit</a> + <a href="https://myanimelist.net/profile/MikunoNaka">MAL Profile</a> + <a href="https://twitter.com">Twitter</a> + <a href="https://youtube.com">YouTube</a> + <a href="https://amazon.in">Amazon</a> + <a href="https://mega.nz">Mega</a> + <a href="https://nyaa.si">Nyaa</a> + <a href="https://www.youtube.com/playlist?list=PL8lRJQHQWdduy2V0DQQ4Lm0P572XJFVB9">Music</a> + <a href="https://www.youtube.com/playlist?list=PL8lRJQHQWddu55nsz8CezmJJ-GRVISZ1E">音楽</a> + <a href="http://localhost:8080">localhost</a> + <a href="https://colorpicker.me/#5B76B7">color picker</a> + </span> + </div> +</body> +</html> diff --git a/.config/startpage/server.go b/.config/startpage/server.go new file mode 100644 index 0000000..b2eef0c --- /dev/null +++ b/.config/startpage/server.go @@ -0,0 +1,22 @@ +package main + +import ( + "github.com/gin-gonic/gin" + "net/http" + "time" +) + +func main() { + router := gin.New() + router.LoadHTMLGlob("/home/zt/.config/startpage/index.html") + router.Static("main", "/home/zt/.config/startpage/") + + router.GET("/", func (c *gin.Context) { + time := time.Now().Format("15:04 02 Jan (Monday)") + c.HTML(http.StatusOK, "index.html", gin.H{ + "time": time, + }) + }) + + router.Run(":8081") +} |