2016-04-08 21:59:49 +00:00
|
|
|
<?php
|
|
|
|
// -------------------------------------------
|
|
|
|
// kirby template FOR jannikbeyerstedt.de
|
|
|
|
|
|
|
|
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
|
|
|
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
|
|
|
// -------------------------------------------
|
|
|
|
|
2022-08-10 13:17:42 +00:00
|
|
|
$img = $page->featurette_img()->toFile();
|
2016-04-08 21:59:49 +00:00
|
|
|
|
|
|
|
snippet('base/html-head');
|
|
|
|
snippet('base/cont-header');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<main class="section webdesign">
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<div class="row featurette">
|
2017-08-18 23:35:03 +00:00
|
|
|
<div class="col-sm-9 col-12">
|
2016-04-08 21:59:49 +00:00
|
|
|
<h2 class="featurette-heading"><?php echo $page->featurette_headline()->html() ?></h2>
|
2021-01-24 17:05:39 +00:00
|
|
|
<p class="lead"><?php echo $page->featurette_text()->kirbytextinline() ?></p>
|
2016-04-08 21:59:49 +00:00
|
|
|
</div>
|
2017-08-18 23:35:03 +00:00
|
|
|
<div class="col-sm-3 col-12">
|
2021-03-20 20:02:20 +00:00
|
|
|
<?php if ($img = $page->featurette_img()->toFile()) {
|
2021-01-24 17:05:39 +00:00
|
|
|
$imgurl = $img->url();
|
|
|
|
$srcset = $img->srcset([
|
|
|
|
'1x' => ['width'=>235, 'quality'=>70],
|
|
|
|
'2x' => ['width'=>235*2, 'quality'=>70]
|
|
|
|
]);
|
|
|
|
echo '<img src="'.$imgurl.'" class="img-fluid rounded" alt="Portrait" srcset="'.$srcset.'" />';
|
2016-04-08 21:59:49 +00:00
|
|
|
}?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php echo $page->text()->kirbytext(); ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<?php snippet('base/cont-footer') ?>
|
2016-10-28 21:32:29 +00:00
|
|
|
<?php snippet('base/html-end', []) ?>
|