jahresbericht2017/views/pages/en/home.php

245 lines
9.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<main class="home">
<div class="wrapper">
<section class="home-hero cp cp--nav-zone">
<div class="limit--l">
<div class="home-hero__title h--beta">
Wikimedia<br>
Deutschland<br>
Annual Report<br>
2017
</div>
<img class="home-hero__17" src="assets/img/17.png" alt="2017">
</div>
</section>
<div class="home-hero__img t--zeta">
<img class="home-hero__img--first" src="assets/img/wk_conference_colored.jpg" alt="Wikimedia Konferenz">
<figure
class="home-hero__img--second"
data-anchor-target=".home-hero__img--second"
data-0="opacity:1;"
data-500="opacity:0;"
>
<img class="home-hero__img--second" src="assets/img/wk_conference_tinted.jpg" alt="Wikimedia Konferenz">
</figure>
<p>Jason Krüger for Wikimedia Deutschland e.V.; adapted by user: David Saroyan (<a href="https://commons.wikimedia.org/wiki/File:Wikimedia_Conference_2017__Group_photo_2_(big)_with_WMCON_logo.jpg" target="new">Wikimedia Commons</a>), cropped, coloured by Atelier Disko for WMDE, <a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode" target="new"> <span style ="white-space: nowrap">CC BY-SA 4.0</span></a></p>
</div>
<section class="section cp home__intro">
<img src="assets/img/wk_conference_tinted.jpg" alt="Wikimedia Konferenz">
<div class="home__intro--layer"></div>
</section>
<div class="home__box">
<div class="limit--m h--alpha">Together we know more</div>
</div>
</div>
</section>
<section class="achievements cp--component-section loading">
<ul>
<?php foreach($achievements as $item): ?>
<li
class="achievement--store"
data-category="<?= $item['category'][$lang] ?>"
data-number="<?= $item['number'] ?>"
data-url="/<?= $lang ?><?= $item['url'] ?>"
data-postfix=""
>
<?= $item['teaser'][$lang] ?>
</li>
<?php endforeach ?>
</ul>
<div class="achievements__cube achievements__cube--mobile">
<div class="achievements__cube-side achievements__cube-side--left">
<div class="achievements__cube-side achievements__cube-side--left"></div>
</div>
<div class="achievements__cube-side achievements__cube-side--top">
<div class="achievements__cube-side achievements__cube-side--top"></div>
</div>
<div class="achievements__cube-side achievements__cube-side--right">
<div class="achievements__cube-side achievements__cube-side--right"></div>
</div>
</div>
<div class="achievements__flex-wrapper">
<div class="achievements__left">
<div class="achievement">
<div class="achievement__category t--epsilon">
<?= $achievements[0]['category'][$lang] ?>
</div>
<div class="achievement__number t--alpha" data-number="<?= $achievements[0]['number'] ?>">
<div class="achievement__number-placeholder">
<?= $formatNumber($achievements[0]['number'], $lang) ?>
</div>
<div class="achievement__number-postfix"></div>
</div>
<div class="achievement__teaser t--delta-serif"><?= $achievements[0]['teaser'][$lang] ?></div>
<a
href="<?= $url($achievements[0]['teaser'], $lang) ?>"
class="achievement__link t--zeta-emph"
>
&mdash;&nbsp;&nbsp; More on this topic
</a>
</div>
</div>
<div class="achievements__cube">
<div class="achievements__cube-side achievements__cube-side--left">
<div class="achievements__cube-side achievements__cube-side--left"></div>
</div>
<div class="achievements__cube-side achievements__cube-side--top">
<div class="achievements__cube-side achievements__cube-side--top"></div>
</div>
<div class="achievements__cube-side achievements__cube-side--right">
<div class="achievements__cube-side achievements__cube-side--right"></div>
</div>
</div>
<div class="achievements__right">
<div class="achievement">
<div class="achievement__category t--epsilon">
<?= $achievements[1]['category'][$lang] ?>
</div>
<div class="achievement__number t--alpha" data-number="<?= $achievements[1]['number'] ?>">
<div class="achievement__number-placeholder">
<?= $achievements[1]['number'] ?>
</div>
<div class="achievement__number-postfix"></div>
</div>
<div class="achievement__teaser t--delta-serif"><?= $achievements[1]['teaser'][$lang] ?></div>
<a
href="<?= $url($achievements[1]['teaser'], $lang) ?>"
class="achievement__link t--zeta-emph"
>
&mdash;&nbsp;&nbsp; More on this topic
</a>
</div>
</div>
</div>
<button class="achievements__button t--zeta-emph animation-ctl-button invis">
<div class="animation-ctl-button__symbol"></div>
Show more achievements
</button>
</section>
<section class="chart cp--component-section">
<?php
$chartValues = [
'01.01.2013' => 2618,
'03.05.2013' => 5480,
'01.09.2013' => 6931,
'01.01.2014' => 9803,
'01.05.2014' => 10796,
'01.09.2014' => 11470,
'01.01.2015' => 15778,
'01.05.2015' => 22015,
'01.09.2015' => 23879,
'01.01.2016' => 29169,
'02.05.2016' => 34304,
'22.08.2016' => 35959,
'03.01.2017' => 43138,
'20.04.2017' => 50249,
'07.09.2017' => 52710,
'03.01.2018' => 53967,
'07.03.2018' => 65374
];
echo '<script type="text/javascript">let chartValues = '.json_encode($chartValues).'</script>';
?>
<div class="limit--l">
<div class="chart__headline">
<div class="chart__headline--description t--epsilon">
March 2013 - March 2018
</div>
<h1 class="h--beta">Membership development</h1>
</div>
<div class="chart__cards-wrapper">
<div class="chart__cards chart__cards--desktop loading"></div>
<div class="chart__cards chart__cards--small loading"></div>
<div class="chart__cards chart__cards--mobile loading"></div>
</div>
<div class="chart__dates-wrapper t--epsilon">
<div class="chart__date"><div class="chart__date-line">&mdash;</div>March 2013
<div class="chart__date-value">2,618</div>
</div>
<div class="chart__date"><div class="chart__date-line">&mdash;</div>March 2014
<div class="chart__date-value">9,803</div>
</div>
<div class="chart__date"><div class="chart__date-line">&mdash;</div>March 2015
<div class="chart__date-value">15,778</div>
</div>
<div class="chart__date"><div class="chart__date-line">&mdash;</div>March 2016
<div class="chart__date-value">29,169</div>
</div>
<div class="chart__date"><div class="chart__date-line">&mdash;</div>March 2017
<div class="chart__date-value">43,138</div>
</div>
<div class="chart__date"><div class="chart__date-line">&mdash;</div>March 2018
<div class="chart__date-value">65,374</div>
</div>
</div>
</div>
<a href="https://spenden.wikimedia.de/apply-for-membership?piwik_campaign=jb2017&piwik_kwd=mitglieds_btn" target="new" class="chart__button button button--outline-white">Become a member</a>
</section>
<section class="reports loading clearfix cp--component-section loading">
<ul class="reports__data">
<?php foreach ($reports as $report) : ?>
<li class="reports--store" data-url="<?= $url("/report/{$report['name']}", $lang) ?>" data-cover="<?= $report['cover'] ?>"><?= $report['title'][$lang] ?></li>
<?php endforeach ?>
</ul>
<div class="reports__background"></div>
<div class="reports__left">
<div class="reports__canvas">
<div class="reports__cube reports__cube--1"></div>
<div class="reports__cube reports__cube--2"></div>
<div class="reports__cube reports__cube--3"></div>
</div>
</div>
<div class="reports__right">
<div class="reports__link-wrapper">
<a class="reports__link h--beta" href="">
<div class="reports__link-title">Movement Strategy</div>
<div class="reports__link-project t--zeta-emph">&mdash;&nbsp;&nbsp; More on this topic</div>
</a>
<a class="reports__link h--beta" href="">
<div class="reports__link-title">Fellow Programm</div>
<div class="reports__link-project t--zeta-emph">&mdash;&nbsp;&nbsp; More on this topic</div>
</a>
<a class="reports__link h--beta" href="">
<div class="reports__link-title">Freiwillige unterstützen</div>
<div class="reports__link-project t--zeta-emph">&mdash;&nbsp;&nbsp; More on this topic</div>
</a>
</div>
<button class="animation-ctl-button reports__button reports__button--reload t--zeta-emph invis">
<div class="animation-ctl-button__symbol"></div>
Show more topics
</button>
<a href="<?= $lang . '/report' ?>" class="animation-ctl-button reports__button reports__button--all t--zeta-emph invis">
<div class="animation-ctl-button__symbol"></div>
Show all topics
</a>
</div>
</section>
<section class="finance-banner">
<div class="limit--l cp--component-section">
<div class="home__bagels">
<figure
class="home__bagel--1"
data-anchor-target=".finance-banner"
data-bottom-top="transform:rotate(0deg);"
data-top-bottom="transform:rotate(360deg);"
>
<img src="/assets/img/start_finanzen_circle_1.png" alt="Finanzvisualisierung">
</figure>
<figure
class="home__bagel--2"
data-anchor-target=".finance-banner"
data-bottom-top="transform:rotate(360deg);"
data-top-bottom="transform:rotate(0deg);"
>
<img src="/assets/img/start_finanzen_circle_2.png" alt="Finanzvisualisierung">
</figure>
</div>
<a href="<?= $url('finance', $lang) ?>">
<p class="h--beta">Finances 2017</p>
<p class="finance-banner__button h--delta">&mdash; Go to financial section</p>
</a>
</div>
</section>
</main>