Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c56437ebcc | ||
|
|
be2981c72b |
@@ -2,18 +2,46 @@
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Events nach ihrem Typ. Navigiere weiter in die Posts eines Eventtyps.</p>
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach ihrem Typ. Die Pulsbar zeigt die relative Anzahl pro Jahr. Navigiere weiter in die Posts eines Eventtyps.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<div class="flex bg-white">
|
||||
|
||||
<div class="flex">
|
||||
<div class="f1 w4 tr pr4 pt1 bg-blue white">
|
||||
{{ len .Pages }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column pl2">
|
||||
<div class=" pl2 ">
|
||||
{{ humanize .Page.Section }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class="f3 b near-black link black dim pr4 pt2 pb2">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "term-summary.html" (dict "page" .Page "param_name" "eventtypes" "param_title" .Page.Title ) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "numbered-summary.html" .Page }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -2,18 +2,47 @@
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Events nach ihrem Startort. Navigiere weiter in die Posts einer Location.</p>
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach ihrem Startort. Die Pulsbar zeigt die relative Anzahl Starts pro Jahr.
|
||||
Navigiere weiter in die Posts einer Location.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<div class="flex bg-white">
|
||||
|
||||
<div class="flex">
|
||||
<div class="f1 w4 tr pr4 pt1 bg-blue white">
|
||||
{{ len .Pages }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column pl2">
|
||||
<div class=" pl2 ">
|
||||
{{ humanize .Page.Section }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class="f3 b near-black link black dim pr4 pt2 pb2">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "term-summary.html" (dict "page" .Page "param_name" "locations" "param_title" .Page.Title ) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "numbered-summary.html" .Page }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach Teilnehmenden. Die Grafik zeigt die prozentuale Kilometerleistung pro Jahr. Navigiere weiter in die Posts eines Teilnehmenden.</p>
|
||||
<p>Events nach Teilnehmenden. Die Pulsbar zeigt die prozentuale Kilometerleistung pro Jahr. Navigiere weiter in die Posts eines Teilnehmenden.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
{{ $key := .page.Title }}
|
||||
{{ $pages := where .page.Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
{{ $count := len $pages }}
|
||||
{{ $param_name := .param_name }}
|
||||
{{ $param_title := .param_title }}
|
||||
{{ $totalWidth := 100.0 }}
|
||||
{{ $totalHeight := 50.0 }}
|
||||
{{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }}
|
||||
|
||||
{{ $color := "#a8c7f0" }}
|
||||
{{ $strokecolor := "#d3e3f8" }}
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
function onyearover(year, key, count){
|
||||
// alert( year + key + "!")
|
||||
document.getElementById( key ).innerHTML = year + ": " + count;
|
||||
}
|
||||
|
||||
function onyearout(key){
|
||||
// alert( year + key + "!")
|
||||
document.getElementById( key ).innerHTML = "";
|
||||
}
|
||||
</script>
|
||||
|
||||
<svg width="{{ $totalWidth }}%" height="{{ $totalHeight }}"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<rect height="100%" width="100%" opacity="0.1" fill="{{ $color }}"/>
|
||||
|
||||
{{ $x := 0 }}
|
||||
{{ $year := 0 }}
|
||||
{{ range sort ( $pages.GroupByDate "2006" ) "Key" }}
|
||||
|
||||
{{ $maxCount := 0 }}
|
||||
{{ $count := 0 }}
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ $maxCount = add 1 $maxCount }}
|
||||
{{ $year = dateFormat "2006" .Date }}
|
||||
{{ $isMember := false }}
|
||||
|
||||
{{ if eq (.Param $param_name ) $key }}
|
||||
{{ $isMember = true }}
|
||||
{{ $count = add 1 $count }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ $height := 0 }}
|
||||
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
|
||||
<rect onmouseover="onyearover({{ $year }}, {{ $param_title }}, {{ $count }} )" onmouseout="onyearout({{ $param_title }})" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
|
||||
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}"
|
||||
class="dim"/>
|
||||
|
||||
{{ $x = add $x $width }}
|
||||
{{ end }}
|
||||
</svg>
|
||||
+42
-12
@@ -1,19 +1,49 @@
|
||||
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Events nach Sportarten. Navigiere weiter in die Posts einer Sportart.</p>
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach Sportarten. Die Pulsbar zeigt die relative Anzahl pro Jahr. Navigiere weiter in die Posts einer Sportart.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<div class="flex bg-white">
|
||||
|
||||
<div class="flex">
|
||||
<div class="f1 w4 tr pr4 pt1 bg-blue white">
|
||||
{{ len .Pages }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column pl2">
|
||||
<div class=" pl2 ">
|
||||
{{ humanize .Page.Section }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class="f3 b near-black link black dim pr4 pt2 pb2">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "term-summary.html" (dict "page" .Page "param_name" "sports" "param_title" .Page.Title) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "numbered-summary.html" .Page }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user