]> _ Git - fluidbook-v3.git/commitdiff
WIP #491 @0.75
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 27 Jul 2016 15:04:45 +0000 (15:04 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 27 Jul 2016 15:04:45 +0000 (15:04 +0000)
framework/application/views/helpers/HomeCustomers.php
framework/application/views/helpers/LinkQuote.php
less/213-home-customers.less [new file with mode: 0644]

index 2795a0c4d74130a352e1c6719747e2bc6fb4134b..4df857f6c2c6b0a86c8ee2c249c4c1039974c6cd 100644 (file)
@@ -6,9 +6,18 @@ class Fluidbook_View_Helper_HomeCustomers extends Fluidbook_View_Helper_HomeLaye
         */\r
        public function homeCustomers($data) {\r
 \r
+        $this->headScript()->addScriptAndStyle('213-home-customers');\r
+\r
                $this->data = $data;\r
 \r
-               $res = $this->_leftText();\r
+        $res  = '<style scoped>';\r
+        $res .= '.customers-content strong { color: '. $data['themecolor'] .'; }';\r
+        $res .= '</style>';\r
+\r
+        $res .= $this->title($data['title']);\r
+        $res .= $this->markupDotclear($data['content'], [], ['class' => 'customers-content']);\r
+        $res .= $this->linkQuote(__('Demandez un devis'), 'background:' . $data['themecolor']);\r
+        $res .= $this->linkCMS($data['more'], ['class' => 'btn more']);\r
 \r
                return $this->_layer($res, 'customers');\r
        }\r
index 30b46363cd2271cea9f9e7cb6bf215dea51d9b7f..be14bd79083376b7e3b5b3def734112ed77e1040 100644 (file)
@@ -4,9 +4,19 @@ class Fluidbook_View_Helper_LinkQuote extends CubeIT_View_Helper_Abstract {
        /**\r
         * @return string\r
         */\r
-       public function linkQuote($label) {\r
+       public function linkQuote($label, $style = '') {\r
                $this->headScript()->addScriptAndStyle('005-fancyselect');\r
                $this->headScript()->addScriptAndStyle('315-quote');\r
-               return $this->linkPopup($label, 'internal:contact', array('data-popup-href' => '/ajaxPopup/quoteForm', 'class' => 'quoteLink', 'data-event' => array('category' => 'form', 'action' => 'open', 'label' => 'quote')));\r
+               return $this->linkPopup($label,\r
+            'internal:contact',\r
+            ['data-popup-href' => '/ajaxPopup/quoteForm',\r
+                  'class' => 'quoteLink',\r
+                  'data-event' => [\r
+                      'category' => 'form',\r
+                      'action' => 'open',\r
+                      'label' => 'quote'\r
+                  ],\r
+                  'style' => $style\r
+            ]);\r
        }\r
 }
\ No newline at end of file
diff --git a/less/213-home-customers.less b/less/213-home-customers.less
new file mode 100644 (file)
index 0000000..23763c2
--- /dev/null
@@ -0,0 +1,48 @@
+@import "000-imports";
+
+section.customers {
+
+  .quoteLink {
+    .button();
+    color: #fff;
+    margin-bottom: 20px;
+  }
+
+  .btn.more {
+    color: @color-text;
+    border: 1px solid @color-text;
+    line-height: 52px;
+    margin: 0 20px;
+  }
+}
+
+
+.customers-content {
+  width: 50%;
+
+  @media @m900 {
+    width: auto;
+  }
+
+  li {
+    display: inline-block;
+    width: 32%;
+    margin-bottom: 30px;
+    vertical-align: top;
+    padding-right: 20px;
+
+    @media @m1280 {
+      width: 49%;
+    }
+
+    @media (max-width: 400px) {
+      width: 100%;
+    }
+  }
+
+  strong {
+    font-family: @montserrat;
+    font-weight: 600;
+    text-transform: uppercase;
+  }
+}
\ No newline at end of file