Adds standard styling for header, cart, and search
Applies new styling to the header, shopping cart, and search bar components. Creates new scss files for header and swiper layouts. Replaces x.svg. These changes create a more consistent and modern user interface.
This commit is contained in:
@ -12,9 +12,10 @@
|
|||||||
//@import "modules/";
|
//@import "modules/";
|
||||||
|
|
||||||
//Layouts: Parts of a page, such as the header, footer, etc.
|
//Layouts: Parts of a page, such as the header, footer, etc.
|
||||||
//@import "layout/header";
|
|
||||||
//@import "layout/footer";
|
//@import "layout/footer";
|
||||||
|
@import "layout/header";
|
||||||
@import "layout/left-column";
|
@import "layout/left-column";
|
||||||
|
@import "layout/swiper";
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
//@import "pages/category";
|
//@import "pages/category";
|
||||||
|
|||||||
13
falcon/_dev/css/theme/custom/layout/_header.scss
Normal file
13
falcon/_dev/css/theme/custom/layout/_header.scss
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
.header-top__row {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.header-top__block--search {
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
.js-search-form {
|
||||||
|
max-width: unset;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
falcon/_dev/css/theme/custom/layout/_swiper.scss
Normal file
3
falcon/_dev/css/theme/custom/layout/_swiper.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.swiper-slide {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
@ -1,3 +1,20 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x" viewBox="0 0 16 16">
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>
|
<g clip-path="url(#clip0_7_2)">
|
||||||
</svg>
|
<g clip-path="url(#clip1_7_2)">
|
||||||
|
<mask id="mask0_7_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="16" height="16">
|
||||||
|
<path d="M16 0H0V16H16V0Z" fill="white"/>
|
||||||
|
</mask>
|
||||||
|
<g mask="url(#mask0_7_2)">
|
||||||
|
<path d="M2.34315 2.34315C2.53069 2.15561 2.78504 2.05025 3.05026 2.05025C3.31547 2.05025 3.56983 2.15561 3.75736 2.34315L8 6.58579L12.2426 2.34315C12.4302 2.15562 12.6846 2.05023 12.9497 2.05026C13.2149 2.05028 13.4693 2.15561 13.6569 2.34315C13.8444 2.53068 13.9497 2.78507 13.9497 3.05026C13.9498 3.31545 13.8444 3.56983 13.6569 3.75736L9.41422 8L13.6569 12.2426C13.8444 12.4302 13.9498 12.6846 13.9497 12.9497C13.9497 13.2149 13.8444 13.4693 13.6569 13.6569C13.4693 13.8444 13.2149 13.9497 12.9497 13.9497C12.6846 13.9498 12.4302 13.8444 12.2426 13.6569L8 9.41421L3.75736 13.6569C3.56983 13.8444 3.31547 13.9497 3.05026 13.9498C2.78504 13.9497 2.53069 13.8444 2.34315 13.6569C2.15561 13.4693 2.05026 13.215 2.05025 12.9497C2.05026 12.6845 2.15561 12.4302 2.34315 12.2426L6.58579 8L2.34315 3.75736C2.15561 3.56982 2.05026 3.31547 2.05025 3.05025C2.05026 2.78504 2.15561 2.53068 2.34315 2.34315Z" fill="currentColor"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_7_2">
|
||||||
|
<rect width="16" height="16" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="clip1_7_2">
|
||||||
|
<rect width="16" height="16" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,19 @@
|
|||||||
|
<div class="col flex-grow-0 header-top__block header-top__block--favorite js-favorite-top-content">
|
||||||
|
<a
|
||||||
|
class="header-top__link"
|
||||||
|
rel="nofollow"
|
||||||
|
href="{$favoritePageUrl}"
|
||||||
|
>
|
||||||
|
<div class="header-top__icon-container">
|
||||||
|
{capture name="svg_output"}{svg_icon file='heart.svg'}{/capture}
|
||||||
|
{if $smarty.capture.svg_output}
|
||||||
|
{$smarty.capture.svg_output nofilter}
|
||||||
|
{else}
|
||||||
|
<span class="header-top__icon material-icons">favorite</span>
|
||||||
|
{/if}
|
||||||
|
<span class="header-top__badge">
|
||||||
|
{$favoriteProductsCount}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
<div class="header-top__block header-top__block--search col-12 col-md mt-2 mt-lg-0">
|
||||||
|
<div id="search_from">
|
||||||
|
<form class="search-form js-search-form" data-search-controller-url="{$ajax_search_url}" method="get" action="{$search_controller_url}">
|
||||||
|
<div class="search-form__form-group">
|
||||||
|
<input type="hidden" name="controller" value="search">
|
||||||
|
<input class="js-search-input search-form__input form-control"
|
||||||
|
placeholder="{l s='Enter what you are looking for' d='Modules.Issearchbar.Form'}"
|
||||||
|
type="text"
|
||||||
|
name="s"
|
||||||
|
value="{$search_string}">
|
||||||
|
<button type="submit" class="search-form__btn btn">
|
||||||
|
<span class="material-icons">search</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@ -0,0 +1,89 @@
|
|||||||
|
{**
|
||||||
|
* 2007-2020 PrestaShop and Contributors
|
||||||
|
*
|
||||||
|
* NOTICE OF LICENSE
|
||||||
|
*
|
||||||
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||||
|
* that is bundled with this package in the file LICENSE.txt.
|
||||||
|
* It is also available through the world-wide-web at this URL:
|
||||||
|
* https://opensource.org/licenses/AFL-3.0
|
||||||
|
* If you did not receive a copy of the license and are unable to
|
||||||
|
* obtain it through the world-wide-web, please send an email
|
||||||
|
* to license@prestashop.com so we can send you a copy immediately.
|
||||||
|
*
|
||||||
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
|
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||||
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||||
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
|
*}
|
||||||
|
|
||||||
|
<div class="header-top__block header-top__block--cart col flex-grow-0">
|
||||||
|
<div class="js-blockcart blockcart cart-preview dropdown" data-refresh-url="{$refresh_url}">
|
||||||
|
<a href="#" role="button" id="cartDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
||||||
|
class="header-top__link d-lg-block d-none">
|
||||||
|
<div class="header-top__icon-container">
|
||||||
|
{capture name="svg_output"}{svg_icon file='bag.svg'}{/capture}
|
||||||
|
{if $smarty.capture.svg_output}
|
||||||
|
{$smarty.capture.svg_output nofilter}
|
||||||
|
{else}
|
||||||
|
<span class="header-top__icon material-icons">shopping_basket</span>
|
||||||
|
{/if}
|
||||||
|
<span class="header-top__badge {if $cart.products_count > 9}header-top__badge--smaller{/if}">
|
||||||
|
{$cart.products_count}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<a href="{$cart_url}" class="d-flex d-lg-none header-top__link">
|
||||||
|
<div class="header-top__icon-container">
|
||||||
|
{capture name="svg_output"}{svg_icon file='bag.svg'}{/capture}
|
||||||
|
{if $smarty.capture.svg_output}
|
||||||
|
{$smarty.capture.svg_output nofilter}
|
||||||
|
{else}
|
||||||
|
<span class="header-top__icon material-icons">shopping_basket</span>
|
||||||
|
{/if}
|
||||||
|
<span class="header-top__badge {if $cart.products_count > 9}header-top__badge--smaller{/if}">
|
||||||
|
{$cart.products_count}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu blockcart__dropdown cart-dropdown dropdown-menu-right" aria-labelledby="cartDropdown">
|
||||||
|
<div class="cart-dropdown__content keep-open js-cart__card-body cart__card-body">
|
||||||
|
<div class="cart-loader">
|
||||||
|
<div class="spinner-border text-primary" role="status"><span
|
||||||
|
class="sr-only">{l s='Loading...' d='Shop.Theme.Global'}</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="cart-dropdown__title d-flex align-items-center mb-3">
|
||||||
|
<p class="h5 mb-0 mr-2">
|
||||||
|
{l s='Your cart' d='Modules.Isshoppingcart.Isshoppingcart'}
|
||||||
|
</p>
|
||||||
|
<a data-toggle="dropdown" href="#" class="cart-dropdown__close dropdown-close ml-auto cursor-pointer text-decoration-none">
|
||||||
|
<i class="material-icons d-block">close</i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{if $cart.products_count > 0}
|
||||||
|
<div class="cart-dropdown__products pt-3 mb-3">
|
||||||
|
{foreach from=$cart.products item=product}
|
||||||
|
{include 'module:is_shoppingcart/views/templates/front/is_shoppingcart-product-line.tpl' product=$product}
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="cart-summary-line cart-total">
|
||||||
|
<span class="label">{$cart.totals.total.label}</span>
|
||||||
|
<span class="value">{$cart.totals.total.value}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-3">
|
||||||
|
<a href="{$cart_url}" class="btn btn-sm btn-primary btn-block dropdown-close">
|
||||||
|
{l s='Proceed to checkout' d='Shop.Theme.Actions'}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{else}
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
{l s='Unfortunately your basket is empty' d='Modules.Isshoppingcart.Isshoppingcart'}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
25
falcon/templates/_partials/footer-copyright.tpl
Normal file
25
falcon/templates/_partials/footer-copyright.tpl
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<div class="footer-bottom py-3">
|
||||||
|
<div class="container d-flex justify-content-between align-items-center">
|
||||||
|
<div class="copyright">
|
||||||
|
<span>
|
||||||
|
{l
|
||||||
|
s='Copyright © %year% %shop%'
|
||||||
|
sprintf=['%year%' => $smarty.now|date_format:"%Y", '%shop%' => $shop.name|capitalize]
|
||||||
|
d='Shop.Theme.Footer'
|
||||||
|
}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<a href="https://dewebsmid.nl/prestashop/" rel="noopener" target="_blank">
|
||||||
|
{l s='PrestaShop' d='Shop.Theme.Footer'}
|
||||||
|
</a>
|
||||||
|
<div class="privacy">
|
||||||
|
<a href="content/3-gebruiks-voorwaarden">
|
||||||
|
{l s='Terms & Conditions' d='Shop.Theme.Footer'}
|
||||||
|
</a>
|
||||||
|
<span class="mx-2"> | </span>
|
||||||
|
<a href="content/1-levering">
|
||||||
|
{l s='Privacy policy' d='Shop.Theme.Footer'}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
{/block}
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-container">
|
<div class="footer-container pb-0">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{block name='hook_footer'}
|
{block name='hook_footer'}
|
||||||
@ -42,4 +42,5 @@
|
|||||||
{/block}
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{include file='_partials/footer-copyright.tpl'}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -49,12 +49,17 @@
|
|||||||
data-target="#mobile_top_menu_wrapper"
|
data-target="#mobile_top_menu_wrapper"
|
||||||
>
|
>
|
||||||
<div class="header-top__icon-container">
|
<div class="header-top__icon-container">
|
||||||
<span class="header-top__icon material-icons">menu</span>
|
{capture name="svg_output"}{svg_icon file='hamburger-menu.svg'}{/capture}
|
||||||
|
{if $smarty.capture.svg_output}
|
||||||
|
{$smarty.capture.svg_output nofilter}
|
||||||
|
{else}
|
||||||
|
<span class="header-top__icon material-icons">menu</span>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4 col header-top__block header-top__block--logo">
|
<div class="col col-md-auto col header-top__block header-top__block--logo">
|
||||||
<a href="{$urls.pages.index}">
|
<a href="{$urls.pages.index}">
|
||||||
{images_block webpEnabled=$webpEnabled}
|
{images_block webpEnabled=$webpEnabled}
|
||||||
<img
|
<img
|
||||||
|
|||||||
@ -49,6 +49,9 @@
|
|||||||
|
|
||||||
<div class="row product-container js-product-container">
|
<div class="row product-container js-product-container">
|
||||||
<div class="col-md-5 mb-4">
|
<div class="col-md-5 mb-4">
|
||||||
|
{block name='page_header'}
|
||||||
|
<p class="h1 d-block d-md-none">{block name='page_title'}{$product.name}{/block}</p>
|
||||||
|
{/block}
|
||||||
{block name='page_content_container'}
|
{block name='page_content_container'}
|
||||||
{block name='page_content'}
|
{block name='page_content'}
|
||||||
<div class="position-relative">
|
<div class="position-relative">
|
||||||
@ -64,7 +67,8 @@
|
|||||||
<div class="col-md-7 mb-4">
|
<div class="col-md-7 mb-4">
|
||||||
{block name='page_header_container'}
|
{block name='page_header_container'}
|
||||||
{block name='page_header'}
|
{block name='page_header'}
|
||||||
<h1 class="h1">{block name='page_title'}{$product.name}{/block}</h1>
|
<h1 class="h1 d-none d-md-block">{block name='page_title'}{$product.name}{/block}</h1>
|
||||||
|
<p class="h5 d-block d-md-none">{block name='page_title'}{$product.name}{/block}</p>
|
||||||
{/block}
|
{/block}
|
||||||
{/block}
|
{/block}
|
||||||
{block name='product_prices'}
|
{block name='product_prices'}
|
||||||
|
|||||||
Reference in New Issue
Block a user