[SITE] add template, blueprint, css for project pages and projects page
This commit is contained in:
parent
573ac12fca
commit
75d1ead187
13 changed files with 548 additions and 1 deletions
27
site/templates/project.php
Normal file
27
site/templates/project.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby template FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
|
||||
snippet('base/html-head');
|
||||
snippet('base/cont-header');
|
||||
?>
|
||||
|
||||
<main class="section project">
|
||||
<div class="container">
|
||||
<h1><?php echo $page->title()->kirbytext(); ?></h1>
|
||||
<?php echo $page->text()->kirbytext(); ?>
|
||||
</div>
|
||||
|
||||
<?php echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)) ; ?>
|
||||
|
||||
<div class="container">
|
||||
<?php echo $page->text2()->kirbytext(); ?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php snippet('base/cont-footer') ?>
|
||||
<?php snippet('base/html-end') ?>
|
42
site/templates/projects.php
Normal file
42
site/templates/projects.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby template FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
|
||||
$children = $page->children();
|
||||
|
||||
snippet('base/html-head');
|
||||
snippet('base/cont-header');
|
||||
?>
|
||||
|
||||
<main class="section projects">
|
||||
<div class="container">
|
||||
<h1><?php echo $page->title()->kirbytext(); ?></h1>
|
||||
<?php echo $page->text()->kirbytext(); ?>
|
||||
</div>
|
||||
|
||||
<div class="container"><div class="row">
|
||||
<?php $i=0; foreach($children as $c) : $i++; ?>
|
||||
<div class="col-sm-6 col-lg-3"><div class="card">
|
||||
<?php if ($img = $c->images()->find($c->exrpt_img())) {
|
||||
echo thumb($img, array('width'=>400, 'class'=>"card-img-top"));
|
||||
} ?>
|
||||
<div class="card-block">
|
||||
<h5 class="card-title"><?php echo $c->title()->html(); ?></h5>
|
||||
<p class="card-text"><?php echo $c->exrpt_text()->kirbytext(); ?> </p>
|
||||
<a href="<?php echo $c->url(); ?>" class="card-link">mehr</a>
|
||||
</div>
|
||||
</div></div>
|
||||
<?php
|
||||
echo ($i%2 == 0)?'<div class="clearfix hidden-lg-up"></div>':'';
|
||||
echo ($i%4 == 0)?'<div class="clearfix hidden-md-down"></div>':''
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div></div>
|
||||
</main>
|
||||
|
||||
<?php snippet('base/cont-footer') ?>
|
||||
<?php snippet('base/html-end') ?>
|
Loading…
Add table
Add a link
Reference in a new issue