From b24aa6fa2c2929bede2e431b7b45261b4fc2185b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 Aug 2017 01:29:02 +0200 Subject: arrows --- index.js | 3 +++ public/assets/css.css | 33 ++++++++++++++++++++++++--------- public/assets/left.png | Bin 24757 -> 26214 bytes public/assets/right.png | Bin 24883 -> 27296 bytes templates/entry.liquid | 2 ++ 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index ea922cb..f5d787c 100644 --- a/index.js +++ b/index.js @@ -55,6 +55,9 @@ var app = okcms.createApp({ views: { '/': { template: 'index', + data: [ + {type: 'entry', query: '*'}, + ] }, '/entry/:id': { template: 'entry', diff --git a/public/assets/css.css b/public/assets/css.css index 013a0ee..d6af91e 100644 --- a/public/assets/css.css +++ b/public/assets/css.css @@ -49,7 +49,7 @@ a { padding: 20px 0; } #logos img { - max-height: 12vh; + max-height: 10vh; margin: 5px; } @@ -101,6 +101,9 @@ h2 { /* GRID OF POSTS */ +#posts { + position: relative; +} .cell { display: block; background-size: cover; @@ -128,6 +131,7 @@ h2 { /* SINGLE POST VIEW */ .media { + position: relative; width: 100%; } .media iframe { @@ -148,15 +152,18 @@ h2 { max-width: 600px; margin: 0 auto; } -.close { + +#left { position: absolute; - top: 10px; - right: 10px; - padding: 5px; - font-size: 24px; - background: white; - border: 2px solid; - cursor: pointer; + top: 0; right: 94vw; + max-width: 5vw; + height: 30vh; +} +#right { + position: absolute; + top: 0; left: 94vw; + max-width: 5vw; + height: 30vh; } /* TESTIMONIALS */ @@ -199,4 +206,12 @@ h2 { #testimonials { margin: 0; } + #left { + left: -3vw; + right: auto; + } + #right { + left: auto; + right: -3vw; + } } diff --git a/public/assets/left.png b/public/assets/left.png index 9f475db..ef675ff 100644 Binary files a/public/assets/left.png and b/public/assets/left.png differ diff --git a/public/assets/right.png b/public/assets/right.png index ee3c4a7..69dda32 100644 Binary files a/public/assets/right.png and b/public/assets/right.png differ diff --git a/templates/entry.liquid b/templates/entry.liquid index 6b1e688..f5884ae 100644 --- a/templates/entry.liquid +++ b/templates/entry.liquid @@ -39,6 +39,8 @@ {% endif %} {% endfor %} + +
{{ entry.body | newline_to_br }} -- cgit v1.2.3-70-g09d2