init
This commit is contained in:
27
site/templates/calendar.php
Normal file
27
site/templates/calendar.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<div class="bg-white-green container" style="padding-left: 179pt; padding-bottom: 79pt">
|
||||
<h4 class="uppercase font-kobata leading-none"><?= $page->title() ?></h4>
|
||||
</div>
|
||||
|
||||
<?php $colors = [
|
||||
'bg-pink-green',
|
||||
'bg-green-white',
|
||||
'bg-white-green',
|
||||
'bg-orange-white',
|
||||
'bg-lila-pink',
|
||||
'bg-white-green',
|
||||
]; $index = 0; ?>
|
||||
|
||||
<?php foreach ($page->children()->listed() as $page): ?>
|
||||
<?php $color = $colors[$index++ % 6] ; remember($color); ?>
|
||||
<section class="container calendar-entry <?= $color ?>">
|
||||
<div><?= $page->date()->text() ?></div>
|
||||
<?php $entry = $page->page()->toPage() ?>
|
||||
<a href="<?= $entry ? $entry->url() : '' ?>" class="link">
|
||||
<?= $page->description()->text() ?>
|
||||
</a>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
9
site/templates/default.php
Normal file
9
site/templates/default.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<div class="<?= randomBg() ?> container" style="padding-left: 179pt; padding-bottom: 79pt">
|
||||
<h4 class="uppercase font-kobata leading-none"><?= $page->title() ?></h4>
|
||||
</div>
|
||||
|
||||
<?php snippet('layouts', ['layouts' => $page->layout()->toLayouts()]) ?>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
30
site/templates/home.php
Normal file
30
site/templates/home.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<style>
|
||||
#info { display: none; position: absolute; left: 498px; top: 0; bottom: 0 }
|
||||
</style>
|
||||
|
||||
<div class="container" style="padding-left: calc(498px + 22pt)">
|
||||
<button id="info_open" aria-label="Info Open" class="menu-button no-button flex font-kobata text-40 uppercase">Info</button>
|
||||
</div>
|
||||
|
||||
<div id="info" class="bg-white-green container">
|
||||
<button id="info_close" aria-label="Info Close" class="menu-button no-button flex" style="margin-top: 4px"><div style="transform: rotate(45deg); "></div><div style="transform: translate(0,-6px) rotate(135deg);"></div></button>
|
||||
<div class="text-22" style="margin-top: 34pt">
|
||||
<?= $page->text() ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script defer>
|
||||
const $info = document.getElementById('info')
|
||||
document.getElementById('info_open').addEventListener('click', () => {
|
||||
$info.classList.add('block')
|
||||
})
|
||||
document.getElementById('info_close').addEventListener('click', () => {
|
||||
$info.classList.remove('block')
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<?php snippet('footer', ['dont_show_footer' => true]) ?>
|
||||
11
site/templates/project.php
Normal file
11
site/templates/project.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<style>
|
||||
#project section.grid:first-child { padding-top: 76pt }
|
||||
</style>
|
||||
|
||||
<div id="project">
|
||||
<?php snippet('layouts', ['layouts' => $page->layout()->toLayouts()]) ?>
|
||||
</div>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
25
site/templates/projects.php
Normal file
25
site/templates/projects.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php snippet('header') ?>
|
||||
<?php /** @var Kirby\Cms\App $kirby */
|
||||
/** @var Kirby\Cms\Site $site */
|
||||
/** @var Kirby\Cms\Page $page */ ?>
|
||||
|
||||
<div class="bg-orange-white container" style="padding-left: 179pt">
|
||||
<h4 class="uppercase font-kobata leading-none"><?= $page->title() ?></h4>
|
||||
</div>
|
||||
|
||||
<div class="bg-orange-white container">
|
||||
<?php foreach ($page->children()->listed() as $project): ?>
|
||||
<a href="<?= $project->url() ?>" class="link" style="line-height: 57pt">
|
||||
<span class="font-kobata"><?= $project->start_date()->toDate('d.m.') ?>-<?= $project->end_date()->toDate('d.m.') ?></span>
|
||||
<span class="text-40 leading-none"><?= $project->title() ?></span>
|
||||
</a>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="container bg-white-lila" style="padding-left: 179pt">
|
||||
<h4 class="uppercase font-kobata leading-none">ART RESIDENCIES + INTERMISSIONS</h4>
|
||||
</div>
|
||||
|
||||
<?php snippet('layouts', ['layouts' => $page->layout()->toLayouts()]) ?>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
Reference in New Issue
Block a user