Initial public commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Name: <?= a::get($form, 'name') . "\n" ?>
|
||||
Email: <?= a::get($form, '_from') . "\n" ?>
|
||||
|
||||
----
|
||||
|
||||
<?= a::get($form, 'message') ?>
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
<?php pattern('shared/2-blocks/footer', ['pSite' => 'codesignd']) ?>
|
||||
<?= js('assets/js/index' . c::get('assets.suffix') . '.js') ?>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+31
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= $site->language()->code() ?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title><?= $page->title()->html() ?> ~ <?= $site->title()->html() ?></title>
|
||||
<meta name="description" content="<?= $page->description()->or($site->description()) ?>">
|
||||
|
||||
<link rel="icon" href="<?= url('assets/img/favicon-96.png') ?>" type="image/png">
|
||||
<link rel="apple-touch-icon-precomposed" href="<?= url('assets/img/favicon-152.png') ?>">
|
||||
|
||||
<?php foreach($site->languages()->filterBy('code', '!=', $site->language()->code()) as $lang): ?>
|
||||
<link rel="alternate" href="<?= $page->url($lang->code()) ?>" hreflang="<?= $lang->code() ?>">
|
||||
<?php endforeach ?>
|
||||
<link rel="pgpkey" type="application/pgp-keys" href="<?= url('pgp.asc') ?>">
|
||||
|
||||
<link rel="preload" href="<?= url('assets/fonts/input-sans-narrow-regular.woff2') ?>" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
<?php if($suffix = c::get('assets.suffix')): ?>
|
||||
<style><?= f::read('assets/css/index' . $suffix . '.css') ?></style>
|
||||
<?php else: ?>
|
||||
<?= css('assets/css/index.css') ?>
|
||||
<?php endif ?>
|
||||
</head>
|
||||
<body id="top">
|
||||
<?php pattern('shared/2-blocks/header', [
|
||||
'pSite' => 'codesignd',
|
||||
'navData' => ['languages' => $site->languages(), 'items' => $site->pages()->visible()]
|
||||
]) ?>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
pattern('shared/2-blocks/nav', [
|
||||
'wrapper' => false,
|
||||
'languages' => $site->languages(),
|
||||
'items' => $site->pages()->visible()
|
||||
]);
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<article class="text text-container">
|
||||
<?= $page->text()->kirbytext() ?>
|
||||
</article>
|
||||
@@ -0,0 +1 @@
|
||||
<?php pattern('codesignd/2-blocks/home-banner', ['illustration' => $page->image()->url(), 'text' => $page->text()->kt()]) ?>
|
||||
@@ -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')]) ?>
|
||||
Reference in New Issue
Block a user