* @return string\r
*/\r
public function homeIntro($data) {\r
- $this->data=$data;\r
+ $this->data = $data;\r
\r
- $res='';\r
+ $res = $this->title($data['title']);\r
+ $res .= $this->markupDotclear($data['content']);\r
+ $res .= $this->linkCMS($data['button'], ['class' => 'btn', 'style' => 'background:'. $data['themecolor']]);\r
\r
return $this->_layer($res, 'intro');\r
}\r
-main>section{\r
- width: 100%;\r
- overflow: hidden;\r
+@import "000-imports";\r
+\r
+.home {\r
+ .content-wrapper {\r
+ position: relative;\r
+ background-position: bottom left;\r
+ }\r
+\r
+ .content-inner {\r
+ position: absolute;\r
+ padding: 0 5%;\r
+ top: 50%;\r
+ left: 0;\r
+ transform: translateY(-50%);\r
+ }\r
+\r
+ .dotclear {\r
+ max-width: 500px;\r
+ }\r
+\r
+ .btn {\r
+ .button();\r
+ }\r
+\r
+ section {\r
+\r
+ &.light {\r
+ color: #fff;\r
+\r
+ .title {\r
+ color: #fff;\r
+\r
+ &:after {\r
+ background-color: #fff;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Sections\r
+ &.intro {\r
+ .btn {\r
+ color: #fff;\r
+ margin-top: 30px;\r
+ }\r
+ }\r
+ }\r
}
\ No newline at end of file