aboutsummaryrefslogtreecommitdiff
path: root/ideas.html
diff options
context:
space:
mode:
Diffstat (limited to 'ideas.html')
-rw-r--r--ideas.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/ideas.html b/ideas.html
new file mode 100644
index 0000000..14e86d3
--- /dev/null
+++ b/ideas.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Ideas</title>
+ <style>
+
+.idea {
+ border: solid 2px black;
+ border-radius: 5px;
+ padding: 4px;
+ margin-bottom: 1em;
+ width: 50%;
+}
+.title {
+ margin-left: 1em;
+ margin-bottom: 0;
+ display: inline;
+}
+.rating {
+ display: inline;
+ margin-left: 1em;
+}
+.description {
+ margin-left: .5em;
+ margin-top: .5em;
+ font-family: monospace;
+ font-size: 1.25em;
+}
+.creation {
+ margin-bottom: 0;
+}
+.author {
+ font-style: italic;
+}
+.date {
+ color: #bcbcbc;
+}
+
+ </style>
+</head>
+<body>
+ <ul>
+ {{ range .Ideas }}
+ <div class="idea">
+ <h2 class="title">{{.Title}}</h2>
+ <p class="rating">{{.Rating}}/5</p>
+ <p class="description">{{.Description}}</p>
+ <p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.CreatedAt}}</span></p>
+ </div>
+ {{ end }}
+ </ul>
+ <!--template-->
+</body>
+</html>