From a51f27b692ff5fb474362931d0a44558ffc3b28f Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 28 Mar 2019 22:08:56 +0100 Subject: [PATCH] docs: add home showcase --- resources/docs/showcase | 1 + resources/package.json | 2 +- resources/src/scss/styles.scss | 57 +++++++++++++++++++++++++--------- resources/theme/base.html | 2 +- resources/theme/home.html | 32 +++++++++++++++++++ 5 files changed, 77 insertions(+), 17 deletions(-) create mode 120000 resources/docs/showcase create mode 100644 resources/theme/home.html diff --git a/resources/docs/showcase b/resources/docs/showcase new file mode 120000 index 00000000..898817e6 --- /dev/null +++ b/resources/docs/showcase @@ -0,0 +1 @@ +../../app/ \ No newline at end of file diff --git a/resources/package.json b/resources/package.json index 92c846ff..2fba044f 100644 --- a/resources/package.json +++ b/resources/package.json @@ -7,7 +7,7 @@ "doc": "docs" }, "scripts": { - "build": "node scripts/build-css && mkdocs build && rsync -a site_misc/ site/" + "build": "node scripts/build-css && mkdocs build && rsync -a --copy-links site_misc/ site/" }, "author": "", "license": "ISC", diff --git a/resources/src/scss/styles.scss b/resources/src/scss/styles.scss index 2b959299..f87b318c 100644 --- a/resources/src/scss/styles.scss +++ b/resources/src/scss/styles.scss @@ -32,25 +32,52 @@ pre, code { position: relative; padding: 10em 0 8em; } -#jumbotron .bg { - position: absolute; - top:0px;left:0px;right:0px;bottom:0px; - background-size: cover; - z-index: -1; - opacity: 0.5; - /* filter: blur(5px); */ - -} - -#jumbotron-img { - /* width: 50%; */ - display: block; +#jumbotron-showcase { margin: -4em auto 1em; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.5); z-index: 1; + border-radius: 3px; + overflow: hidden; position: relative; - image-rendering: crisp-edges; - -webkit-image-rendering: crisp-edges; + + #jumbotron-img { + display: block; + z-index: 2; + position: relative; + cursor: pointer; + } + + .icon-play { + $size:80px; + position: absolute; + z-index: 3; + top:50%;left:50%; + margin-left:-$size/2; + margin-top:-$size/2; + width: $size; + height: $size; + border-bottom:$size/2 solid transparent; + border-top:$size/2 solid transparent; + border-left:$size solid #fff; + opacity: 0.75; + pointer-events: none; + } + + #showcase-frame { + z-index: 1; + opacity: 0; + position: absolute; + top: 0; left: 0; + width:100%; + height: 100%; + border: 0; + // transition: opacity 0.5s; + &.show { + z-index: 4; + opacity: 1; + } + } + } #jumbotron + #main { diff --git a/resources/theme/base.html b/resources/theme/base.html index 19187f65..cfe84835 100644 --- a/resources/theme/base.html +++ b/resources/theme/base.html @@ -105,7 +105,7 @@
{% if page.is_homepage %} - + {% include 'home.html' %} {% endif %} {% block content %} diff --git a/resources/theme/home.html b/resources/theme/home.html new file mode 100644 index 00000000..a4c43b92 --- /dev/null +++ b/resources/theme/home.html @@ -0,0 +1,32 @@ +
+ +
+ +
+