From 4ea3627a53db4e7b94d74667d28ef7e779cf32a6 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Wed, 28 Jul 2021 18:15:03 +0530 Subject: [PATCH] Login Header Painted --- .../Resources/views/shop/UI/header.blade.php | 7 +- .../views/shop/home/slider.blade.php | 4 + .../views/shop/layouts/header/index.blade.php | 12 +- .../views/shop/layouts/master.blade.php | 9 +- .../layouts/top-nav/login-section.blade.php | 238 +++++++++--------- 5 files changed, 133 insertions(+), 137 deletions(-) diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/UI/header.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/UI/header.blade.php index 4652bdcb5..9ad83a4d4 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/UI/header.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/UI/header.blade.php @@ -338,10 +338,9 @@ - - + + + @php diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/home/slider.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/home/slider.blade.php index beaab31e1..dd8a1ec2e 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/home/slider.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/home/slider.blade.php @@ -4,6 +4,10 @@ direction="{{ core()->getCurrentLocale()->direction }}" default-banner="{{ asset('/themes/velocity/assets/images/banner.webp') }}" :banners="{{ json_encode($sliderData) }}"> + + {{-- this is default content if js is not loaded --}} + + @endif diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/layouts/header/index.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/layouts/header/index.blade.php index be2b7d7d7..e428de66e 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/layouts/header/index.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/layouts/header/index.blade.php @@ -1,11 +1,9 @@ @@ -22,6 +20,6 @@ document.querySelector('header').classList.remove('header-shadow'); } }); - })() + })(); @endpush diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/layouts/master.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/layouts/master.blade.php index 4c2ce01c1..f641073a7 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/layouts/master.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/layouts/master.blade.php @@ -66,7 +66,14 @@ :header-content="{{ json_encode($velocityContent) }}" heading= "{{ __('velocity::app.menu-navbar.text-category') }}" category-count="{{ $velocityMetaData ? $velocityMetaData->sidebar_category_count : 10 }}" - > + > + + {{-- this is default content if js is not loaded --}} + + + + +
diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/layouts/top-nav/login-section.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/layouts/top-nav/login-section.blade.php index 1ee8cde56..ca2972c62 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/layouts/top-nav/login-section.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/layouts/top-nav/login-section.blade.php @@ -1,134 +1,122 @@ {!! view_render_event('bagisto.shop.layout.header.account-item.before') !!} - + + + {!! view_render_event('bagisto.shop.layout.header.account-item.after') !!} @push('scripts') - - - -@endpush - +@endpush \ No newline at end of file