diff --git a/assets/css/templates/webdesign.css b/assets/css/templates/webdesign.css new file mode 100644 index 0000000..fd27935 --- /dev/null +++ b/assets/css/templates/webdesign.css @@ -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 */ \ No newline at end of file diff --git a/assets/css/templates/webdesign.css.map b/assets/css/templates/webdesign.css.map new file mode 100644 index 0000000..ffd34be Binary files /dev/null and b/assets/css/templates/webdesign.css.map differ diff --git a/assets/scss/templates/webdesign.scss b/assets/scss/templates/webdesign.scss new file mode 100644 index 0000000..d1d2ede --- /dev/null +++ b/assets/scss/templates/webdesign.scss @@ -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"; diff --git a/site/blueprints/webdesign.yaml b/site/blueprints/webdesign.yaml new file mode 100644 index 0000000..383cbcf --- /dev/null +++ b/site/blueprints/webdesign.yaml @@ -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 diff --git a/site/templates/webdesign.php b/site/templates/webdesign.php new file mode 100644 index 0000000..fc91e9a --- /dev/null +++ b/site/templates/webdesign.php @@ -0,0 +1,36 @@ +images()->find($page->featurette_img()); + +snippet('base/html-head'); +snippet('base/cont-header'); +?> + +
+
+ +
+
+

featurette_headline()->html() ?>

+

featurette_text()->kirbytextRaw() ?>

+
+
+ images()->find($page->featurette_img())) { + echo 'Portrait'; + }?> +
+
+ + text()->kirbytext(); ?> + +
+
+ + +