diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-06-19 14:52:19 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-06-19 14:52:19 +0200 |
commit | 3c131ac1f683f615b9d2d134681fe592e6ce5696 (patch) | |
tree | aff4aca1aba7d463b52d6e7ee6af90a00cc54c8e | |
parent | 8c6bbe3caabfef85b1e635fd90224652e0f2f5fc (diff) | |
download | www-3c131ac1f683f615b9d2d134681fe592e6ce5696.tar.gz www-3c131ac1f683f615b9d2d134681fe592e6ce5696.zip |
add timeline css; add roadmap; modify news
-rw-r--r-- | common/navigation.j2.inc | 2 | ||||
-rw-r--r-- | news/index.html.j2 | 6 | ||||
-rw-r--r-- | static/styles.css | 36 | ||||
-rw-r--r-- | template/roadmap.html.j2 | 33 |
4 files changed, 75 insertions, 2 deletions
diff --git a/common/navigation.j2.inc b/common/navigation.j2.inc index 5e288a94..983ed5fd 100644 --- a/common/navigation.j2.inc +++ b/common/navigation.j2.inc | |||
@@ -36,6 +36,8 @@ | |||
36 | <div class="collapse navbar-collapse bg-near-black" id="navbarMain"> | 36 | <div class="collapse navbar-collapse bg-near-black" id="navbarMain"> |
37 | <ul class="navbar-nav mr-auto nav"> | 37 | <ul class="navbar-nav mr-auto nav"> |
38 | <li class="nav-link"><a href="{{ url_localized('about.html') }}">{{ _("About") }}</a></li> | 38 | <li class="nav-link"><a href="{{ url_localized('about.html') }}">{{ _("About") }}</a></li> |
39 | <li class="nav-link"><a href="{{ url_localized('roadmap.html') }}">{{ _("Roadmap") }}</a></li> | ||
40 | |||
39 | <li class="nav-link"><a href="{{ url_localized('news/index.html') }}">{{ _("News") }}</a></li> | 41 | <li class="nav-link"><a href="{{ url_localized('news/index.html') }}">{{ _("News") }}</a></li> |
40 | <li class="nav-item dropdown"> | 42 | <li class="nav-item dropdown"> |
41 | <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" | 43 | <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" |
diff --git a/news/index.html.j2 b/news/index.html.j2 index bdb716d5..9d9f9ff0 100644 --- a/news/index.html.j2 +++ b/news/index.html.j2 | |||
@@ -16,11 +16,13 @@ | |||
16 | </div> | 16 | </div> |
17 | </div> | 17 | </div> |
18 | <div class="row"> | 18 | <div class="row"> |
19 | <ul class="timeline"> | ||
19 | {% for item in newsdata %} | 20 | {% for item in newsdata %} |
20 | <div class="col-lg-4"> | 21 | <li> |
21 | {{ news.newspreview(item) }} | 22 | {{ news.newspreview(item) }} |
22 | </div> | 23 | </li> |
23 | {% endfor %} | 24 | {% endfor %} |
25 | </ul> | ||
24 | </div> | 26 | </div> |
25 | </article> | 27 | </article> |
26 | </div> | 28 | </div> |
diff --git a/static/styles.css b/static/styles.css index 3806ac19..e2d4f8dc 100644 --- a/static/styles.css +++ b/static/styles.css | |||
@@ -277,6 +277,11 @@ header { | |||
277 | margin-top: 30px; | 277 | margin-top: 30px; |
278 | margin-bottom: 50px; } | 278 | margin-bottom: 50px; } |
279 | 279 | ||
280 | .timeline header { | ||
281 | text-align: left; | ||
282 | margin-bottom: 5px; | ||
283 | } | ||
284 | |||
280 | .alert { | 285 | .alert { |
281 | display: flex; | 286 | display: flex; |
282 | overflow: hidden; | 287 | overflow: hidden; |
@@ -319,3 +324,34 @@ a.subnav-anchor { | |||
319 | 324 | ||
320 | .item-date { | 325 | .item-date { |
321 | font-size: 0.9em; } | 326 | font-size: 0.9em; } |
327 | |||
328 | ul.timeline { | ||
329 | list-style-type: none; | ||
330 | position: relative; | ||
331 | } | ||
332 | ul.timeline:before { | ||
333 | content: ' '; | ||
334 | background: #d4d9df; | ||
335 | display: inline-block; | ||
336 | position: absolute; | ||
337 | left: 29px; | ||
338 | width: 2px; | ||
339 | height: 100%; | ||
340 | z-index: 400; | ||
341 | } | ||
342 | ul.timeline > li { | ||
343 | margin: 20px 0; | ||
344 | padding-left: 20px; | ||
345 | } | ||
346 | ul.timeline > li:before { | ||
347 | content: ' '; | ||
348 | background: white; | ||
349 | display: inline-block; | ||
350 | position: absolute; | ||
351 | border-radius: 50%; | ||
352 | border: 3px solid #22c0e8; | ||
353 | left: 20px; | ||
354 | width: 20px; | ||
355 | height: 20px; | ||
356 | z-index: 400; | ||
357 | } | ||
diff --git a/template/roadmap.html.j2 b/template/roadmap.html.j2 new file mode 100644 index 00000000..e9e5ca8a --- /dev/null +++ b/template/roadmap.html.j2 | |||
@@ -0,0 +1,33 @@ | |||
1 | {% extends "common/base.j2" %} | ||
2 | {% block body_content %} | ||
3 | <div class="container"> | ||
4 | <div class="row"> | ||
5 | <div class="col-lg-6"> | ||
6 | <div class="container text-center"> | ||
7 | <h1>{{ _("Roadmap") }}</h1> | ||
8 | <section> | ||
9 | <p> | ||
10 | This is our roadmap. | ||
11 | </p> | ||
12 | </section> | ||
13 | </div> | ||
14 | |||
15 | <ul class="timeline"> | ||
16 | <li> | ||
17 | <b>0.13.0</b> | ||
18 | <i>31.6.2020, 2020</i> | ||
19 | <p>This release will include...</p> | ||
20 | </li> | ||
21 | <li> | ||
22 | <b>0.14.0</b> | ||
23 | <i>2021</i> | ||
24 | <p>This release will include...</p> | ||
25 | </li> | ||
26 | </ul> | ||
27 | </div> | ||
28 | <div class="col-lg-6"> | ||
29 | </div> | ||
30 | </div> | ||
31 | </div> | ||
32 | |||
33 | {% endblock body_content %} | ||