[SITE] home and footer finished + nav for top level
This commit is contained in:
parent
e98b1fc877
commit
74408319b5
|
@ -5,7 +5,7 @@
|
|||
"sass.enabled": true,
|
||||
"sass.options": {
|
||||
"outputDir": "../css/",
|
||||
"includePaths": [],
|
||||
"includePaths": ["../vendors/bootstrap/scss/"],
|
||||
"sourceComments": true,
|
||||
"outputStyle": "nested"
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
|||
"sass.enabled": true,
|
||||
"sass.options": {
|
||||
"outputDir": "../../css/templates",
|
||||
"includePaths": [],
|
||||
"includePaths": ["../../vendors/bootstrap/scss/"],
|
||||
"sourceComments": true,
|
||||
"outputStyle": "nested"
|
||||
}
|
||||
|
|
1557
assets/css/foundation.css
vendored
Normal file
1557
assets/css/foundation.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
BIN
assets/css/foundation.css.map
Normal file
BIN
assets/css/foundation.css.map
Normal file
Binary file not shown.
22
assets/css/templates/home.css
Normal file
22
assets/css/templates/home.css
Normal file
|
@ -0,0 +1,22 @@
|
|||
/* STYLE for jannikbeyerstedt.de
|
||||
* for specific template
|
||||
*/
|
||||
/* line 6, /Users/jannik/Sites/aquila-jannik4/assets/scss/templates/home.scss */
|
||||
main div.home {
|
||||
text-align: center;
|
||||
margin-top: 20%;
|
||||
margin-bottom: 20%; }
|
||||
/* line 10, /Users/jannik/Sites/aquila-jannik4/assets/scss/templates/home.scss */
|
||||
main div.home h1 {
|
||||
margin: 0;
|
||||
font-family: 'Alegreya Sans', "Verdana", "Arial", sans-serif;
|
||||
font-weight: 100;
|
||||
font-size: 60px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px; }
|
||||
/* line 18, /Users/jannik/Sites/aquila-jannik4/assets/scss/templates/home.scss */
|
||||
main div.home p {
|
||||
margin: 0;
|
||||
font-size: 20px; }
|
||||
|
||||
/*# sourceMappingURL=home.css.map */
|
BIN
assets/css/templates/home.css.map
Normal file
BIN
assets/css/templates/home.css.map
Normal file
Binary file not shown.
BIN
assets/images/kirbyicon.png
Normal file
BIN
assets/images/kirbyicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
10
assets/images/kirbyicon.svg
Normal file
10
assets/images/kirbyicon.svg
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 139.7 158.6" enable-background="new 0 0 139.7 158.6" xml:space="preserve">
|
||||
<path fill="#000000" d="M69.9,0L0,39.7V119l69.9,39.7l69.9-39.7V39.7L69.9,0z M101,81L81.4,91.6V93H101v15.3H38.7V93h19.6v-1.5
|
||||
L38.7,81V62l31.2,16.8L101,62V81z"/>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 626 B |
51
assets/scss/foundation.scss
vendored
Normal file
51
assets/scss/foundation.scss
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
/* STYLE for jannikbeyerstedt.de
|
||||
* used parts of bootstrap
|
||||
*/
|
||||
|
||||
// Core variables and mixins
|
||||
@import "custom";
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
|
||||
// Reset and dependencies
|
||||
//@import "normalize";
|
||||
@import "print";
|
||||
|
||||
// Core CSS
|
||||
@import "reboot"; // needed for correct grid behaviour
|
||||
@import "type";
|
||||
//@import "images";
|
||||
//@import "code";
|
||||
@import "grid";
|
||||
//@import "tables";
|
||||
//@import "forms";
|
||||
//@import "buttons";
|
||||
|
||||
// Components
|
||||
//@import "animation";
|
||||
//@import "dropdown";
|
||||
//@import "button-group";
|
||||
//@import "input-group";
|
||||
//@import "custom-forms";
|
||||
//@import "nav";
|
||||
//@import "navbar";
|
||||
//@import "card";
|
||||
//@import "breadcrumb";
|
||||
//@import "pagination";
|
||||
//@import "tags";
|
||||
//@import "jumbotron";
|
||||
//@import "alert";
|
||||
//@import "progress";
|
||||
//@import "media";
|
||||
//@import "list-group";
|
||||
//@import "responsive-embed";
|
||||
//@import "close";
|
||||
|
||||
// Components w/ JavaScript
|
||||
//@import "modal";
|
||||
//@import "tooltip";
|
||||
//@import "popover";
|
||||
//@import "carousel";
|
||||
|
||||
// Utility classes
|
||||
//@import "utilities";
|
202
assets/scss/main.scss
Normal file
202
assets/scss/main.scss
Normal file
|
@ -0,0 +1,202 @@
|
|||
/* STYLE for jannikbeyerstedt.de
|
||||
* generic styles
|
||||
*/
|
||||
@import "custom";
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
|
||||
$fontcolor: #000;
|
||||
$col_xxs_bp: 543px;
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Alegreya Sans', "Verdana", "Arial", sans-serif;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
margin-bottom: 18px;
|
||||
font-family: 'Crimson Text', serif;
|
||||
}
|
||||
h5 {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
h6 {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
p {
|
||||
margin-top: 0;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
|
||||
$header_logoHeight: 75px;
|
||||
|
||||
header {
|
||||
img {
|
||||
width: $header_logoHeight;
|
||||
height: $header_logoHeight;
|
||||
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
$nav_bgColor: #1779ff;
|
||||
$nav_textMinWidth: 80px;
|
||||
nav {
|
||||
height: $header_logoHeight;
|
||||
box-sizing: border-box;
|
||||
ul {
|
||||
margin: 0; // reset
|
||||
padding-left: 0; // reset
|
||||
background-color: $nav_bgColor;
|
||||
color: #fff;
|
||||
a {
|
||||
li {
|
||||
list-style-type: none; // reset
|
||||
}
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-up(sm) {
|
||||
nav {
|
||||
ul {
|
||||
float: right;
|
||||
a {
|
||||
text-align: center;
|
||||
float: left;
|
||||
padding-top: 45px;
|
||||
font-size: 16px;
|
||||
height: 75px;
|
||||
width: 109px;
|
||||
border-right: 1px solid #124fa2;
|
||||
}
|
||||
a:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-down(xs) {
|
||||
nav {
|
||||
min-width: 2*$nav_textMinWidth + $header_logoHeight + 40px;
|
||||
background-color: $nav_bgColor;
|
||||
ul {
|
||||
a {
|
||||
text-align: left;
|
||||
float: left;
|
||||
margin: 10px 10px 0px;
|
||||
font-size: 16px;
|
||||
width: $nav_textMinWidth;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$footer_logoHeight: 1.4rem;
|
||||
footer {
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
|
||||
background-color: #bebebe;
|
||||
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media (max-width: $col_xxs_bp) {
|
||||
text-align: center;
|
||||
p {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
i.fa {
|
||||
color: $fontcolor;
|
||||
font-size: $footer_logoHeight;
|
||||
padding-right: 0.2em;
|
||||
}
|
||||
a > svg {
|
||||
height: $footer_logoHeight;
|
||||
width: $footer_logoHeight;
|
||||
position: relative; top: 0.18rem;
|
||||
image {
|
||||
height: $footer_logoHeight;
|
||||
width: $footer_logoHeight;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* make footer sticky */
|
||||
$footer_height: 85px;
|
||||
$footer_height_xs: 162px;
|
||||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
@include media-breakpoint-up(sm) {
|
||||
body {
|
||||
/* Margin bottom by footer height */
|
||||
margin-bottom: $footer_height;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: $footer_height;
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-down(xs) {
|
||||
body {
|
||||
/* Margin bottom by footer height */
|
||||
margin-bottom: $footer_height_xs;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: $footer_height_xs;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* HELPERS
|
||||
*/
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
@media (max-width: $col_xxs_bp) {
|
||||
.col-xxs-12.right, .col-xxs-12.center {
|
||||
text-align: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
/* to break down col-xs */
|
||||
.visible-xxs {
|
||||
display: none!important;
|
||||
}
|
||||
@media (max-width: $col_xxs_bp) {
|
||||
.col-xxs-12 {
|
||||
float: none;
|
||||
width: 100%;
|
||||
|
||||
position: relative; left: 0; right: 0;
|
||||
min-height: 1px;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.hidden-xxs {
|
||||
display: none!important;
|
||||
}
|
||||
.visible-xxs {
|
||||
display: block!important;
|
||||
}
|
||||
}
|
23
assets/scss/templates/home.scss
Normal file
23
assets/scss/templates/home.scss
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* STYLE for jannikbeyerstedt.de
|
||||
* for specific template
|
||||
*/
|
||||
|
||||
main {
|
||||
div.home {
|
||||
text-align: center;
|
||||
margin-top: 20%;
|
||||
margin-bottom: 20%;
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-family: 'Alegreya Sans', "Verdana", "Arial", sans-serif;
|
||||
font-weight: 100;
|
||||
font-size: 60px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
16
site/blueprints/home.yaml
Normal file
16
site/blueprints/home.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
title: Page
|
||||
pages: true
|
||||
files: true
|
||||
fields:
|
||||
title:
|
||||
label: Title
|
||||
type: text
|
||||
hero_text:
|
||||
label: main text
|
||||
type: textarea
|
||||
subtitle:
|
||||
label: subtitle
|
||||
type: text
|
||||
text:
|
||||
label: text
|
||||
type: textarea
|
|
@ -32,15 +32,25 @@ fields:
|
|||
en: header image / logo (drag and drop)
|
||||
de: Logo für Kopf der Seite (drag and drop)
|
||||
type: image
|
||||
copyright:
|
||||
|
||||
line:
|
||||
type: line
|
||||
|
||||
footer_left:
|
||||
label:
|
||||
en: Copyright (footer)
|
||||
de: Copyright (für Footertext)
|
||||
type: text
|
||||
width: 1/2
|
||||
webdesigner:
|
||||
en: footer left
|
||||
de: Footer links
|
||||
type: textarea
|
||||
width: 1/3
|
||||
footer_center:
|
||||
label:
|
||||
en: Webdesign by (footer text right)
|
||||
de: Webdesign von (rechter Footertext)
|
||||
type: text
|
||||
width: 1/2
|
||||
en: footer center
|
||||
de: Footer Mitte
|
||||
type: textarea
|
||||
width: 1/3
|
||||
footer_right:
|
||||
label:
|
||||
en: footer right
|
||||
de: Footer rechts
|
||||
type: textarea
|
||||
width: 1/3
|
||||
|
|
|
@ -6,10 +6,27 @@
|
|||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
?>
|
||||
<footer class="section" id="footer" role="contentinfo">
|
||||
<footer class="section">
|
||||
<div class="container">
|
||||
<p id="copyright"><?php echo $site->copyright()->kirbytextRaw() ?></p>
|
||||
<p id="info"><?php echo $site->webdesigner()->kirbytextRaw() ?></p>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4 col-xxs-12">
|
||||
<?php echo $site->footer_left()->kirbytext(); ?>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-4 col-xxs-12 center">
|
||||
<?php echo $site->footer_center()->kirbytext(); ?>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-4 col-xxs-12 right">
|
||||
<a href="https://github.com/jbeyerstedt" class=""><i class="fa fa-github"></i></a>
|
||||
<i class="fa fa-html5"></i>
|
||||
<i class="fa fa-css3"></i>
|
||||
<a href="https://getkirby.com"><svg>
|
||||
<image xlink:href="<?php echo $site->url()?>/assets/images/kirbyicon.svg" src="<?php echo $site->url()?>/assets/images/kirbyicon.png"/>
|
||||
</svg></a>
|
||||
<?php echo $site->footer_right()->kirbytext(); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -6,10 +6,18 @@
|
|||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
?>
|
||||
<header class="section" id="header" role="banner">
|
||||
<header class="section">
|
||||
<div class="container">
|
||||
<a class="logo" href="<?php echo url() ?>">
|
||||
<h1 id="logo">Jannik Beyerstedt</h1>
|
||||
<img src="" alt="Logo">
|
||||
</a>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<?php foreach ($site->children()->visible() as $p) : ?>
|
||||
<a href="<?php echo $p->url()?>"><li><?php echo $p->title() ?></li></a>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
@ -25,12 +25,16 @@
|
|||
|
||||
<?php echo css('assets/vendors/font-awesome/css/font-awesome.min.css') ?>
|
||||
|
||||
<?php echo css('assets/css/foundation.css') ?>
|
||||
|
||||
<?php echo css('assets/css/main.css') ?>
|
||||
|
||||
|
||||
<?php echo css('@auto') ?>
|
||||
|
||||
<!-- Google web fonts -->
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Alegreya+Sans:400,100,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Crimson+Text:400,700' rel='stylesheet' type='text/css'>
|
||||
|
||||
|
||||
<?php if (c::get('plg_masonry.enable')) : $width = c::get('plg_masonry.width'); ?>
|
||||
<style>
|
||||
|
|
|
@ -8,12 +8,17 @@
|
|||
|
||||
snippet('base/html-head');
|
||||
snippet('base/cont-header');
|
||||
|
||||
?>
|
||||
|
||||
<h1><?php echo $page->title()->html() ?></h1>
|
||||
|
||||
<?php echo $page->text()->kirbytext() ?>
|
||||
<main class="section">
|
||||
<div class="container">
|
||||
|
||||
<h1><?php echo $page->title()->html() ?></h1>
|
||||
|
||||
<?php echo $page->text()->kirbytext(); ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php snippet('base/cont-footer') ?>
|
||||
<?php snippet('base/html-end') ?>
|
||||
|
|
27
site/templates/home.php
Normal file
27
site/templates/home.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">
|
||||
<div class="container">
|
||||
|
||||
<div class="home">
|
||||
<h1><?php echo $page->hero_text()->kirbytextRaw() ?></h1>
|
||||
<p><?php echo $page->subtitle()->kirbytextRaw() ?></p>
|
||||
</div>
|
||||
|
||||
<?php echo $page->text()->kirbytext(); ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php snippet('base/cont-footer') ?>
|
||||
<?php snippet('base/html-end') ?>
|
Loading…
Reference in a new issue