]> _ Git - bloomsburie.git/commitdiff
wip #7260 @0:25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 Jan 2025 16:32:00 +0000 (17:32 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 Jan 2025 16:32:00 +0000 (17:32 +0100)
framework/application/forms/CMS/Carrers.php [new file with mode: 0644]
framework/application/views/scripts/templates/carrers.phtml [new file with mode: 0644]
js/carrers.js [new file with mode: 0644]
less/header.less

diff --git a/framework/application/forms/CMS/Carrers.php b/framework/application/forms/CMS/Carrers.php
new file mode 100644 (file)
index 0000000..0aead83
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+class Cubedesigners_Form_CMS_Carrers extends Cubedesigners_Form_CMS_Twocolumns
+{
+
+    public function init()
+    {
+        parent::init();
+
+        $photo = new CubeIT_Form_Element_File_Image('photo');
+        $photo->setLabel('Picture');
+        $this->addElement($photo);
+
+        $howwework = new CubeIT_Form_Element_Markitup('howwework');
+        $howwework->setLabel('How we work');
+        $this->addElement($howwework);
+    }
+
+}
diff --git a/framework/application/views/scripts/templates/carrers.phtml b/framework/application/views/scripts/templates/carrers.phtml
new file mode 100644 (file)
index 0000000..4fd508d
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+$this->headScript()->addScriptAndStyle('carrers');
+echo $this->twocols();
+
+?>
+<div class="agency-photo mb-4vw"><?php echo $this->imageSlideshowContinuous($this->photo, 650, array(), array('arrowspermanent' => 1)); ?></div>
+<div class="contents howwework">
+    <?php echo $this->textLayer($this->howwework); ?>
+</div>
+
+
diff --git a/js/carrers.js b/js/carrers.js
new file mode 100644 (file)
index 0000000..8e2b08d
--- /dev/null
@@ -0,0 +1,9 @@
+TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_carrers();';
+
+function load_carrers() {
+    $('.howwework a').each(function () {
+        let t = $(this).text();
+        $(this).addClass('animated-arrow').addClass('discreet');
+        $(this).html('<span class="the-arrow -left"><span class="shaft"></span></span><span class="main"><span class="text">' + t + '</span><span class="the-arrow -right"><span class="shaft"></span></span>');
+    });
+}
\ No newline at end of file
index 76f314d42ad45125d77ff1dd0d276a8cfa4ba955..d04022529dd7a7b6e59c8a255d2b2bebf586c6cf 100644 (file)
@@ -214,7 +214,7 @@ header {
 
        nav[role=navigation].active {
                max-height: 26em;
-               padding: 65px 0 30px 0;
+               padding: 65px 0 80px 0;
                box-sizing: content-box;
        }