Skip to content

Commit b1d550a

Browse files
committed
Fix assets issue
1 parent 4181804 commit b1d550a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.goreleaser.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ archive:
88
windows: Windows
99
386: i386
1010
amd64: x86_64
11-
files:
12-
- assets/*
13-
- web/*
1411
checksum:
1512
name_template: 'checksums.txt'
1613
snapshot:

internal/app/controller/home.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111

1212
// Index controller
1313
func Index(c *gin.Context) {
14-
c.HTML(http.StatusOK, "index.tmpl", gin.H{
15-
"title": "Beaver",
16-
})
14+
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>`
15+
c.Writer.WriteHeader(http.StatusOK)
16+
c.Writer.Write([]byte(homeTpl))
17+
return
1718
}

0 commit comments

Comments
 (0)