From b48d77b8834f489498a481e0ba7833d5c719170f Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 7 Mar 2023 23:50:05 +0100 Subject: [PATCH] Landing page: Use HTML5 and Semantic HTML tags Signed-off-by: Julien Pivotto --- web/landing_page.css | 4 ++-- web/landing_page.html | 25 ++++++++++++++----------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/web/landing_page.css b/web/landing_page.css index eacbbc24..cc939eaf 100644 --- a/web/landing_page.css +++ b/web/landing_page.css @@ -2,12 +2,12 @@ body { font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji; margin: 0; } -nav { +header { background-color: {{.HeaderColor}}; color: #fff; font-size: 2rem; padding: 1rem; } -.main { +main { padding: 1rem; } diff --git a/web/landing_page.html b/web/landing_page.html index 7c5859ac..68c40170 100644 --- a/web/landing_page.html +++ b/web/landing_page.html @@ -1,21 +1,24 @@ - - + - + + {{.Name}} - -
- {{if .Description}}

{{.Description}}

{{end}} +
+

{{.Name}}

+
+
+ {{if .Description}}

{{.Description}}

{{end}} {{if .Version}}
Version: {{.Version}}
{{end}} -
    - {{ range .Links }} -
  • {{.Text}}{{if .Description}}: {{.Description}}{{end}}
  • - {{ end }} +
    +
      + {{ range .Links }} +
    • {{.Text}}{{if .Description}}: {{.Description}}{{end}}
    • + {{ end }}
    -
+