From f6df65fbb37d2fec7b3cc4fed719b907006aa7fb Mon Sep 17 00:00:00 2001 From: Isabelle Date: Thu, 18 Dec 2025 12:02:00 +0100 Subject: [PATCH] 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. --- falcon/_dev/css/theme/custom/_custom.scss | 3 +- .../_dev/css/theme/custom/layout/_header.scss | 13 +++ .../_dev/css/theme/custom/layout/_swiper.scss | 3 + falcon/_dev/img/x.svg | 23 ++++- .../views/templates/hook/top.tpl | 19 ++++ .../views/templates/hook/is_searchbar.tpl | 17 ++++ .../views/templates/hook/is_shoppingcart.tpl | 89 +++++++++++++++++++ .../templates/_partials/footer-copyright.tpl | 25 ++++++ falcon/templates/_partials/footer.tpl | 3 +- falcon/templates/_partials/header.tpl | 9 +- falcon/templates/catalog/product.tpl | 6 +- 11 files changed, 202 insertions(+), 8 deletions(-) create mode 100644 falcon/_dev/css/theme/custom/layout/_header.scss create mode 100644 falcon/_dev/css/theme/custom/layout/_swiper.scss create mode 100644 falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl create mode 100644 falcon/modules/is_searchbar/views/templates/hook/is_searchbar.tpl create mode 100644 falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl create mode 100644 falcon/templates/_partials/footer-copyright.tpl diff --git a/falcon/_dev/css/theme/custom/_custom.scss b/falcon/_dev/css/theme/custom/_custom.scss index 614a919..a660a38 100644 --- a/falcon/_dev/css/theme/custom/_custom.scss +++ b/falcon/_dev/css/theme/custom/_custom.scss @@ -12,9 +12,10 @@ //@import "modules/"; //Layouts: Parts of a page, such as the header, footer, etc. -//@import "layout/header"; //@import "layout/footer"; +@import "layout/header"; @import "layout/left-column"; +@import "layout/swiper"; // Pages //@import "pages/category"; diff --git a/falcon/_dev/css/theme/custom/layout/_header.scss b/falcon/_dev/css/theme/custom/layout/_header.scss new file mode 100644 index 0000000..c5f328d --- /dev/null +++ b/falcon/_dev/css/theme/custom/layout/_header.scss @@ -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; + } + } +} diff --git a/falcon/_dev/css/theme/custom/layout/_swiper.scss b/falcon/_dev/css/theme/custom/layout/_swiper.scss new file mode 100644 index 0000000..ecbc892 --- /dev/null +++ b/falcon/_dev/css/theme/custom/layout/_swiper.scss @@ -0,0 +1,3 @@ +.swiper-slide { + height: auto; +} diff --git a/falcon/_dev/img/x.svg b/falcon/_dev/img/x.svg index fdcc4e8..61979ba 100644 --- a/falcon/_dev/img/x.svg +++ b/falcon/_dev/img/x.svg @@ -1,3 +1,20 @@ - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + diff --git a/falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl b/falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl new file mode 100644 index 0000000..259802d --- /dev/null +++ b/falcon/modules/is_favoriteproducts/views/templates/hook/top.tpl @@ -0,0 +1,19 @@ +
+ +
+ {capture name="svg_output"}{svg_icon file='heart.svg'}{/capture} + {if $smarty.capture.svg_output} + {$smarty.capture.svg_output nofilter} + {else} + favorite + {/if} + + {$favoriteProductsCount} + +
+
+
diff --git a/falcon/modules/is_searchbar/views/templates/hook/is_searchbar.tpl b/falcon/modules/is_searchbar/views/templates/hook/is_searchbar.tpl new file mode 100644 index 0000000..4cda15b --- /dev/null +++ b/falcon/modules/is_searchbar/views/templates/hook/is_searchbar.tpl @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl b/falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl new file mode 100644 index 0000000..c15d237 --- /dev/null +++ b/falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl @@ -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 + * @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 + *} + +
+ +
diff --git a/falcon/templates/_partials/footer-copyright.tpl b/falcon/templates/_partials/footer-copyright.tpl new file mode 100644 index 0000000..52a87f2 --- /dev/null +++ b/falcon/templates/_partials/footer-copyright.tpl @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/falcon/templates/_partials/footer.tpl b/falcon/templates/_partials/footer.tpl index 9a18ca0..a4086c3 100644 --- a/falcon/templates/_partials/footer.tpl +++ b/falcon/templates/_partials/footer.tpl @@ -29,7 +29,7 @@ {/block} - -