diff options
Diffstat (limited to 'cmd/generate/imworkingon.html.tmpl')
-rw-r--r-- | cmd/generate/imworkingon.html.tmpl | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/cmd/generate/imworkingon.html.tmpl b/cmd/generate/imworkingon.html.tmpl new file mode 100644 index 0000000..54d9431 --- /dev/null +++ b/cmd/generate/imworkingon.html.tmpl @@ -0,0 +1,134 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Luke is working on</title> + <style> + body { + width: 98%; + max-width: 1024px; + margin-left: auto; + margin-right: auto; + + font-family: sans-serif; + } + * { + box-model: border-box; + } + kbd, code, samp, tt, pre { + background: #DDDDFF; + } + kbd, code, samp, tt, { + white-space: pre-wrap; + } + h1, h2, h3, h4, h5, h6 { + font-family: sans-serif; + } + h1 { + text-align: center; + background-color: #DDDDFF; + } + a { + text-decoration: none; + } + a:hover, a:focus { + text-decoration: underline; + } + article { + border: solid 1px #333333; + border-radius: 1em; + 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 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> + <body> + <section id="tags"> + <h1>Luke is working on...</h1> + <p>... improving the GNU/Linux ecosystem.</p> + {{- range $tagName, $tagInfo := .Tags }} + <article class="tag" id="tag-{{ $tagName }}"> + <h2><a href="#tag-{{ $tagName }}">#{{ $tagName }}</a> : {{ $tagInfo.PrettyName }}</h2> + <div clasg="tag-desc">{{ $tagInfo.Desc | md2html }}</div> + </article> + {{- end }} + </section> + <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 /> + {{- end }} + </div> + <div class="contrib-tags"> + {{- range $tag := $contrib.Tags }} + <a href="#tag-{{ $tag }}">#{{ $tag }}</a> {{/* */}} + {{- end }} + </div> + <div class="contrib-submitted-at">{{ $contrib.SubmittedAt }}</div> + <div class="contrib-desc">{{ $contrib.Desc | md2html }}</div> + </article> + {{- end }} + </section> + </body> +</html> |