summaryrefslogtreecommitdiff
path: root/plan.html.tmpl
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-13 16:24:36 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-13 16:24:36 -0600
commitb1d829c8dd7c115779710314dbda2b034835ff1e (patch)
tree902c4f2729c53accef0b3123d913ea84d16a1279 /plan.html.tmpl
parent6adec5105142a6a746a08ad715bd5467a1a1db55 (diff)
wip
Diffstat (limited to 'plan.html.tmpl')
-rw-r--r--plan.html.tmpl63
1 files changed, 60 insertions, 3 deletions
diff --git a/plan.html.tmpl b/plan.html.tmpl
index d1d1696..70f7720 100644
--- a/plan.html.tmpl
+++ b/plan.html.tmpl
@@ -12,6 +12,9 @@
font-family: sans-serif;
}
+ * {
+ box-model: border-box;
+ }
kbd, code, samp, tt, pre {
background: #DDDDFF;
}
@@ -34,12 +37,63 @@
article {
border: solid 1px #333333;
border-radius: 1em;
- padding: 0.5em 2em;
margin: 0.5em;
}
+ div > p:first-child {
+ margin-top: 0;
+ }
+ div > p:last-child {
+ margin-bottom: 0;
+ }
+
+ /* tags */
+ article.tag {
+ padding: 0.5em 2em;
+ }
article.tag > h2 {
- margin: 0;
- margin-left: -1em;
+ margin: 0 0 0.25em -1em;
+ }
+
+ /* contribs */
+ article.contrib {
+ display: grid;
+ grid-template-columns: 25% 75%;
+ padding: 0;
+ overflow: hidden;
+ }
+ article.contrib > div {
+ padding: 0.5em;
+ }
+ article.contrib div.contrib-upstream-name {
+ grid-row: 1 / 3;
+ grid-column: 1;
+ text-align: center;
+ background-color: #DDDDFF;
+ border-right: solid 1px #8D8DA6;
+ font-weight: bold;
+ padding-top: 1em;
+ }
+ article.contrib div.contrib-upstream-desc {
+ grid-row: 3;
+ grid-column: 1;
+ background-color: #DDDDFF;
+ border-top: solid 1px #8D8DA6;
+ border-right: solid 1px #8D8DA6;
+ }
+ article.contrib div.contrib-urls {
+ grid-row: 1;
+ grid-column: 2;
+ padding-bottom: 0;
+ }
+ article.contrib div.contrib-tags {
+ grid-row: 2;
+ grid-column: 2;
+ padding-top: 0;
+ }
+ article.contrib div.contrib-desc {
+ grid-row: 3;
+ grid-column: 2;
+ border-top: solid 1px #8D8DA6;
}
</style>
</head>
@@ -57,7 +111,10 @@
<section id="contribs">
<h1>... by contributing...</h1>
{{- range $contrib := .Contributions }}
+ {{ $upstream := $contrib | getUpstream }}
<article class="contrib">
+ <div class="contrib-upstream-name"><a href="{{ index $upstream.URLs 0 }}">{{ $upstream.Name }}</a></div>
+ <div class="contrib-upstream-desc">{{ $upstream.Desc | md2html }}</div>
<div class="contrib-urls">
{{- range $url := $contrib.URLs }}
<a href="{{ $url }}"><tt>{{ $url }}</tt></a><br />