From 81409f856a16abaef996bc6ddfd18a958f5e16b3 Mon Sep 17 00:00:00 2001
From: jatin <jatiny@consultbop.com>
Date: Thu, 4 Jul 2024 18:15:02 +0530
Subject: [PATCH] fix: move hero banner outside wrapper

---
 templates/layouts/layout-both-columns.tpl | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/templates/layouts/layout-both-columns.tpl b/templates/layouts/layout-both-columns.tpl
index b436f2a..fc0b187 100644
--- a/templates/layouts/layout-both-columns.tpl
+++ b/templates/layouts/layout-both-columns.tpl
@@ -51,6 +51,15 @@
       {/block}
     </header>
 
+    {if $page.page_name == 'index'}
+      <div class="w-full h-[40vh] md:h-[80vh] absolute top-0 left-0 bg-[#E6DFD4] md:bg-transparent flex items-center">
+          <img class="w-full md:h-full md:object-cover" 
+            src="https://brooksbingham-season5.sfo2.cdn.digitaloceanspaces.com/site-static-assets/homepage/banner.png" />
+      </div>
+      <div class="w-full h-[30vh] md:h-[70vh]">
+      </div>
+    {/if}
+
     {block name='displayBeforeWrapper'}
       {hook h='displayBeforeWrapper'}
     {/block}
@@ -86,12 +95,6 @@
 
       {if $page.page_name == 'index'}
 
-<div class="w-full h-[40vh] md:h-[80vh] absolute top-0 left-0 bg-[#E6DFD4] md:bg-transparent flex items-center">
-    <img class="w-full md:h-full md:object-cover" 
-       src="https://brooksbingham-season5.sfo2.cdn.digitaloceanspaces.com/site-static-assets/homepage/banner.png" />
-</div>
-<div class="w-full h-[30vh] md:h-[70vh]">
-</div>
 
 <div class="lg:my-32 my-20" >
  <h1 class="lg:text-2xl md:text-xl text-lg  font-bold text-center">Design and Visualize what you need</h1>