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 @@ + + + + + + + + + + + Frontend Mentor | Results summary component + + + + + +
+ {{ template "results-summary-component" . }} +
+ + + diff --git a/17-results-summary-component-go/templates/summary-component.gohtml b/17-results-summary-component-go/templates/summary-component.gohtml index bbb46f5..94b79ed 100644 --- a/17-results-summary-component-go/templates/summary-component.gohtml +++ b/17-results-summary-component-go/templates/summary-component.gohtml @@ -18,7 +18,7 @@ href="static/public/images/favicon-32x32.png" /> - Frontend Mentor | Results summary component + THIS IS FILE FOR THE COMPONENT