diff --git a/17-results-summary-component-go/main.go b/17-results-summary-component-go/main.go index 6e98b50..faeb693 100644 --- a/17-results-summary-component-go/main.go +++ b/17-results-summary-component-go/main.go @@ -60,7 +60,7 @@ func main() { // main page with results summary http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { templateName := "templates/summary-component.gohtml" - tmpl := template.Must(template.ParseFS(templates, templateName)) + tmpl := template.Must(template.ParseFS(templates, "templates/index.gohtml", templateName)) if err := tmpl.Execute(w, resultsData); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } diff --git a/17-results-summary-component-go/public/out.css b/17-results-summary-component-go/public/out.css index 1811410..6b43f3e 100644 --- a/17-results-summary-component-go/public/out.css +++ b/17-results-summary-component-go/public/out.css @@ -540,6 +540,10 @@ video { bottom: 0.25rem; } +.block { + display: block; +} + .flex { display: flex; } diff --git a/17-results-summary-component-go/templates/index.gohtml b/17-results-summary-component-go/templates/index.gohtml new file mode 100644 index 0000000..60a8726 --- /dev/null +++ b/17-results-summary-component-go/templates/index.gohtml @@ -0,0 +1,45 @@ + + +
+ + + + + + + +