index — crispy-website @ 493a0d106556e0980f94cfbf0a00069c32fa029e

My personal homepage (very crispy)

styling, bandcamp and ye
crispy-caesus 114518720+crispy-caesus@users.noreply.github.com
Fri, 02 May 2025 21:45:39 +0200
commit

493a0d106556e0980f94cfbf0a00069c32fa029e

parent

70cdad121d6a95c7e719661710fea81c3c0741af

4 files changed, 34 insertions(+), 3 deletions(-)

jump to
M sql.gosql.go

@@ -69,7 +69,7 @@ panic("couldn't open db")

} defer db.Close() - query := "SELECT SUM(price) FROM music" + query := "SELECT ROUND(SUM(price), 2) FROM music" err = db.QueryRow(query).Scan(&value) if err == sql.ErrNoRows {
A static/music.css

@@ -0,0 +1,28 @@

+body { + background-color: #1e2021; + font-family: Arial, sans-serif; + color: #c8c3bc; + line-height: 1.6; + justify-content: center; + align-items: flex-start; + min-height: 100vh; + padding: 15em; + padding-top: 2em; + padding-bottom: 2em; + font-size: 1em; +} + + ul { + list-style-type: none; + padding: 0; + } + + li { + display: flex; + align-items: center; + margin-bottom: 10px; + } + + li img { + margin-right: 10px; + }
M templates/music.htmltemplates/music.html

@@ -5,16 +5,19 @@ <head>

<meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>toothbrushing music</title> - <link rel="stylesheet" href="static/index.css" /> + <link rel="stylesheet" href="static/music.css" /> </head> <body> <h1>My bought music</h1> + <a title="Bandcamp" href="https://bandcamp.com/crispy-caesus" target="_blank" rel="noopener noreferrer"> + My Bandcamp + </a> <p>Spending so far: {{.Spending}}€</p> <ul> {{range .Releases}} <li> - <img src="{{.Note}}" alt="Album Cover" /> <br> + <img src="{{.Note}}" alt="Album Cover" width="50" /> {{.Name}} - {{.Artist}} </li> {{end}}