Skip to content

Commit

Permalink
Fix assets issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jan 10, 2019
1 parent 4181804 commit b1d550a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ archive:
windows: Windows
386: i386
amd64: x86_64
files:
- assets/*
- web/*
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
7 changes: 4 additions & 3 deletions internal/app/controller/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (

// Index controller
func Index(c *gin.Context) {
c.HTML(http.StatusOK, "index.tmpl", gin.H{
"title": "Beaver",
})
homeTpl := `<!doctype html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Beaver</title> <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet" type="text/css"> <style> html, body { background-color: #fff; color: #636b6f; font-family: 'Nunito', sans-serif; font-weight: 200; height: 100vh; margin: 0; } .full-height { height: 100vh; } .flex-center { align-items: center; display: flex; justify-content: center; } .position-ref { position: relative; } .top-right { position: absolute; right: 10px; top: 18px; } .content { text-align: center; } .title { font-size: 30px; } .links > a { color: #636b6f; padding: 0 25px; font-size: 12px; font-weight: 600; letter-spacing: .1rem; text-decoration: none; text-transform: uppercase; } .m-b-md { margin-bottom: 30px; } </style> </head> <body> <div class="flex-center position-ref full-height"> <div class="content"> <div class="title"> Beaver </div> <p>A Real Time Messaging Server.</p> </div> </div> </body></html>`
c.Writer.WriteHeader(http.StatusOK)
c.Writer.Write([]byte(homeTpl))
return
}

0 comments on commit b1d550a

Please sign in to comment.