[SITE] add template, blueprint, css for webdesign page
This commit is contained in:
parent
3b5f107466
commit
477c37c713
5 changed files with 202 additions and 0 deletions
52
assets/css/templates/webdesign.css
Normal file
52
assets/css/templates/webdesign.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/* STYLE for jannikbeyerstedt.de
|
||||||
|
* for specific template
|
||||||
|
*/
|
||||||
|
main.webdesign .container {
|
||||||
|
margin-top: 30px; }
|
||||||
|
|
||||||
|
.featurette h2 {
|
||||||
|
font-family: inherit;
|
||||||
|
margin-top: 10px; }
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.featurette img {
|
||||||
|
margin-top: 50px; } }
|
||||||
|
|
||||||
|
@media (max-width: 543px) {
|
||||||
|
.featurette img {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-height: 200px; } }
|
||||||
|
|
||||||
|
.img-fluid {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto; }
|
||||||
|
|
||||||
|
.img-rounded {
|
||||||
|
border-radius: 0.3rem; }
|
||||||
|
|
||||||
|
.img-thumbnail {
|
||||||
|
padding: 0.25rem;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
transition: all 0.2s ease-in-out;
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto; }
|
||||||
|
|
||||||
|
.img-circle {
|
||||||
|
border-radius: 50%; }
|
||||||
|
|
||||||
|
.figure {
|
||||||
|
display: inline-block; }
|
||||||
|
|
||||||
|
.figure-img {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
line-height: 1; }
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
font-size: 90%;
|
||||||
|
color: #818a91; }
|
||||||
|
|
||||||
|
/*# sourceMappingURL=webdesign.css.map */
|
45
assets/css/templates/webdesign.css.map
Normal file
45
assets/css/templates/webdesign.css.map
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"file": "webdesign.css",
|
||||||
|
"sources": [
|
||||||
|
"../../scss/templates/webdesign.scss",
|
||||||
|
"../../vendors/bootstrap/scss/_custom.scss",
|
||||||
|
"../../vendors/bootstrap/scss/_variables.scss",
|
||||||
|
"../../vendors/bootstrap/scss/_mixins.scss",
|
||||||
|
"../../scss/_mainvariables.scss",
|
||||||
|
"../../vendors/bootstrap/scss/_images.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_breakpoints.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_hover.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_image.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_tag.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_reset-filter.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_resize.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_screen-reader.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_size.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_tab-focus.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_reset-text.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_text-emphasis.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_text-hide.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_text-truncate.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_alert.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_buttons.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_cards.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_pagination.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_lists.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_list-group.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_nav-divider.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_forms.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_progress.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_table-row.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_background-variant.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_border-radius.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_gradients.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_clearfix.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_grid-framework.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_grid.scss",
|
||||||
|
"../../vendors/bootstrap/scss/mixins/_pulls.scss"
|
||||||
|
],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "AAAA;;GAEG;AAeD,IAAI,AAAA,UAAU,CAAC,UAAU,CAAd;EACT,UAAU,EAAE,IAAK,GADP;;AAOZ,WAAW,CAAC,EAAE,CAAX;EACD,WAAW,EAAE,OAAQ;EACrB,UAAU,EAAE,IAAK,GAFf;;AMkCF,MAAM,EAAL,SAAS,EAAE,KAAK;EN5BjB,WAAW,CAAC,GAAG,CAAX;IACF,UAAU,EAAE,IAAK,GADd;;AM4BL,MAAM,EAAL,SAAS,EAAE,KAAK;ENvBjB,WAAW,CAAC,GAAG,CAAX;IACF,MAAM,EAAE,MAAO;IACf,UAAU,EAAE,KAAM,GAFf;;AK5BT,UAAU,CAAC;EGGT,OAAO,EADkB,KAAK;EAE9B,SAAS,EAAE,IAAK;EAChB,MAAM,EAAE,IAAK,GHLH;;AAKZ,YAAY,CAAC;EyBRT,aAAa,E5BgOQ,MAAK,GGxNhB;;AAKd,cAAc,CAAC;EACb,OAAO,EHmtBqB,OAAM;EGltBlC,gBAAgB,EHkFL,IAAI;EGjFf,MAAM,EH0EO,GAAG,CG1EgB,KAAK,CHotBT,IAAI;EGntBhC,aAAa,EH8MU,OAAM;EG7M7B,UAAU,EAAE,GAAG,CAAC,IAAG,CAAC,WAAW;EGZ/B,OAAO,EHgBY,YAAY;EGf/B,SAAS,EAAE,IAAK;EAChB,MAAM,EAAE,IAAK,GHKC;;AAahB,WAAW,CAAC;EACV,aAAa,EAAE,GAAI,GADR;;AAQb,OAAO,CAAC;EAEN,OAAO,EAAE,YAAa,GAFf;;AAKT,WAAW,CAAC;EACV,aAAa,EAAG,MAAS;EACzB,WAAW,EAAE,CAAE,GAFJ;;AAKb,eAAe,CAAC;EACd,SAAS,EH8rBgB,GAAG;EG7rB5B,KAAK,EHRqB,OAAO,GGMlB",
|
||||||
|
"names": []
|
||||||
|
}
|
46
assets/scss/templates/webdesign.scss
Normal file
46
assets/scss/templates/webdesign.scss
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
/* STYLE for jannikbeyerstedt.de
|
||||||
|
* for specific template
|
||||||
|
*/
|
||||||
|
@import "custom";
|
||||||
|
@import "variables";
|
||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@import "../mainvariables";
|
||||||
|
|
||||||
|
// change main.scss behavior
|
||||||
|
body {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// additional css
|
||||||
|
main.webdesign {
|
||||||
|
.container {
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.featurette {
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-family: inherit;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
img {
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include media-breakpoint-down(xs) {
|
||||||
|
img {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-height: 200px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// ---- from boostrap ----
|
||||||
|
@import "images";
|
23
site/blueprints/webdesign.yaml
Normal file
23
site/blueprints/webdesign.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
title: Webdesign
|
||||||
|
pages: true
|
||||||
|
|
||||||
|
files: true
|
||||||
|
|
||||||
|
fields:
|
||||||
|
title:
|
||||||
|
label: Title
|
||||||
|
type: text
|
||||||
|
featurette_headline:
|
||||||
|
label: Featurette Headline
|
||||||
|
type: text
|
||||||
|
featurette_text:
|
||||||
|
label: Featurette Text
|
||||||
|
type: textarea
|
||||||
|
width: 1/2
|
||||||
|
featurette_img:
|
||||||
|
label: Featurette Image
|
||||||
|
type: image
|
||||||
|
width: 1/2
|
||||||
|
text:
|
||||||
|
label: Text
|
||||||
|
type: textarea
|
36
site/templates/webdesign.php
Normal file
36
site/templates/webdesign.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
// -------------------------------------------
|
||||||
|
// kirby template FOR jannikbeyerstedt.de
|
||||||
|
|
||||||
|
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||||
|
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||||
|
// -------------------------------------------
|
||||||
|
|
||||||
|
$img = $page->images()->find($page->featurette_img());
|
||||||
|
|
||||||
|
snippet('base/html-head');
|
||||||
|
snippet('base/cont-header');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<main class="section webdesign">
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<div class="row featurette">
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<h2 class="featurette-heading"><?php echo $page->featurette_headline()->html() ?></h2>
|
||||||
|
<p class="lead"><?php echo $page->featurette_text()->kirbytextRaw() ?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<?php if ($img = $page->images()->find($page->featurette_img())) {
|
||||||
|
echo '<img src="'.$img->width(235)->url().'" class="img-fluid img-rounded" alt="Portrait">';
|
||||||
|
}?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php echo $page->text()->kirbytext(); ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<?php snippet('base/cont-footer') ?>
|
||||||
|
<?php snippet('base/html-end') ?>
|
Loading…
Add table
Add a link
Reference in a new issue