Initial public commit

This commit is contained in:
2016-08-15 18:47:13 +02:00
commit bbc99c6967
67 changed files with 1517 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
<article class="text">
<h1><?= html($page->title()) ?></h1>
<div class="contact">
<div class="contact__main">
<form class="contact__form form<?php e($form->successful(), ' form--success') ?>" action="<?= url::current() ?>" method="post">
<div class="field field--required field--small">
<label class="field__label" for="name"><?= l::get('contact.name', 'Name') ?></label>
<input class="input field__input<?php e($form->hasError('name'), ' input--invalid') ?>" type="text" name="name" id="name" value="<?php $form->echoValue('name') ?>" placeholder=" " autocomplete="name" required/>
</div>
<div class="field field--required field--small">
<label class="field__label" for="email"><?= l::get('contact.email', 'Email address') ?></label>
<input class="input field__input<?php e($form->hasError('_from'), ' input--invalid') ?>" type="email" name="_from" id="email" value="<?php $form->echoValue('_from') ?>" placeholder=" " autocomplete="email" required/>
</div>
<div class="field">
<label class="field__label" for="message"><?= l::get('contact.message', 'Message') ?></label>
<textarea class="input field__input" rows="7" name="message" id="message"><?php $form->echoValue('message') ?></textarea>
</div>
<label class="vh" for="website"><?= l::get('contact.potty', 'Please leave this field blank') ?></label>
<input class="vh" type="text" name="website" id="website" autocomplete="off"/>
<div class="form__message"><?php if($form->hasMessage() && !$form->successful()): ?><?php $form->echoMessage() ?><?php endif ?></div>
<button class="button form__submit" type="submit" name="_submit" value="<?php echo $form->token() ?>"<?php e($form->successful(), ' disabled')?>><?= l::get('contact.submit', 'Submit') ?></button>
<img class="contact__stamp" src="<?= url('assets/img/stamp.svg') ?>" alt="">
</form>
<div class="contact__thank-you">
<?php if($form->hasMessage() && $form->successful()): ?>
<?php $form->echoMessage() ?>
<?php endif ?>
</div>
</div>
<aside class="contact__sidebar">
<div class="contact__detail">
<h2 class="contact__heading"><?= l::get('contact.heading.email', 'Email') ?></h2>
<div class="contact__email"><?= qdatedHtml(true) ?> <a href="<?= url('legal') ?>#contact">?</a></div>
<small><a href="<?= url('pgp.asc') ?>" rel="pgpkey" type="application/pgp-keys">PGP: 2E2A DD32 FE50 61C1</a></small>
</div>
<div class="contact__detail">
<h2 class="contact__heading">Twitter</h2>
<?= twitter('lukasbestle') ?>
</div>
</aside>
</div>
</article>
+3
View File
@@ -0,0 +1,3 @@
<article class="text text-container">
<?= $page->text()->kirbytext() ?>
</article>
+1
View File
@@ -0,0 +1 @@
<?php pattern('codesignd/2-blocks/home-banner', ['illustration' => $page->image()->url(), 'text' => $page->text()->kt()]) ?>
+10
View File
@@ -0,0 +1,10 @@
<article class="text">
<h1><?= html($page->title()) ?></h1>
<?php foreach($page->services()->toStructure() as $service): ?>
<?php $illustration = ($illustration = $service->illustration()->toFile())? $illustration->url() : false ?>
<?php pattern('codesignd/2-blocks/service', ['illustration' => $illustration, 'title' => $service->title(), 'coloredTitle' => ($site->language()->code() === 'de'), 'text' => $service->text()->kt()]) ?>
<?php endforeach ?>
</article>
<hr>
<?php pattern('shared/2-blocks/cta', ['text' => $page->cta()->kirbytext(), 'button' => l::get('go.contact', '➪ Contact'), 'link' => url('contact')]) ?>