add libravatar/style endpoint

This commit is contained in:
Jon Lundy
2020-11-28 15:11:49 -07:00
parent b56f27dcfb
commit 616997fdc6
7 changed files with 60 additions and 22 deletions

View File

@@ -37,7 +37,6 @@ func getStyle(ctx context.Context, email string) (*Style, error) {
hash := md5.New()
email = strings.TrimSpace(strings.ToLower(email))
_, _ = hash.Write([]byte(email))
id := hash.Sum(nil)
style := &Style{}

View File

@@ -50,6 +50,7 @@ var pageTPL = `
.shade { background-color: {{index .Palette 3}}80; border-radius: .25rem;}
.lead { padding:0; margin:0; }
.scroll { height: 20em; overflow: scroll; }
@media only screen and (max-width: 991px) {
.jumbotron h1 { font-size: 2rem; }
.jumbotron .lead { font-size: 1.0rem; }