Skip to content

Commit

Permalink
Merge pull request #138 from roidelapluie/landigsemantic
Browse files Browse the repository at this point in the history
Landing page: Use HTML5 and Semantic HTML tags
  • Loading branch information
SuperQ authored Mar 8, 2023
2 parents a8a91cc + b48d77b commit 9055603
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions web/landing_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
25 changes: 14 additions & 11 deletions web/landing_page.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<!doctype html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{.Name}}</title>
<style>{{.CSS}}</style>
</head>
<body>
<nav>{{.Name}}</nav>
<div class="main">
{{if .Description}}<h3>{{.Description}}</h3>{{end}}
<header>
<h1>{{.Name}}</h1>
</header>
<main>
{{if .Description}}<h2>{{.Description}}</h2>{{end}}
{{if .Version}}<div>Version: {{.Version}}</div>{{end}}
<div><ul>
{{ range .Links }}
<li><a href="{{ .Address }}">{{.Text}}</a>{{if .Description}}: {{.Description}}{{end}}</li>
{{ end }}
<div>
<ul>
{{ range .Links }}
<li><a href="{{ .Address }}">{{.Text}}</a>{{if .Description}}: {{.Description}}{{end}}</li>
{{ end }}
</ul>
</div>
</div>
</main>
</body>
</html>

0 comments on commit 9055603

Please sign in to comment.