From: stephen@cubedesigners.com Date: Tue, 26 Jul 2016 16:40:48 +0000 (+0000) Subject: WIP #489 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fca3d289a91cc7086e082848500e1b2d059e8b03;p=fluidbook-v3.git WIP #489 @1 --- diff --git a/framework/application/views/helpers/HomeIntro.php b/framework/application/views/helpers/HomeIntro.php index af06e4e..6c9f170 100644 --- a/framework/application/views/helpers/HomeIntro.php +++ b/framework/application/views/helpers/HomeIntro.php @@ -5,9 +5,11 @@ class Fluidbook_View_Helper_HomeIntro extends Fluidbook_View_Helper_HomeLayer { * @return string */ public function homeIntro($data) { - $this->data=$data; + $this->data = $data; - $res=''; + $res = $this->title($data['title']); + $res .= $this->markupDotclear($data['content']); + $res .= $this->linkCMS($data['button'], ['class' => 'btn', 'style' => 'background:'. $data['themecolor']]); return $this->_layer($res, 'intro'); } diff --git a/less/210-home.less b/less/210-home.less index 1eb1637..b33df7b 100644 --- a/less/210-home.less +++ b/less/210-home.less @@ -1,4 +1,47 @@ -main>section{ - width: 100%; - overflow: hidden; +@import "000-imports"; + +.home { + .content-wrapper { + position: relative; + background-position: bottom left; + } + + .content-inner { + position: absolute; + padding: 0 5%; + top: 50%; + left: 0; + transform: translateY(-50%); + } + + .dotclear { + max-width: 500px; + } + + .btn { + .button(); + } + + section { + + &.light { + color: #fff; + + .title { + color: #fff; + + &:after { + background-color: #fff; + } + } + } + + // Sections + &.intro { + .btn { + color: #fff; + margin-top: 30px; + } + } + } } \ No newline at end of file