first version

This commit is contained in:
Bastian Allgeier
2019-01-13 23:17:34 +01:00
commit 01277f79f2
595 changed files with 82913 additions and 0 deletions

51
site/templates/about.php Executable file
View File

@@ -0,0 +1,51 @@
<?php snippet('header') ?>
<main>
<header class="intro">
<h1><?= $page->title() ?></h1>
</header>
<div class="layout">
<aside>
<section>
<h2>Address</h2>
<div class="text">
<?= $page->address()->kt() ?>
</div>
</section>
<section>
<h2>Email</h2>
<div class="text">
<?= html::email($page->email()) ?>
</div>
</section>
<section>
<h2>Phone</h2>
<div class="text">
<?= html::tel($page->phone()) ?>
</div>
</section>
<section>
<h2>On the web</h2>
<div class="text">
<ul>
<?php foreach ($page->social()->toStructure() as $social): ?>
<li><?= html::a($social->url(), $social->platform()) ?></li>
<?php endforeach ?>
</ul>
</div>
</section>
</aside>
<div class="text">
<?= $page->text()->kt() ?>
</div>
</div>
</main>
<?php snippet('footer') ?>

39
site/templates/album.php Executable file
View File

@@ -0,0 +1,39 @@
<?php snippet('header') ?>
<main class="album">
<article>
<header>
<?php if ($cover = $page->cover()): ?>
<figure class="album-cover">
<?= $cover->crop(1024, 768) ?>
<figcaption>
<h1><?= $page->headline()->or($page->title()) ?></h1>
</figcaption>
</figure>
<?php endif ?>
</header>
<div class="album-text text">
<?= $page->description()->kt() ?>
<?php if ($page->tags()->isNotEmpty()): ?>
<p class="album-tags tags"><?= $page->tags() ?></p>
<?php endif ?>
</div>
<ul class="album-gallery"<?= attr(['data-even' => $gallery->isEven(), 'data-count' => $gallery->count()], ' ') ?>>
<?php foreach ($gallery as $image): ?>
<li>
<figure>
<a href="<?= $image->link()->or($image->url()) ?>">
<?= $image->crop(800, 1000) ?>
</a>
</figure>
</li>
<?php endforeach ?>
</ul>
</article>
</main>
<?php snippet('footer') ?>

12
site/templates/default.php Executable file
View File

@@ -0,0 +1,12 @@
<?php snippet('header') ?>
<main>
<header class="intro">
<h1><?= $page->title() ?></h1>
</header>
<div class="text">
<?= $page->text()->kt() ?>
</div>
</main>
<?php snippet('footer') ?>

29
site/templates/home.php Executable file
View File

@@ -0,0 +1,29 @@
<?php snippet('header') ?>
<main>
<header class="intro">
<h1><?= $site->title() ?></h1>
</header>
<ul class="grid">
<?php foreach (page('photography')->children()->listed() as $album): ?>
<li>
<a href="<?= $album->url() ?>">
<figure>
<?php if ($cover = $album->cover()): ?>
<?= $cover->resize(1024, 1024) ?>
<?php endif ?>
<figcaption>
<span>
<span class="example-name"><?= $album->title() ?></span>
</span>
</figcaption>
</figure>
</a>
</li>
<?php endforeach ?>
</ul>
</main>
<?php snippet('footer') ?>

19
site/templates/note.php Executable file
View File

@@ -0,0 +1,19 @@
<?php snippet('header') ?>
<main>
<article class="note">
<header class="note-header intro">
<h1><?= $page->title() ?></h1>
<time class="note-date"><?= $page->date()->toDate('d F Y') ?></time>
<?php if ($page->tags()->isNotEmpty()) : ?>
<p class="note-tags tags"><?= $page->tags() ?></p>
<?php endif ?>
</header>
<div class="note-text text">
<?= $page->text()->kt() ?>
</div>
</article>
</main>
<?php snippet('footer') ?>

23
site/templates/notes.php Executable file
View File

@@ -0,0 +1,23 @@
<?php snippet('header') ?>
<main>
<header class="intro">
<h1><?= $page->title() ?></h1>
</header>
<div class="notes">
<?php foreach ($page->children()->listed()->sortBy('date', 'desc') as $note): ?>
<article class="note">
<header class="note-header">
<a href="<?= $note->url() ?>">
<h2><?= $note->title() ?></h2>
<time><?= $note->date()->toDate('d F Y') ?></time>
</a>
</header>
</article>
<?php endforeach ?>
</div>
</main>
<?php snippet('footer') ?>

24
site/templates/photography.php Executable file
View File

@@ -0,0 +1,24 @@
<?php snippet('header') ?>
<main>
<header class="intro">
<h1><?= $page->title() ?></h1>
</header>
<ul class="albums"<?= attr(['data-even' => $page->children()->listed()->isEven()], ' ') ?>>
<?php foreach ($page->children()->listed() as $album): ?>
<li>
<a href="<?= $album->url() ?>">
<figure>
<?php if ($cover = $album->cover()): ?>
<?= $cover->crop(800, 1000) ?>
<?php endif ?>
<figcaption><?= $album->title() ?></figcaption>
</figure>
</a>
</li>
<?php endforeach ?>
</ul>
</main>
<?php snippet('footer') ?>