diff options
Diffstat (limited to 'templates/home.html')
| -rw-r--r-- | templates/home.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..20ef75a --- /dev/null +++ b/templates/home.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} {% block extrastyle %} +<style + type="text/css" + media="all" +> + .fullbody { + display: grid; + place-items: stretch; + grid-template-columns: repeat(2, 1fr); + padding: 20px; + gap: 20px; + .projectcard { + display: felx; + background-color: var(--overlay); + padding: 10px; + border-radius: 4px; + width: 90%; + .headlink a { + color: var(--secondary); + font-weight: bolder; + font-style: italic; + text-decoration: none; + } + .urllink a { + color: var(--blue); + text-decoration: underline; + font-style: italic; + } + .cronlink a { + color: var(--orange); + text-decoration: none; + font-weight: bolder; + } + } + } +</style> +{% endblock %} {% block content %} +<div class="fullbody"> + {% for project in projects %} + <div class="projectcard"> + <h2 class="headlink" + ><a href="/{{ project[0] }}">{{ project[1]['name'] }}</a></h2 + > + <hr style="margin: 10px 0" /> + <h4 class="urllink" + >url: + <a + href="{{ project[1]['url'] }}" + target="_blank" + >{{ project[1]['url'] }}</a + ></h4 + > + <h4 class="cronlink" + >cron: + <a + href="https://crontab.guru/#{{ project[1]['cron'] }}" + target="_blank" + >{{ project[1]['cron'] }}</a + ></h4 + > + </div> + {% endfor %} +</div> +{% endblock %} + +<!-- vim: set filetype=jinja: --> |
