diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:41:50 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:41:50 +0530 |
commit | 6e9091e26593a145e6350a01bad53f26acea75a1 (patch) | |
tree | 2d841fa503d20560d2f6e57a33c8ded65d817be8 /.config/startpage | |
parent | f94c1202afce479d61ff833d8cd05fe417c98288 (diff) |
pushing all the dotfiles again
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") +} |