init
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<!--
|
||||
pattern xml file name : cms_page_view_selectable_<CMS Page Identifier>_<Layout Update Name>.xml
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Magento_Theme::css/about-us.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<attribute name="class" value="page-about-us"/>
|
||||
<referenceBlock name="breadcrumbs" remove="true"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework/View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Magento_Theme::css/ai-mascot-contest.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<attribute name="class" value="page-ai-mascot-contest"/>
|
||||
<referenceBlock name="breadcrumbs" remove="true"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,229 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<update handle="default_head_blocks"/>
|
||||
<head>
|
||||
<css src="Magento_Theme::css/cookie-consent.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<attribute name="id" value="html-body"/>
|
||||
<block name="require.js" class="Magento\Framework\View\Element\Template" template="Magento_Theme::page/js/require_js.phtml" />
|
||||
<referenceContainer name="after.body.start">
|
||||
<block class="Magento\RequireJs\Block\Html\Head\Config" name="requirejs-config"/>
|
||||
<block class="Magento\Framework\View\Element\Js\Cookie" name="js_cookies" template="Magento_Theme::js/cookie.phtml">
|
||||
<arguments>
|
||||
<argument name="session_config" xsi:type="object">Magento\Theme\ViewModel\Block\SessionConfig</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Theme\Block\Html\Notices" name="global_notices" template="Magento_Theme::html/notices.phtml"/>
|
||||
<container name="header-notice" as="header-notice" htmlTag="div" htmlClass="message global top_notice">
|
||||
<block class="Magento\Cms\Block\Block" name="header_notice">
|
||||
<arguments>
|
||||
<argument name="block_id" xsi:type="string">header_notice</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
</referenceContainer>
|
||||
<referenceBlock name="top.links">
|
||||
<block class="Magento\Theme\Block\Html\Header" name="header" as="header" before="-">
|
||||
<arguments>
|
||||
<argument name="show_part" xsi:type="string">welcome</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="main.content">
|
||||
<block class="Magento\Framework\View\Element\Template" name="skip_to_content.target" before="-" template="Magento_Theme::html/skiptarget.phtml">
|
||||
<arguments>
|
||||
<argument name="target_id" xsi:type="string">contentarea</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="header.container">
|
||||
<container name="header.panel.wrapper" htmlClass="panel wrapper" htmlTag="div" before="-">
|
||||
<container name="header.panel" label="Page Header Panel" htmlTag="div" htmlClass="panel header">
|
||||
<block class="Magento\Framework\View\Element\Template" name="skip_to_content" template="Magento_Theme::html/skip.phtml">
|
||||
<arguments>
|
||||
<argument name="target" xsi:type="string">contentarea</argument>
|
||||
<argument name="label" translate="true" xsi:type="string">Skip to Content</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Store\Block\Switcher" name="store_language" as="store_language" template="Magento_Store::switch/languages.phtml">
|
||||
<arguments>
|
||||
<argument name="view_model" xsi:type="object">Magento\Store\ViewModel\SwitcherUrlProvider</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Customer\Block\Account\Navigation" name="top.links">
|
||||
<arguments>
|
||||
<argument name="css_class" xsi:type="string">header links</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
</container>
|
||||
<container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
|
||||
<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
|
||||
<arguments>
|
||||
<argument name="logoPathResolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver</argument>
|
||||
<argument name="logo_size_resolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="page.top">
|
||||
<block class="Magento\Framework\View\Element\Template" name="navigation.sections" before="-" template="Magento_Theme::html/sections.phtml">
|
||||
<arguments>
|
||||
<argument name="group_name" xsi:type="string">navigation-sections</argument>
|
||||
<argument name="group_css" xsi:type="string">nav-sections</argument>
|
||||
<argument name="locale_switcher" xsi:type="object">Esun3d\LanguageUrlStoreResolver\ViewModel\LocaleSwitcher</argument>
|
||||
</arguments>
|
||||
<block class="Magento\Framework\View\Element\Template" name="store.menu" group="navigation-sections" template="Magento_Theme::html/container.phtml">
|
||||
<arguments>
|
||||
<argument name="title" translate="true" xsi:type="string">Menu</argument>
|
||||
</arguments>
|
||||
<block class="Magento\Theme\Block\Html\Topmenu" name="catalog.topnav" template="Magento_Theme::html/topmenu.phtml" ttl="3600" before="-"/>
|
||||
</block>
|
||||
<block class="Magento\Framework\View\Element\Text" name="store.links" group="navigation-sections">
|
||||
<arguments>
|
||||
<argument name="title" translate="true" xsi:type="string">Account</argument>
|
||||
<argument name="use_force" xsi:type="boolean">true</argument>
|
||||
<argument name="text" xsi:type="string"><![CDATA[<!-- Account links -->]]></argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Framework\View\Element\Template" name="store.settings" group="navigation-sections" template="Magento_Theme::html/container.phtml">
|
||||
<arguments>
|
||||
<argument name="title" translate="true" xsi:type="string">Settings</argument>
|
||||
</arguments>
|
||||
<block class="Magento\Store\Block\Switcher" name="store.settings.language" template="Magento_Store::switch/languages.phtml">
|
||||
<arguments>
|
||||
<argument name="id_modifier" xsi:type="string">nav</argument>
|
||||
<argument name="view_model" xsi:type="object">Magento\Store\ViewModel\SwitcherUrlProvider</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Directory\Block\Currency" name="store.settings.currency" template="Magento_Directory::currency.phtml">
|
||||
<arguments>
|
||||
<argument name="id_modifier" xsi:type="string">nav</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</block>
|
||||
<block class="Magento\Checkout\Block\Cart\Sidebar"
|
||||
name="esun.minicart"
|
||||
as="esun_minicart"
|
||||
template="Esun_Cart::cart/minicart.phtml">
|
||||
<arguments>
|
||||
<argument name="jsLayout" xsi:type="array">
|
||||
<item name="types" xsi:type="array"/>
|
||||
<item name="components" xsi:type="array">
|
||||
<item name="minicart_content" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Esun_Cart/js/view/minicart</item>
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="template" xsi:type="string">Esun_Cart/minicart/content</item>
|
||||
<item name="itemRenderer" xsi:type="array">
|
||||
<item name="default" xsi:type="string">defaultRenderer</item>
|
||||
<item name="simple" xsi:type="string">defaultRenderer</item>
|
||||
<item name="virtual" xsi:type="string">defaultRenderer</item>
|
||||
<item name="configurable" xsi:type="string">defaultRenderer</item>
|
||||
<item name="bundle" xsi:type="string">defaultRenderer</item>
|
||||
<item name="downloadable" xsi:type="string">defaultRenderer</item>
|
||||
<item name="grouped" xsi:type="string">defaultRenderer</item>
|
||||
</item>
|
||||
</item>
|
||||
<item name="children" xsi:type="array">
|
||||
<item name="item.renderer" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Magento_Checkout/js/view/cart-item-renderer</item>
|
||||
<item name="config" xsi:type="array">
|
||||
<item name="displayArea" xsi:type="string">defaultRenderer</item>
|
||||
<item name="template" xsi:type="string">Esun_Cart/minicart/item/default</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
<container name="esun.minicart.addons" as="minicart.addons">
|
||||
<block class="Magento\Framework\View\Element\Template"
|
||||
name="esun.cart.services"
|
||||
template="Esun_Cart::cart/services.phtml">
|
||||
<block class="Magento\Cms\Block\Block" name="esun.cart.payment.security" as="payment_security">
|
||||
<arguments>
|
||||
<argument name="block_id" xsi:type="string">esun_product_payment_security</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<block class="Magento\Cms\Block\Block" name="esun.cart.delivery.shipping" as="delivery_shipping">
|
||||
<arguments>
|
||||
<argument name="block_id" xsi:type="string">esun_product_delivery_shipping</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</block>
|
||||
</container>
|
||||
</block>
|
||||
</block>
|
||||
<container name="top.container" as="topContainer" label="After Page Header Top" htmlTag="div" htmlClass="top-container"/>
|
||||
<block class="Magento\Theme\Block\Html\Breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="columns.top">
|
||||
<block class="Magento\Theme\Block\Html\Title" name="page.main.title" template="Magento_Theme::html/title.phtml"/>
|
||||
<container name="page.messages" htmlTag="div" htmlClass="page messages">
|
||||
<block class="Magento\Framework\View\Element\Template" name="ajax.message.placeholder" template="Magento_Theme::html/messages.phtml"/>
|
||||
<block class="Magento\Framework\View\Element\Messages" name="messages" as="messages" template="Magento_Theme::messages.phtml"/>
|
||||
</container>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="main">
|
||||
<container name="content.top" label="Main Content Top">
|
||||
<block name="main_css_preloader" as="main_css_preloader" template="Magento_Theme::html/main_css_preloader.phtml" ifconfig="dev/css/use_css_critical_path"/>
|
||||
</container>
|
||||
<container name="content" label="Main Content Area"/>
|
||||
<container name="content.aside" label="Main Content Aside"/>
|
||||
<container name="content.bottom" label="Main Content Bottom"/>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="page.bottom.container">
|
||||
<container name="page.bottom" label="Before Page Footer" htmlTag="div" htmlClass="content"/>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="footer-container">
|
||||
<container name="footer-top" as="footer-top" label="Page Footertop" htmlTag="div" htmlClass="footer-top" before="-">
|
||||
<block class="Magento\Newsletter\Block\Subscribe" name="form.subscribe" as="subscribe" template="Magento_Newsletter::subscribe.phtml" ifconfig="newsletter/general/active">
|
||||
<arguments>
|
||||
<argument name="button_lock_manager" xsi:type="object">Magento\Framework\View\Element\ButtonLockManager</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
<container name="footer-middle" as="footer-middle" label="Page Footermiddle" htmlTag="div" htmlClass="footer-middle" after="footer-top">
|
||||
<block class="Magento\Cms\Block\Block" name="footer_middle_links" before="-">
|
||||
<arguments>
|
||||
<argument name="block_id" xsi:type="string">footer_middle_links</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
<container name="footer" as="footer" label="Page Footer" htmlTag="div" htmlClass="footer content" after="-">
|
||||
<block class="Magento\Framework\View\Element\Template" name="esun.footer.bottom" template="Magento_Theme::html/footer.phtml">
|
||||
<arguments>
|
||||
<argument name="locale_switcher" xsi:type="object">Esun3d\LanguageUrlStoreResolver\ViewModel\LocaleSwitcher</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</container>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="content">
|
||||
<block class="Magento\Framework\View\Element\FormKey" name="formkey"/>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="before.body.end">
|
||||
<block class="Magento\Framework\View\Element\Template"
|
||||
name="esun.back.to.top"
|
||||
template="Magento_Theme::html/back-to-top.phtml"/>
|
||||
<block class="Magento\Framework\View\Element\Template"
|
||||
name="esun.cookie.consent"
|
||||
template="Magento_Theme::html/cookie-consent.phtml"
|
||||
after="esun.back.to.top"/>
|
||||
</referenceContainer>
|
||||
<move element="absolute_footer" destination="before.body.end" after="-"/>
|
||||
|
||||
|
||||
<referenceContainer name="header.panel.wrapper" remove="true" />
|
||||
<referenceBlock name="top.search" remove="true" />
|
||||
<referenceBlock name="minicart" remove="true" />
|
||||
<move element="navigation.sections" destination="header-wrapper" after="logo"/>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<css src="Magento_Theme::css/esunnew.css" />
|
||||
<css src="Magento_Theme::css/back-to-top.css" />
|
||||
<css src="Magento_Theme::css/swiper-bundle.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<referenceBlock name="head.critical">
|
||||
<block name="critical_css_block" as="critical_css" template="Magento_Theme::html/header/criticalCss.phtml" ifconfig="dev/css/use_css_critical_path">
|
||||
<arguments>
|
||||
<argument name="criticalCssViewModel" xsi:type="object">Magento\Theme\Block\Html\Header\CriticalCss</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
<!-- Todo: Block css_rel_preload_script will be removed in next release as polyfill isn't used anymore -->
|
||||
<block name="css_rel_preload_script" ifconfig="dev/css/use_css_critical_path" template="Magento_Theme::js/css_rel_preload.phtml"/>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="after.body.start">
|
||||
<block class="Magento\Framework\View\Element\Js\Components" name="head.components" as="components" template="Magento_Theme::js/components.phtml" before="-"/>
|
||||
<block class="Magento\Framework\View\Element\Template" name="cookie-status-check" as="cookie-status" template="Magento_Theme::js/cookie_status.phtml" />
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
|
||||
<layout id="cms-custom-full-width">
|
||||
<label translate="true">Page -- Custom Full Width</label>
|
||||
</layout>
|
||||
</page_layouts>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
|
||||
<update handle="1column"/>
|
||||
|
||||
<!-- Remove page-main class and replace it with page-main-full-width to remove page gutters. -->
|
||||
<referenceContainer name="main.content"
|
||||
htmlTag="main"
|
||||
htmlClass="page-main-full-width"/>
|
||||
</layout>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
?>
|
||||
<button class="esun-back-to-top"
|
||||
type="button"
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__('Back to top')) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Back to top')) ?>">
|
||||
<svg aria-hidden="true" viewBox="0 0 24 24" width="22" height="22" fill="none">
|
||||
<path d="M5 15L12 8L19 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
".esun-back-to-top": {
|
||||
"Magento_Theme/js/back-to-top": {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \Magento\Framework\View\Element\Template $block
|
||||
* @var \Magento\Framework\Escaper $escaper
|
||||
*/
|
||||
?>
|
||||
<aside class="esun-cookie-consent"
|
||||
data-role="esun-cookie-consent"
|
||||
role="dialog"
|
||||
aria-modal="false"
|
||||
aria-labelledby="esun-cookie-consent-message"
|
||||
aria-hidden="true">
|
||||
<button class="esun-cookie-consent__close"
|
||||
type="button"
|
||||
data-role="close-cookie-consent"
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__('Close')) ?>">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<div class="esun-cookie-consent__content">
|
||||
<p class="esun-cookie-consent__message" id="esun-cookie-consent-message">
|
||||
<span><?= $escaper->escapeHtml(
|
||||
__('We use cookies to improve your online experience. By clicking “Accept All” and continuing to browse the site, you agree to our use of cookies.')
|
||||
) ?></span>
|
||||
<a class="esun-cookie-consent__privacy-link"
|
||||
href="<?= $escaper->escapeUrl($block->getUrl('wiki/privacy-policy/')) ?>">
|
||||
<?= $escaper->escapeHtml(__('Privacy Policy')) ?>
|
||||
</a>
|
||||
</p>
|
||||
<button class="esun-cookie-consent__accept action primary"
|
||||
type="button"
|
||||
data-role="accept-all-cookies">
|
||||
<span><?= $escaper->escapeHtml(__('Accept All')) ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"[data-role=esun-cookie-consent]": {
|
||||
"Magento_Theme/js/cookie-consent": {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<small class="copyright">
|
||||
<span><?= $block->escapeHtml($block->getCopyright()) ?></span>
|
||||
</small>
|
||||
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
/** @var \Esun3d\LanguageUrlStoreResolver\ViewModel\LocaleSwitcher $localeSwitcher */
|
||||
$localeSwitcher = $block->getData('locale_switcher');
|
||||
$localeSwitcherConfig = $localeSwitcher->getConfig();
|
||||
$currentMarketCode = (string)($localeSwitcherConfig['currentMarket'] ?? '');
|
||||
$markets = $localeSwitcherConfig['markets'] ?? [];
|
||||
$currentMarket = $markets[$currentMarketCode] ?? ($markets ? reset($markets) : []);
|
||||
$currentMarketLabel = (string)($currentMarket['label'] ?? '');
|
||||
$viewFileUrl = $escaper->escapeUrl($block->getViewFileUrl('Magento_Theme::images'));
|
||||
$marketFlags = [
|
||||
'us_site' => $viewFileUrl . '/flags/us.svg',
|
||||
'au' => $viewFileUrl . '/flags/au.svg',
|
||||
'uk' => $viewFileUrl . '/flags/gb.svg',
|
||||
'eu' => $viewFileUrl . '/flags/eu.svg',
|
||||
];
|
||||
$currentMarketFlag = $marketFlags[$currentMarketCode] ?? '';
|
||||
$currentLanguageCode = (string)($localeSwitcherConfig['currentLanguage'] ?? '');
|
||||
$currentLanguageLabel = (string)($currentMarket['languages'][$currentLanguageCode]['label'] ?? '');
|
||||
?>
|
||||
<!-- Footer Bottom -->
|
||||
<div class="es-footer-bottom">
|
||||
<div class="es-footer-bottom-left">
|
||||
<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('footer_bottom_left')->toHtml();?>
|
||||
</div>
|
||||
<div class="es-footer-bottom-right">
|
||||
<div class="es-footer-locale-selector">
|
||||
<div class="switch-container"
|
||||
data-mage-init='<?= $escaper->escapeHtmlAttr(json_encode([
|
||||
'Magento_Theme/js/footer-locale-switcher' => [
|
||||
'data' => $localeSwitcherConfig,
|
||||
],
|
||||
])) ?>'>
|
||||
<div class="switch-wrapper">
|
||||
<div class="switch-box switch-box--footer-market">
|
||||
<div class="market-picker" data-role="footer-market-picker">
|
||||
<button class="market-picker__trigger footer-market-picker__trigger" type="button"
|
||||
data-role="footer-market-picker-trigger" aria-haspopup="listbox"
|
||||
aria-expanded="false">
|
||||
<?php if ($currentMarketFlag !== ''): ?>
|
||||
<img class="market-picker__flag" data-role="footer-market-picker-flag"
|
||||
src="<?= $escaper->escapeUrl($currentMarketFlag) ?>"
|
||||
width="20" height="14" alt="" aria-hidden="true" />
|
||||
<?php endif; ?>
|
||||
<span class="market-picker__label" data-role="footer-market-picker-label">
|
||||
<?= $escaper->escapeHtml($currentMarketLabel) ?>
|
||||
</span>
|
||||
</button>
|
||||
<div class="market-picker__menu" data-role="footer-market-picker-menu"
|
||||
role="listbox" hidden>
|
||||
<?php foreach ($localeSwitcherConfig['markets'] as $code => $market): ?>
|
||||
<?php
|
||||
$isCurrentMarket = (string)$code === $currentMarketCode;
|
||||
$marketFlag = $marketFlags[(string)$code] ?? '';
|
||||
?>
|
||||
<button class="market-picker__option" type="button" role="option"
|
||||
data-role="footer-market-picker-option"
|
||||
data-market-code="<?= $escaper->escapeHtmlAttr((string)$code) ?>"
|
||||
data-market-flag="<?= $escaper->escapeUrl($marketFlag) ?>"
|
||||
aria-selected="<?= $isCurrentMarket ? 'true' : 'false' ?>">
|
||||
<?php if ($marketFlag !== ''): ?>
|
||||
<img class="market-picker__flag"
|
||||
src="<?= $escaper->escapeUrl($marketFlag) ?>"
|
||||
width="20" height="14" alt="" aria-hidden="true" />
|
||||
<?php endif; ?>
|
||||
<span class="market-picker__option-label">
|
||||
<?= $escaper->escapeHtml($market['label']) ?>
|
||||
</span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<select id="footer-country-select" class="footer-market-select--native"
|
||||
data-role="market" aria-hidden="true" tabindex="-1">
|
||||
<?php foreach ($localeSwitcherConfig['markets'] as $code => $market): ?>
|
||||
<option value="<?= $escaper->escapeHtmlAttr($code) ?>">
|
||||
<?= $escaper->escapeHtml($market['label']) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="switch-box switch-box--footer-language">
|
||||
<div class="market-picker language-picker notranslate"
|
||||
data-role="footer-language-picker" translate="no">
|
||||
<button class="market-picker__trigger footer-language-picker__trigger" type="button"
|
||||
data-role="footer-language-picker-trigger" aria-haspopup="listbox"
|
||||
aria-expanded="false">
|
||||
<span class="market-picker__label" data-role="footer-language-picker-label">
|
||||
<?= $escaper->escapeHtml($currentLanguageLabel) ?>
|
||||
</span>
|
||||
</button>
|
||||
<div class="market-picker__menu" data-role="footer-language-picker-menu"
|
||||
role="listbox" hidden>
|
||||
<?php foreach (($currentMarket['languages'] ?? []) as $code => $language): ?>
|
||||
<?php $isCurrentLanguage = (string)$code === $currentLanguageCode; ?>
|
||||
<button class="market-picker__option" type="button" role="option"
|
||||
data-role="footer-language-picker-option"
|
||||
data-language-code="<?= $escaper->escapeHtmlAttr((string)$code) ?>"
|
||||
aria-selected="<?= $isCurrentLanguage ? 'true' : 'false' ?>">
|
||||
<span class="market-picker__option-label">
|
||||
<?= $escaper->escapeHtml($language['label']) ?>
|
||||
</span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<select id="footer-language-select" class="footer-language-select--native"
|
||||
data-role="language" aria-hidden="true" tabindex="-1">
|
||||
<?php foreach (($currentMarket['languages'] ?? []) as $code => $language): ?>
|
||||
<option value="<?= $escaper->escapeHtmlAttr((string)$code) ?>"
|
||||
<?= (string)$code === $currentLanguageCode ? ' selected' : '' ?>>
|
||||
<?= $escaper->escapeHtml($language['label']) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Footer Legal Bar -->
|
||||
<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('footer_bottom_right')->toHtml();?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var \Magento\Theme\Block\Html\Header $block
|
||||
* @var \Magento\Framework\Escaper $escaper
|
||||
*/
|
||||
$welcomeMessage = $block->getWelcome();
|
||||
?>
|
||||
<?php if ($block->getShowPart() == 'welcome'): ?>
|
||||
<li class="greet welcome" data-bind="scope: 'customer'">
|
||||
<!-- ko if: customer().fullname -->
|
||||
<span class="logged-in"
|
||||
data-bind="text: new String('<?= $escaper->escapeHtml(__('Welcome, %1!', '%1')) ?>').
|
||||
replace('%1', customer().fullname)">
|
||||
</span>
|
||||
<!-- /ko -->
|
||||
<!-- ko ifnot: customer().fullname -->
|
||||
<span class="not-logged-in"
|
||||
data-bind="text: '<?= $escaper->escapeHtml($welcomeMessage) ?>'"></span>
|
||||
<?= $block->getBlockHtml('header.additional') ?>
|
||||
<!-- /ko -->
|
||||
</li>
|
||||
<?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"*": {
|
||||
"Magento_Ui/js/core/app": {
|
||||
"components": {
|
||||
"customer": {
|
||||
"component": "Magento_Customer/js/view/customer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php elseif ($block->getShowPart() == 'other'): ?>
|
||||
<?= $block->getChildHtml() ?>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var \Magento\Theme\Block\Html\Header\Logo $block
|
||||
*/
|
||||
$storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAlt();
|
||||
/**
|
||||
* @var \Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolverInterface|null $logoSizeResolver
|
||||
*/
|
||||
$logoSizeResolver = $block->getLogoSizeResolver();
|
||||
$logoWidth = $logoSizeResolver !== null && $logoSizeResolver->getWidth()
|
||||
? $logoSizeResolver->getWidth()
|
||||
: $block->getLogoWidth();
|
||||
$logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight()
|
||||
? $logoSizeResolver->getHeight()
|
||||
: $block->getLogoHeight();
|
||||
?>
|
||||
<span data-action="toggle-nav" class="action nav-toggle"><span><?= $block->escapeHtml(__('Toggle Nav')) ?></span></span>
|
||||
<a
|
||||
class="logo"
|
||||
href="<?= $block->escapeUrl($block->getUrl('')) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($storeName) ?>"
|
||||
aria-label="store logo">
|
||||
<img src="<?= $block->escapeUrl($block->getLogoSrc()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
|
||||
alt="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
|
||||
<?= $logoWidth ? 'width="' . $block->escapeHtmlAttr($logoWidth) . '"' : '' ?>
|
||||
<?= $logoHeight ? 'height="' . $block->escapeHtmlAttr($logoHeight) . '"' : '' ?>
|
||||
/>
|
||||
</a>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<div data-placeholder="messages"></div>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var $block \Magento\Theme\Block\Html\Notices
|
||||
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
|
||||
*/
|
||||
?>
|
||||
<?php if ($block->displayNoscriptNotice()): ?>
|
||||
<noscript>
|
||||
<div class="message global noscript">
|
||||
<div class="content">
|
||||
<p>
|
||||
<strong><?= $block->escapeHtml(__('JavaScript seems to be disabled in your browser.')) ?></strong>
|
||||
<span>
|
||||
<?= $block->escapeHtml(
|
||||
__('For the best experience on our site, be sure to turn on Javascript in your browser.')
|
||||
) ?>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->displayNoLocalStorageNotice()): ?>
|
||||
<div class="notice global site local_storage">
|
||||
<div class="content">
|
||||
<p>
|
||||
<strong><?= $block->escapeHtml(__('Local Storage seems to be disabled in your browser.')) ?></strong>
|
||||
<br />
|
||||
<?= $block->escapeHtml(
|
||||
__('For the best experience on our site, be sure to turn on Local Storage in your browser.')
|
||||
) ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag('display: none;', 'div.notice.global.site.local_storage') ?>
|
||||
|
||||
<?php $scriptString = <<<script
|
||||
|
||||
require(['jquery'], function(jQuery){
|
||||
|
||||
// <![CDATA[
|
||||
(function($) {
|
||||
var test = 'test';
|
||||
try {
|
||||
localStorage.setItem(test, test);
|
||||
localStorage.removeItem(test);
|
||||
} catch(e) {
|
||||
$(".notice.global.site.local_storage").show();
|
||||
}
|
||||
})(jQuery);
|
||||
// ]]>
|
||||
|
||||
});
|
||||
|
||||
script;
|
||||
?>
|
||||
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->displayDemoNotice()): ?>
|
||||
<div class="message global demo">
|
||||
<div class="content">
|
||||
<p><?= $block->escapeHtml(__('This is a demo store. No orders will be fulfilled.')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Pager template
|
||||
*
|
||||
* @var \Magento\Theme\Block\Html\Pager $block
|
||||
* @var \Magento\Framework\Escaper $escaper
|
||||
* @var \Magento\Framework\Locale\LocaleFormatter $localeFormatter
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php if ($block->getCollection()->getSize()): ?>
|
||||
|
||||
<?php if ($block->getUseContainer()): ?>
|
||||
<div class="pager">
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($block->getShowAmounts()): ?>
|
||||
<p class="toolbar-amount">
|
||||
<span class="toolbar-number">
|
||||
<?php if ($block->getLastPageNum()>1): ?>
|
||||
<?= $block->escapeHtml(
|
||||
__(
|
||||
'Items %1 to %2 of %3 total',
|
||||
$localeFormatter->formatNumber($block->getFirstNum()),
|
||||
$localeFormatter->formatNumber($block->getLastNum()),
|
||||
$localeFormatter->formatNumber($block->getTotalNum())
|
||||
)
|
||||
) ?>
|
||||
<?php elseif ($block->getTotalNum() == 1): ?>
|
||||
<?= $block->escapeHtml(__('%1 Item', $localeFormatter->formatNumber($block->getTotalNum()))) ?>
|
||||
<?php else: ?>
|
||||
<?= $block->escapeHtml(__('%1 Item(s)', $localeFormatter->formatNumber($block->getTotalNum()))) ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($block->getLastPageNum()>1): ?>
|
||||
<div class="pages">
|
||||
<strong class="label pages-label" id="paging-label"><?= $block->escapeHtml(__('Page')) ?></strong>
|
||||
<ul class="items pages-items" aria-labelledby="paging-label">
|
||||
<?php if (!$block->isFirstPage()): ?>
|
||||
<li class="item pages-item-previous">
|
||||
<?php $text = $block->getAnchorTextForPrevious() ? $block->getAnchorTextForPrevious() : '';?>
|
||||
<a class="<?= $block->escapeHtmlAttr($text ? 'link ' : 'action ') ?> previous"
|
||||
href="<?= $block->escapeUrl($block->getPreviousPageUrl()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($text ? $text : __('Previous')) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($text ? $text : __('Previous')) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($block->canShowFirst()): ?>
|
||||
<li class="item">
|
||||
<a class="page first" href="<?= $block->escapeUrl($block->getFirstPageUrl()) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber(1)) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($block->canShowPreviousJump()): ?>
|
||||
<li class="item">
|
||||
<a class="page previous jump"
|
||||
title=""
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__(
|
||||
'Skip to page %1',
|
||||
$localeFormatter->formatNumber($block->getPreviousJumpPage())
|
||||
)) ?>"
|
||||
href="<?= $block->escapeUrl($block->getPreviousJumpUrl()) ?>">
|
||||
<span>...</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php foreach ($block->getFramePages() as $_page): ?>
|
||||
<?php if ($block->isPageCurrent($_page)): ?>
|
||||
<li class="item current">
|
||||
<strong class="page">
|
||||
<span class="label"><?= $block->escapeHtml(__('You\'re currently reading page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber($_page)) ?></span>
|
||||
</strong>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="item">
|
||||
<a href="<?= $block->escapeUrl($block->getPageUrl($_page)) ?>" class="page">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber($_page)) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
|
||||
<?php if ($block->canShowNextJump()): ?>
|
||||
<li class="item">
|
||||
<a class="page next jump"
|
||||
title=""
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__(
|
||||
'Skip to page %1',
|
||||
$localeFormatter->formatNumber($block->getNextJumpPage())
|
||||
)) ?>"
|
||||
href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
|
||||
<span>...</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($block->canShowLast()): ?>
|
||||
<li class="item">
|
||||
<a class="page last" href="<?= $block->escapeUrl($block->getLastPageUrl()) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber($block->getLastPageNum())) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (!$block->isLastPage()): ?>
|
||||
<li class="item pages-item-next">
|
||||
<?php $text = $block->getAnchorTextForNext() ? $block->getAnchorTextForNext() : '';?>
|
||||
<a class="<?= /* @noEscape */ $text ? 'link ' : 'action ' ?> next"
|
||||
href="<?= $block->escapeUrl($block->getNextPageUrl()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($text ? $text : __('Next')) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($text ? $text : __('Next')) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($block->isShowPerPage()): ?>
|
||||
<div class="limiter">
|
||||
<strong class="limiter-label"><?= $block->escapeHtml(__('Show')) ?></strong>
|
||||
<select id="limiter" data-mage-init='{"redirectUrl": {"event":"change"}}' class="limiter-options">
|
||||
<?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
|
||||
<option value="<?= $block->escapeUrl($block->getLimitUrl($_key)) ?>"
|
||||
<?php if ($block->isLimitCurrent($_key)): ?>
|
||||
selected="selected"<?php endif ?>>
|
||||
<?= $block->escapeHtml($localeFormatter->formatNumber((int) $_limit)) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<span class="limiter-text"><?= $block->escapeHtml(__('per page')) ?></span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($block->getUseContainer()): ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,264 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2014 Adobe
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
* General template for displaying group of blocks divided into sections
|
||||
*/
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
|
||||
$group = $block->getGroupName();
|
||||
$groupCss = $block->getGroupCss();
|
||||
?>
|
||||
<?php if ($detailedInfoGroup = $block->getGroupChildNames($group)):?>
|
||||
<div class="sections <?= $escaper->escapeHtmlAttr($groupCss) ?>">
|
||||
<?php $layout = $block->getLayout(); ?>
|
||||
<div class="section-items <?= $escaper->escapeHtmlAttr($groupCss) ?>-items"
|
||||
data-mage-init='{"tabs":{"openedState":"active"}}'>
|
||||
<?php foreach ($detailedInfoGroup as $name):?>
|
||||
<?php
|
||||
$html = $layout->renderElement($name);
|
||||
if (!($html !== null && trim($html)) && ($block->getUseForce() != true)) {
|
||||
continue;
|
||||
}
|
||||
$alias = $layout->getElementAlias($name);
|
||||
$label = $block->getChildData($alias, 'title');
|
||||
$isMenuSection = $alias === 'store.menu';
|
||||
$sectionClass = $isMenuSection ? 'is-menu-section' : 'is-secondary-section';
|
||||
?>
|
||||
<div class="section-item-title <?= $escaper->escapeHtmlAttr($groupCss) ?>-item-title <?= $sectionClass ?>"
|
||||
data-role="collapsible">
|
||||
<a class="<?= $escaper->escapeHtmlAttr($groupCss) ?>-item-switch"
|
||||
data-toggle="switch" href="#<?= $escaper->escapeHtmlAttr($alias) ?>">
|
||||
<?= /* @noEscape */ $label ?>
|
||||
</a>
|
||||
<?php if ($isMenuSection): ?>
|
||||
<button type="button"
|
||||
class="nav-sections-close"
|
||||
data-action="toggle-nav"
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__('Close menu')) ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Close menu')) ?></span>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="section-item-content <?= $escaper->escapeHtmlAttr($groupCss) ?>-item-content <?= $sectionClass ?>"
|
||||
id="<?= $escaper->escapeHtmlAttr($alias) ?>"
|
||||
role="tab">
|
||||
<?= /* @noEscape */ $html ?>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$viewFileUrl = $escaper->escapeUrl($block->getViewFileUrl('Magento_Theme::images'));
|
||||
$accountUrl = $escaper->escapeUrl($block->getUrl('customer/account'));
|
||||
$ordersUrl = $escaper->escapeUrl($block->getUrl('sales/order/history'));
|
||||
$logoutUrl = $escaper->escapeUrl($block->getUrl('customer/account/logout'));
|
||||
$httpContext = \Magento\Framework\App\ObjectManager::getInstance()
|
||||
->get(\Magento\Framework\App\Http\Context::class);
|
||||
$isCustomerLoggedIn = (bool) $httpContext->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH);
|
||||
|
||||
/** @var \Esun3d\LanguageUrlStoreResolver\ViewModel\LocaleSwitcher $localeSwitcher */
|
||||
$localeSwitcher = $block->getData('locale_switcher');
|
||||
$localeSwitcherConfig = $localeSwitcher->getConfig();
|
||||
$marketFlags = [
|
||||
'us_site' => $viewFileUrl . '/flags/us.svg',
|
||||
'au' => $viewFileUrl . '/flags/au.svg',
|
||||
'uk' => $viewFileUrl . '/flags/gb.svg',
|
||||
'eu' => $viewFileUrl . '/flags/eu.svg',
|
||||
];
|
||||
$currentMarketCode = (string)($localeSwitcherConfig['currentMarket'] ?? '');
|
||||
$currentMarket = $localeSwitcherConfig['markets'][$currentMarketCode] ?? [];
|
||||
$currentMarketLabel = (string)($currentMarket['label'] ?? __('Select Website'));
|
||||
$currentMarketFlag = $marketFlags[$currentMarketCode] ?? '';
|
||||
$currentLanguageCode = (string)($localeSwitcherConfig['currentLanguage'] ?? '');
|
||||
$currentLanguageLabel = (string)($currentMarket['languages'][$currentLanguageCode]['label'] ?? __('Select Language'));
|
||||
|
||||
// Search form data
|
||||
$searchHelper = \Magento\Framework\App\ObjectManager::getInstance()
|
||||
->get(\Magento\Search\Helper\Data::class);
|
||||
$searchResultUrl = $escaper->escapeUrl($searchHelper->getResultUrl());
|
||||
$searchSuggestUrl = $escaper->escapeUrl($searchHelper->getSuggestUrl());
|
||||
$searchQueryParam = $escaper->escapeHtmlAttr($searchHelper->getQueryParamName());
|
||||
$searchMinLength = (int) $searchHelper->getMinQueryLength();
|
||||
$searchMaxLength = (int) $searchHelper->getMaxQueryLength();
|
||||
?>
|
||||
<div class="header-top-links">
|
||||
<!-- Global Switcher -->
|
||||
<div class="header-top-link-item global-switcher">
|
||||
<a href="javascript:void(0)" class="action global-switcher-trigger" title="<?= $escaper->escapeHtmlAttr(__('Language / Country')) ?>">
|
||||
<img src="<?= $viewFileUrl ?>/global.png" alt="<?= $escaper->escapeHtmlAttr(__('Global')) ?>" width="24" height="24" />
|
||||
</a>
|
||||
<div class="global-switcher-dropdown" style="display:none;">
|
||||
<div class="global-switcher-content">
|
||||
<div class="switch-container"
|
||||
data-mage-init='<?= $escaper->escapeHtmlAttr(json_encode([
|
||||
'Esun3d_LanguageUrlStoreResolver/js/locale-switcher' => [
|
||||
'data' => $localeSwitcherConfig,
|
||||
],
|
||||
])) ?>'>
|
||||
<div class="switch-wrapper">
|
||||
<div class="switch-box switch-box--market">
|
||||
<span class="switch-label"><?= $escaper->escapeHtml(__('Country')) ?></span>
|
||||
<div class="market-picker" data-role="market-picker">
|
||||
<button class="switcher-select market-picker__trigger" type="button"
|
||||
data-role="market-picker-trigger" aria-haspopup="listbox"
|
||||
aria-expanded="false">
|
||||
<?php if ($currentMarketFlag !== ''): ?>
|
||||
<img class="market-picker__flag" data-role="market-picker-flag"
|
||||
src="<?= $escaper->escapeUrl($currentMarketFlag) ?>"
|
||||
width="20" height="14" alt="" aria-hidden="true" />
|
||||
<?php endif; ?>
|
||||
<span class="market-picker__label" data-role="market-picker-label">
|
||||
<?= $escaper->escapeHtml($currentMarketLabel) ?>
|
||||
</span>
|
||||
</button>
|
||||
<div class="market-picker__menu" data-role="market-picker-menu"
|
||||
role="listbox" hidden>
|
||||
<?php foreach ($localeSwitcherConfig['markets'] as $code => $market): ?>
|
||||
<?php
|
||||
$isCurrentMarket = (string)$code === $currentMarketCode;
|
||||
$marketFlag = $marketFlags[(string)$code] ?? '';
|
||||
?>
|
||||
<button class="market-picker__option" type="button" role="option"
|
||||
data-role="market-picker-option"
|
||||
data-market-code="<?= $escaper->escapeHtmlAttr((string)$code) ?>"
|
||||
data-market-flag="<?= $escaper->escapeUrl($marketFlag) ?>"
|
||||
aria-selected="<?= $isCurrentMarket ? 'true' : 'false' ?>">
|
||||
<?php if ($marketFlag !== ''): ?>
|
||||
<img class="market-picker__flag"
|
||||
src="<?= $escaper->escapeUrl($marketFlag) ?>"
|
||||
width="20" height="14" alt="" aria-hidden="true" />
|
||||
<?php endif; ?>
|
||||
<span class="market-picker__option-label">
|
||||
<?= $escaper->escapeHtml($market['label']) ?>
|
||||
</span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<select id="header-country-select"
|
||||
class="switcher-select switcher-select--native"
|
||||
data-role="market" aria-hidden="true" tabindex="-1">
|
||||
<?php foreach ($localeSwitcherConfig['markets'] as $code => $market): ?>
|
||||
<option value="<?= $escaper->escapeHtmlAttr($code) ?>">
|
||||
<?= $escaper->escapeHtml($market['label']) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="switch-box switch-box--language">
|
||||
<span class="switch-label"><?= $escaper->escapeHtml(__('Language')) ?></span>
|
||||
<div class="market-picker language-picker notranslate" data-role="language-picker"
|
||||
translate="no">
|
||||
<button class="switcher-select market-picker__trigger language-picker__trigger"
|
||||
type="button" data-role="language-picker-trigger"
|
||||
aria-haspopup="listbox" aria-expanded="false">
|
||||
<span class="market-picker__label" data-role="language-picker-label">
|
||||
<?= $escaper->escapeHtml($currentLanguageLabel) ?>
|
||||
</span>
|
||||
</button>
|
||||
<div class="market-picker__menu" data-role="language-picker-menu"
|
||||
role="listbox" hidden></div>
|
||||
</div>
|
||||
<select id="header-language-select"
|
||||
class="switcher-select switcher-select--native"
|
||||
data-role="language" aria-hidden="true" tabindex="-1"></select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Search Dropdown -->
|
||||
<div class="header-top-link-item search-trigger">
|
||||
<a href="javascript:void(0)" class="action search-toggle" title="<?= $escaper->escapeHtmlAttr(__('Search')) ?>">
|
||||
<img src="<?= $viewFileUrl ?>/search.png" alt="<?= $escaper->escapeHtmlAttr(__('Search')) ?>" width="24" height="24" />
|
||||
</a>
|
||||
<div class="search-dropdown" style="display:none;">
|
||||
<div class="block block-search">
|
||||
<div class="block block-content">
|
||||
<form class="form minisearch" id="search_mini_form_header"
|
||||
action="<?= $searchResultUrl ?>" method="get">
|
||||
<div class="field search">
|
||||
<label class="label" for="search_header">
|
||||
<span><?= $escaper->escapeHtml(__('Search')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input id="search_header"
|
||||
data-mage-init='{"quickSearch":{
|
||||
"formSelector":"#search_mini_form_header",
|
||||
"url":"<?= $searchSuggestUrl ?>",
|
||||
"destinationSelector":"#search_autocomplete_header",
|
||||
"minSearchLength":"<?= $searchMinLength ?>"
|
||||
}}'
|
||||
type="text"
|
||||
name="<?= $searchQueryParam ?>"
|
||||
placeholder="<?= $escaper->escapeHtmlAttr(__('Search entire store here...')) ?>"
|
||||
class="input-text"
|
||||
maxlength="<?= $searchMaxLength ?>"
|
||||
role="combobox"
|
||||
autocomplete="off" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button type="submit"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Search')) ?>"
|
||||
class="action search"
|
||||
aria-label="Search">
|
||||
<span><?= $escaper->escapeHtml(__('Search')) ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Cart / Minicart -->
|
||||
<div class="header-top-link-item header-minicart">
|
||||
<?= /* @noEscape */ $block->getLayout()->renderElement('esun.minicart') ?>
|
||||
</div>
|
||||
|
||||
<!-- Account -->
|
||||
<div class="header-top-link-item account-link">
|
||||
<?php if ($isCustomerLoggedIn): ?>
|
||||
<button type="button"
|
||||
class="action account-toggle"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('My Account')) ?>"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<img src="<?= $viewFileUrl ?>/account.png" alt="<?= $escaper->escapeHtmlAttr(__('Account')) ?>" width="24" height="24" />
|
||||
</button>
|
||||
<?php else: ?>
|
||||
<a href="<?= $accountUrl ?>"
|
||||
class="action"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('My Account')) ?>">
|
||||
<img src="<?= $viewFileUrl ?>/account.png" alt="<?= $escaper->escapeHtmlAttr(__('Account')) ?>" width="24" height="24" />
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($isCustomerLoggedIn): ?>
|
||||
<div class="account-dropdown" style="display:none;" aria-hidden="true">
|
||||
<ul class="account-dropdown-list">
|
||||
<li><a href="<?= $accountUrl ?>"><?= $escaper->escapeHtml(__('My Account')) ?></a></li>
|
||||
<li><a href="<?= $ordersUrl ?>"><?= $escaper->escapeHtml(__('My Orders')) ?></a></li>
|
||||
<li><a href="<?= $logoutUrl ?>"><?= $escaper->escapeHtml(__('Sign Out')) ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"*": {
|
||||
"Magento_Theme/js/header-top-links": {},
|
||||
"Magento_Theme/js/header-account-menu-v3": {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Top menu for store
|
||||
*
|
||||
* @var $block \Magento\Theme\Block\Html\Topmenu
|
||||
*/
|
||||
|
||||
$columnsLimit = $block->getColumnsLimit() ?: 0;
|
||||
$_menuHtml = $block->getHtml('level-top', 'submenu', $columnsLimit)
|
||||
?>
|
||||
|
||||
<nav class="navigation" data-action="navigation">
|
||||
<ul data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'>
|
||||
<?= /* @noEscape */ $_menuHtml?>
|
||||
<?= $block->getChildHtml() ?>
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -0,0 +1,867 @@
|
||||
.page-ai-mascot-contest .page-main-full-width,
|
||||
.page-ai-mascot-contest .columns,
|
||||
.page-ai-mascot-contest .column.main {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.page-ai-mascot-contest .column.main {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* The CMS page uses a PageBuilder "contained" row. Make only this campaign
|
||||
full-bleed so the 1920px design background reaches both viewport edges. */
|
||||
.page-ai-mascot-contest .column.main > [data-content-type='row'][data-appearance='contained'] {
|
||||
width: 100%;
|
||||
max-width: none !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.page-ai-mascot-contest .column.main > [data-content-type='row'] > [data-element='inner'] {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ai-mascot-contest,
|
||||
.ai-mascot-contest * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.ai-mascot-contest {
|
||||
--am-blue: #087ff0;
|
||||
--am-dark-blue: #005ab7;
|
||||
--am-text: #161f2b;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
color: var(--am-text);
|
||||
background-color: #30afe8;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.ai-mascot-contest[style] {
|
||||
background-color: #30afe8;
|
||||
background-position: top center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
.ai-mascot-contest img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.ai-mascot-contest p,
|
||||
.ai-mascot-contest h1,
|
||||
.ai-mascot-contest h2,
|
||||
.ai-mascot-contest h3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.am-container {
|
||||
width: min(1200px, calc(100% - 48px));
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.am-hero {
|
||||
position: relative;
|
||||
min-height: 930px;
|
||||
padding-top: 90px;
|
||||
}
|
||||
|
||||
.am-hero__inner {
|
||||
position: relative;
|
||||
min-height: 760px;
|
||||
}
|
||||
|
||||
.am-hero__copy {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 55%;
|
||||
padding-top: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.am-hero__eyebrow {
|
||||
display: inline-block;
|
||||
margin-bottom: 28px;
|
||||
padding: 8px 18px;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: .3px;
|
||||
}
|
||||
|
||||
.am-hero__title {
|
||||
width: min(100%, 560px);
|
||||
margin: 0 auto;
|
||||
filter: drop-shadow(0 8px 8px rgba(5, 91, 151, .2));
|
||||
}
|
||||
|
||||
.am-hero__mascot {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 70px;
|
||||
right: -80px;
|
||||
width: 56%;
|
||||
max-width: 650px;
|
||||
filter: drop-shadow(0 16px 18px rgba(3, 89, 154, .18));
|
||||
}
|
||||
|
||||
.am-collaboration {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
right: 0;
|
||||
bottom: 65px;
|
||||
left: 0;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(150px, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
width: min(1160px, calc(100% - 48px));
|
||||
min-height: 82px;
|
||||
margin: 0 auto;
|
||||
padding: 12px 24px;
|
||||
border-radius: 42px;
|
||||
background: rgba(255, 255, 255, .96);
|
||||
box-shadow: 0 12px 28px rgba(1, 109, 175, .18);
|
||||
}
|
||||
|
||||
.am-collaboration__brands {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
color: #178756;
|
||||
font-size: 25px;
|
||||
font-weight: 800;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.am-collaboration__brands img {
|
||||
width: 112px;
|
||||
}
|
||||
|
||||
.am-collaboration__label {
|
||||
justify-self: start;
|
||||
color: #222;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-collaboration__date {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 410px;
|
||||
padding: 8px 10px 8px 16px;
|
||||
border-radius: 18px;
|
||||
color: #fff;
|
||||
background: #8bc72d;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.am-collaboration__year {
|
||||
display: grid;
|
||||
font-size: 17px;
|
||||
font-weight: 500;
|
||||
line-height: .78;
|
||||
}
|
||||
|
||||
.am-collaboration__date strong {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
font-size: 38px;
|
||||
font-weight: 300;
|
||||
letter-spacing: -1.5px;
|
||||
}
|
||||
|
||||
.am-collaboration__date i {
|
||||
font-size: 24px;
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.am-collaboration__date small {
|
||||
padding: 5px 7px;
|
||||
border-radius: 6px;
|
||||
color: #65ad23;
|
||||
background: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.am-intro {
|
||||
position: relative;
|
||||
min-height: 560px;
|
||||
margin-bottom: 150px;
|
||||
padding: 62px 74px 74px 370px;
|
||||
border-radius: 58px;
|
||||
background: rgba(248, 252, 255, .96);
|
||||
box-shadow: 0 18px 40px rgba(1, 100, 170, .15);
|
||||
}
|
||||
|
||||
.am-intro__image {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
bottom: -24px;
|
||||
left: -86px;
|
||||
width: 390px;
|
||||
max-width: 390px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.am-intro__star,
|
||||
.am-intro__cloud {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.am-intro__star {
|
||||
top: -32px;
|
||||
left: -30px;
|
||||
width: 86px;
|
||||
}
|
||||
|
||||
.am-intro__cloud {
|
||||
right: -34px;
|
||||
bottom: -30px;
|
||||
width: 235px;
|
||||
}
|
||||
|
||||
.am-intro__content {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
max-width: 690px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-intro h2 {
|
||||
margin-bottom: 28px;
|
||||
color: #0780ed;
|
||||
font-size: clamp(31px, 3.2vw, 50px);
|
||||
font-weight: 800;
|
||||
line-height: 1.08;
|
||||
letter-spacing: -1.8px;
|
||||
}
|
||||
|
||||
.am-intro p {
|
||||
margin-bottom: 0;
|
||||
font-size: 18px;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.am-section {
|
||||
margin-bottom: 150px;
|
||||
}
|
||||
|
||||
.am-section__heading {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: min(760px, 76%);
|
||||
margin: 0 auto 22px;
|
||||
}
|
||||
|
||||
.am-rewards-grid,
|
||||
.am-steps-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 26px;
|
||||
}
|
||||
|
||||
.am-reward,
|
||||
.am-step,
|
||||
.am-terms {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 2px solid rgba(255, 255, 255, .68);
|
||||
background: rgba(250, 253, 255, .96);
|
||||
box-shadow: 0 12px 28px rgba(0, 102, 171, .12);
|
||||
}
|
||||
|
||||
.am-reward {
|
||||
height: 520px;
|
||||
padding: 30px 32px 24px;
|
||||
border-radius: 38px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.am-reward--wide {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.15fr;
|
||||
align-items: center;
|
||||
height: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-card-label {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
padding: 8px 18px;
|
||||
border-radius: 18px;
|
||||
color: #fff;
|
||||
background: linear-gradient(90deg, #0784f2, #177fea);
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.am-card-label strong {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.am-card-label span {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.am-reward h3 {
|
||||
margin-bottom: 8px;
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.am-reward h3 strong {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.am-reward__image {
|
||||
max-height: 315px;
|
||||
margin: 14px auto 0;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.am-reward--wide .am-reward__image {
|
||||
max-height: 260px;
|
||||
}
|
||||
|
||||
.am-reward--wide h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.am-reward--wide h3 strong {
|
||||
margin-top: 4px;
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.am-reward__fineprint {
|
||||
margin: 12px 0 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.am-steps-grid {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.am-step {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 24px;
|
||||
padding: 42px 36px;
|
||||
border-radius: 38px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-step__content {
|
||||
display: flex;
|
||||
flex: 1 1 56%;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.am-step__visual {
|
||||
display: flex;
|
||||
flex: 0 0 40%;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.am-step__number {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 24px;
|
||||
color: var(--am-blue);
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.am-step__number strong {
|
||||
display: inline-grid;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
background: var(--am-blue);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.am-step p {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
font-size: 18px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.am-step__note {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
color: #505b67;
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.am-step__icon {
|
||||
position: static;
|
||||
width: 100%;
|
||||
max-height: 245px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.am-step:nth-child(1) .am-step__icon {
|
||||
max-width: 212px;
|
||||
max-height: 215px;
|
||||
}
|
||||
|
||||
.am-step:nth-child(2) .am-step__icon {
|
||||
max-width: 245px;
|
||||
max-height: 235px;
|
||||
}
|
||||
|
||||
.am-step:nth-child(3) .am-step__icon {
|
||||
max-width: 230px;
|
||||
max-height: 195px;
|
||||
}
|
||||
|
||||
.am-step:nth-child(4) .am-step__icon {
|
||||
max-width: 230px;
|
||||
max-height: 205px;
|
||||
}
|
||||
|
||||
.am-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 210px;
|
||||
padding: 10px 26px;
|
||||
border: 0;
|
||||
border-radius: 24px;
|
||||
color: #fff !important;
|
||||
background: linear-gradient(180deg, #2697ff, #0874e8);
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
text-decoration: none !important;
|
||||
box-shadow: 0 7px 14px rgba(0, 101, 205, .2);
|
||||
transition: transform .18s ease, box-shadow .18s ease;
|
||||
}
|
||||
|
||||
a.am-button:hover,
|
||||
a.am-button:focus {
|
||||
color: #fff;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 18px rgba(0, 101, 205, .28);
|
||||
}
|
||||
|
||||
.am-button[aria-disabled='true'] {
|
||||
cursor: not-allowed;
|
||||
opacity: .72;
|
||||
}
|
||||
|
||||
.am-terms {
|
||||
min-height: 540px;
|
||||
padding: 62px 58px 38px;
|
||||
border-radius: 42px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-terms__item {
|
||||
display: grid;
|
||||
grid-template-columns: 52px 1fr;
|
||||
gap: 20px;
|
||||
padding: 28px 0;
|
||||
border-bottom: 1px dashed #a7bfd0;
|
||||
}
|
||||
|
||||
.am-terms__item:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.am-terms__number {
|
||||
display: grid;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
background: var(--am-blue);
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.am-terms p {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.am-footer-space {
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.am-hero {
|
||||
min-height: 800px;
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
.am-hero__mascot {
|
||||
top: 35px;
|
||||
right: -25px;
|
||||
width: 54%;
|
||||
}
|
||||
|
||||
.am-intro {
|
||||
min-height: 420px;
|
||||
margin-bottom: 95px;
|
||||
padding: 48px 45px 55px 300px;
|
||||
}
|
||||
|
||||
.am-reward {
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.am-intro__image {
|
||||
left: -55px;
|
||||
width: 330px;
|
||||
}
|
||||
|
||||
.am-intro__cloud {
|
||||
width: 190px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.ai-mascot-contest[style] {
|
||||
background-size: auto 100%;
|
||||
}
|
||||
|
||||
.am-container {
|
||||
width: min(100% - 28px, 560px);
|
||||
}
|
||||
|
||||
.am-hero {
|
||||
min-height: 690px;
|
||||
padding-top: 32px;
|
||||
}
|
||||
|
||||
.am-hero__inner {
|
||||
min-height: 590px;
|
||||
}
|
||||
|
||||
.am-hero__copy {
|
||||
width: 100%;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.am-hero__eyebrow {
|
||||
margin-bottom: 12px;
|
||||
padding: 6px 12px;
|
||||
border-width: 1px;
|
||||
border-radius: 7px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.am-hero__title {
|
||||
width: 86%;
|
||||
}
|
||||
|
||||
.am-hero__mascot {
|
||||
top: 205px;
|
||||
right: 4%;
|
||||
width: 92%;
|
||||
}
|
||||
|
||||
.am-collaboration {
|
||||
bottom: 20px;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 8px 12px;
|
||||
width: calc(100% - 28px);
|
||||
min-height: 64px;
|
||||
padding: 9px 13px;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.am-collaboration__brands {
|
||||
gap: 7px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.am-collaboration__brands img {
|
||||
width: 62px;
|
||||
}
|
||||
|
||||
.am-collaboration__label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.am-collaboration__date {
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
padding: 7px 9px;
|
||||
border-radius: 13px;
|
||||
}
|
||||
|
||||
.am-collaboration__year {
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
.am-collaboration__date strong {
|
||||
gap: 3px;
|
||||
font-size: 15px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.am-collaboration__date i {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.am-collaboration__date small {
|
||||
font-size: 7px;
|
||||
}
|
||||
|
||||
.am-intro {
|
||||
display: block;
|
||||
min-height: 0;
|
||||
margin-bottom: 72px;
|
||||
padding: 70px 20px 190px;
|
||||
border-radius: 28px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-intro__image {
|
||||
bottom: -18px;
|
||||
left: -18px;
|
||||
width: 155px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.am-intro__star {
|
||||
top: -20px;
|
||||
left: -12px;
|
||||
width: 44px;
|
||||
}
|
||||
|
||||
.am-intro__cloud {
|
||||
right: -16px;
|
||||
bottom: -12px;
|
||||
width: 105px;
|
||||
}
|
||||
|
||||
.am-intro h2 {
|
||||
margin-bottom: 14px;
|
||||
font-size: 25px;
|
||||
letter-spacing: -.8px;
|
||||
}
|
||||
|
||||
.am-intro p {
|
||||
font-size: 14px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.am-section {
|
||||
margin-bottom: 76px;
|
||||
}
|
||||
|
||||
.am-section__heading {
|
||||
width: min(340px, 88%);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.am-rewards-grid,
|
||||
.am-steps-grid {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.am-reward {
|
||||
height: auto;
|
||||
padding: 21px 12px 15px;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.am-reward--wide {
|
||||
padding: 20px 14px;
|
||||
}
|
||||
|
||||
.am-card-label {
|
||||
gap: 5px;
|
||||
margin-bottom: 13px;
|
||||
padding: 6px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.am-card-label strong {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.am-card-label span {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-reward h3 {
|
||||
font-size: 13px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-reward--wide h3 {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.am-reward--wide h3 strong {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.am-reward__image {
|
||||
max-height: 190px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.am-reward--wide .am-reward__image {
|
||||
max-height: 155px;
|
||||
}
|
||||
|
||||
.am-reward__fineprint {
|
||||
font-size: 8px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.am-step {
|
||||
display: block;
|
||||
padding: 22px 15px 132px;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.am-step__content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.am-step__visual {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
width: 44%;
|
||||
height: 112px;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.am-step__number {
|
||||
gap: 5px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.am-step__number strong {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.am-step p,
|
||||
.am-step__note {
|
||||
width: 100%;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.am-step p {
|
||||
margin-bottom: 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.am-step__note {
|
||||
margin-top: 12px;
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
.am-step__icon {
|
||||
width: 100%;
|
||||
max-height: 115px;
|
||||
opacity: .98;
|
||||
}
|
||||
|
||||
.am-step:nth-child(n) .am-step__icon {
|
||||
width: 100%;
|
||||
max-width: 120px;
|
||||
max-height: 115px;
|
||||
}
|
||||
|
||||
.am-button {
|
||||
min-width: 112px;
|
||||
padding: 7px 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.am-terms {
|
||||
min-height: 0;
|
||||
padding: 28px 18px 16px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
.am-terms__item {
|
||||
grid-template-columns: 31px 1fr;
|
||||
gap: 9px;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.am-terms__number {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.am-terms p {
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.am-footer-space {
|
||||
height: 90px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.am-hero {
|
||||
min-height: 630px;
|
||||
}
|
||||
|
||||
.am-hero__mascot {
|
||||
top: 185px;
|
||||
}
|
||||
|
||||
.am-collaboration {
|
||||
bottom: 12px;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
.esun-back-to-top {
|
||||
position: fixed;
|
||||
right: 28px;
|
||||
bottom: 90px;
|
||||
z-index: 90;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
padding: 0;
|
||||
border: 1px solid #17a957;
|
||||
border-radius: 50%;
|
||||
background: #17a957;
|
||||
color: #fff;
|
||||
box-shadow: 0 6px 18px rgba(23, 169, 87, .25);
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: translateY(12px);
|
||||
transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .15s ease;
|
||||
}
|
||||
|
||||
.esun-back-to-top.is-visible {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.esun-back-to-top:hover,
|
||||
.esun-back-to-top:focus-visible {
|
||||
background: #128c48;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.esun-back-to-top:focus-visible {
|
||||
outline: 3px solid rgba(23, 169, 87, .25);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.esun-back-to-top {
|
||||
right: 16px;
|
||||
bottom: 90px;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.esun-back-to-top {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
.esun-cookie-consent {
|
||||
background: #fff;
|
||||
border: 1px solid rgba(20, 48, 40, 0.12);
|
||||
border-radius: 12px;
|
||||
bottom: 24px;
|
||||
box-shadow: 0 12px 40px rgba(15, 35, 29, 0.2);
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
left: 24px;
|
||||
max-width: 560px;
|
||||
opacity: 0;
|
||||
padding: 24px;
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
transform: translateY(16px);
|
||||
transition: opacity 180ms ease, transform 180ms ease;
|
||||
visibility: hidden;
|
||||
width: calc(100% - 40px);
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.esun-cookie-consent._show {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.esun-cookie-consent *,
|
||||
.esun-cookie-consent *::before,
|
||||
.esun-cookie-consent *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__content {
|
||||
align-items: stretch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-right: 24px;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__close {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
color: #5e6d68;
|
||||
display: flex;
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
float: none;
|
||||
height: 32px;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: absolute !important;
|
||||
right: 12px !important;
|
||||
top: 12px !important;
|
||||
width: 32px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__close:hover,
|
||||
.esun-cookie-consent__close:focus {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: #16231f;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__message {
|
||||
color: #24332f;
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0 0 18px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__privacy-link {
|
||||
color: #168b58;
|
||||
display: inline;
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__privacy-link:hover,
|
||||
.esun-cookie-consent__privacy-link:focus {
|
||||
color: #0d6b42;
|
||||
}
|
||||
|
||||
.esun-cookie-consent .esun-cookie-consent__accept {
|
||||
align-self: flex-start;
|
||||
background: #159b64;
|
||||
border: 1px solid #159b64;
|
||||
border-radius: 999px;
|
||||
box-shadow: none;
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
min-width: 0;
|
||||
padding: 10px 18px;
|
||||
}
|
||||
|
||||
.esun-cookie-consent .esun-cookie-consent__accept:hover,
|
||||
.esun-cookie-consent .esun-cookie-consent__accept:focus {
|
||||
background: #0d7f50;
|
||||
border-color: #0d7f50;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.esun-cookie-consent {
|
||||
bottom: 12px;
|
||||
left: 12px;
|
||||
max-height: calc(100vh - 24px);
|
||||
max-height: calc(100dvh - 24px);
|
||||
max-width: none;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: 18px 16px 16px;
|
||||
right: auto;
|
||||
width: calc(100vw - 24px) !important;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__content {
|
||||
min-width: 0;
|
||||
padding-right: 24px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__message,
|
||||
.esun-cookie-consent__message span,
|
||||
.esun-cookie-consent__privacy-link {
|
||||
max-width: 100%;
|
||||
white-space: normal !important;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__message {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 14px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.esun-cookie-consent .esun-cookie-consent__accept {
|
||||
align-self: stretch;
|
||||
padding: 11px 18px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.esun-cookie-consent .esun-cookie-consent__accept > span {
|
||||
color: #fff !important;
|
||||
display: inline !important;
|
||||
font-size: 14px;
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__close {
|
||||
right: 8px !important;
|
||||
top: 8px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) and (max-height: 480px) {
|
||||
.esun-cookie-consent {
|
||||
bottom: 8px;
|
||||
left: 8px;
|
||||
max-height: calc(100vh - 16px);
|
||||
max-height: calc(100dvh - 16px);
|
||||
padding: 12px 42px 12px 14px;
|
||||
width: calc(100vw - 16px) !important;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__content {
|
||||
align-items: center;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.esun-cookie-consent__message {
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.esun-cookie-consent .esun-cookie-consent__accept {
|
||||
align-self: center;
|
||||
padding: 9px 14px;
|
||||
white-space: nowrap;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.esun-cookie-consent {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 716 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" role="img" aria-label="Australia">
|
||||
<rect width="60" height="40" fill="#012169"/>
|
||||
<g transform="scale(.45)">
|
||||
<path stroke="#fff" stroke-width="8" d="M0 0l60 40M60 0L0 40"/>
|
||||
<path stroke="#c8102e" stroke-width="3" d="M0 0l60 40M60 0L0 40"/>
|
||||
<path stroke="#fff" stroke-width="13" d="M30 0v40M0 20h60"/>
|
||||
<path stroke="#c8102e" stroke-width="7" d="M30 0v40M0 20h60"/>
|
||||
</g>
|
||||
<g fill="#fff">
|
||||
<circle cx="18" cy="29" r="2.5"/><circle cx="42" cy="9" r="2"/><circle cx="50" cy="18" r="2"/>
|
||||
<circle cx="40" cy="25" r="2"/><circle cx="51" cy="32" r="2"/><circle cx="45" cy="20" r="1"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 679 B |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" role="img" aria-label="European Union">
|
||||
<rect width="60" height="40" fill="#003399"/>
|
||||
<g fill="#ffcc00" transform="translate(30 20)">
|
||||
<circle cy="-12" r="1.7"/><circle cx="6" cy="-10.39" r="1.7"/><circle cx="10.39" cy="-6" r="1.7"/>
|
||||
<circle cx="12" r="1.7"/><circle cx="10.39" cy="6" r="1.7"/><circle cx="6" cy="10.39" r="1.7"/>
|
||||
<circle cy="12" r="1.7"/><circle cx="-6" cy="10.39" r="1.7"/><circle cx="-10.39" cy="6" r="1.7"/>
|
||||
<circle cx="-12" r="1.7"/><circle cx="-10.39" cy="-6" r="1.7"/><circle cx="-6" cy="-10.39" r="1.7"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 622 B |
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" role="img" aria-label="United Kingdom">
|
||||
<rect width="60" height="40" fill="#012169"/>
|
||||
<path stroke="#fff" stroke-width="8" d="M0 0l60 40M60 0L0 40"/>
|
||||
<path stroke="#c8102e" stroke-width="3" d="M0 0l60 40M60 0L0 40"/>
|
||||
<path stroke="#fff" stroke-width="13" d="M30 0v40M0 20h60"/>
|
||||
<path stroke="#c8102e" stroke-width="7" d="M30 0v40M0 20h60"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 418 B |
@@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" role="img" aria-label="United States">
|
||||
<rect width="60" height="40" fill="#fff"/>
|
||||
<path fill="#b22234" d="M0 0h60v3.08H0zm0 6.15h60v3.08H0zm0 6.16h60v3.08H0zm0 6.15h60v3.08H0zm0 6.16h60v3.08H0zm0 6.15h60v3.08H0zm0 6.15h60V40H0z"/>
|
||||
<rect width="28" height="21.54" fill="#3c3b6e"/>
|
||||
<g fill="#fff">
|
||||
<circle cx="3" cy="3" r="1"/><circle cx="8.5" cy="3" r="1"/><circle cx="14" cy="3" r="1"/><circle cx="19.5" cy="3" r="1"/><circle cx="25" cy="3" r="1"/>
|
||||
<circle cx="5.75" cy="7.3" r="1"/><circle cx="11.25" cy="7.3" r="1"/><circle cx="16.75" cy="7.3" r="1"/><circle cx="22.25" cy="7.3" r="1"/>
|
||||
<circle cx="3" cy="11.6" r="1"/><circle cx="8.5" cy="11.6" r="1"/><circle cx="14" cy="11.6" r="1"/><circle cx="19.5" cy="11.6" r="1"/><circle cx="25" cy="11.6" r="1"/>
|
||||
<circle cx="5.75" cy="15.9" r="1"/><circle cx="11.25" cy="15.9" r="1"/><circle cx="16.75" cy="15.9" r="1"/><circle cx="22.25" cy="15.9" r="1"/>
|
||||
<circle cx="3" cy="20.2" r="1"/><circle cx="8.5" cy="20.2" r="1"/><circle cx="14" cy="20.2" r="1"/><circle cx="19.5" cy="20.2" r="1"/><circle cx="25" cy="20.2" r="1"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1781428124037" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9674" width="20" height="20" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M301.843 800.508c-14.02 14.021-37.259 13.516-51.903-1.129-14.499-14.498-15.14-37.419-1.546-51.48l0.417-0.423 456.351-456.354c14.022-14.021 37.26-13.516 51.905 1.129 14.498 14.498 15.139 37.42 1.545 51.48l-0.416 0.424-456.353 456.353z" p-id="9675" fill="#333333"></path><path d="M789.596 697.385c0 20.71-16.79 37.5-37.5 37.5-20.503 0-37.164-16.456-37.495-36.88l-0.005-0.62v-401.25c0-20.711 16.79-37.5 37.5-37.5 20.503 0 37.164 16.455 37.495 36.88l0.005 0.62v401.25z" p-id="9676" fill="#333333"></path><path d="M352.206 333.397c-20.71 0-37.5-16.789-37.5-37.5 0-20.503 16.455-37.164 36.88-37.494l0.62-0.006h400.706c20.711 0 37.5 16.79 37.5 37.5 0 20.503-16.455 37.164-36.88 37.495l-0.62 0.005H352.206z" p-id="9677" fill="#333333"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1781428124037" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9674" width="20" height="20" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M301.843 800.508c-14.02 14.021-37.259 13.516-51.903-1.129-14.499-14.498-15.14-37.419-1.546-51.48l0.417-0.423 456.351-456.354c14.022-14.021 37.26-13.516 51.905 1.129 14.498 14.498 15.139 37.42 1.545 51.48l-0.416 0.424-456.353 456.353z" p-id="9675" fill="#ffffff"></path><path d="M789.596 697.385c0 20.71-16.79 37.5-37.5 37.5-20.503 0-37.164-16.456-37.495-36.88l-0.005-0.62v-401.25c0-20.711 16.79-37.5 37.5-37.5 20.503 0 37.164 16.455 37.495 36.88l0.005 0.62v401.25z" p-id="9676" fill="#ffffff"></path><path d="M352.206 333.397c-20.71 0-37.5-16.789-37.5-37.5 0-20.503 16.455-37.164 36.88-37.494l0.62-0.006h400.706c20.711 0 37.5 16.79 37.5 37.5 0 20.503-16.455 37.164-36.88 37.495l-0.62 0.005H352.206z" p-id="9677" fill="#ffffff"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 136 KiB |
@@ -0,0 +1,40 @@
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
// mobile footer links expand
|
||||
console.log('here11');
|
||||
$('.es-footer-links-inner h4').click(function () {
|
||||
console.log('here22');
|
||||
$(this).toggleClass('open');
|
||||
$(this).next().slideToggle();
|
||||
});
|
||||
|
||||
return function (config, element) {
|
||||
var ticking = false;
|
||||
|
||||
function updateVisibility() {
|
||||
var show = window.pageYOffset > Math.max(window.innerHeight, 600);
|
||||
|
||||
element.classList.toggle('is-visible', show);
|
||||
element.setAttribute('aria-hidden', show ? 'false' : 'true');
|
||||
ticking = false;
|
||||
}
|
||||
|
||||
function requestUpdate() {
|
||||
if (!ticking) {
|
||||
window.requestAnimationFrame(updateVisibility);
|
||||
ticking = true;
|
||||
}
|
||||
}
|
||||
|
||||
element.addEventListener('click', function () {
|
||||
window.scrollTo({top: 0, behavior: 'smooth'});
|
||||
});
|
||||
window.addEventListener('scroll', requestUpdate, {passive: true});
|
||||
window.addEventListener('resize', requestUpdate);
|
||||
updateVisibility();
|
||||
};
|
||||
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
define(['jquery'], function ($) {
|
||||
'use strict';
|
||||
|
||||
var COOKIE_NAME = 'esun_cookie_consent',
|
||||
COOKIE_VALUE = 'accepted',
|
||||
COOKIE_MAX_AGE = 60 * 60 * 24 * 365;
|
||||
|
||||
function hasConsent() {
|
||||
return document.cookie.split(';').some(function (cookie) {
|
||||
return cookie.trim() === COOKIE_NAME + '=' + COOKIE_VALUE;
|
||||
});
|
||||
}
|
||||
|
||||
function saveConsent() {
|
||||
var cookie = COOKIE_NAME + '=' + COOKIE_VALUE +
|
||||
'; Max-Age=' + COOKIE_MAX_AGE +
|
||||
'; Path=/' +
|
||||
'; SameSite=Lax';
|
||||
|
||||
if (window.location.protocol === 'https:') {
|
||||
cookie += '; Secure';
|
||||
}
|
||||
|
||||
document.cookie = cookie;
|
||||
}
|
||||
|
||||
return function (config, element) {
|
||||
var $consent = $(element),
|
||||
$acceptButton = $consent.find('[data-role=accept-all-cookies]'),
|
||||
$closeButton = $consent.find('[data-role=close-cookie-consent]');
|
||||
|
||||
function closeConsent() {
|
||||
$consent.attr('aria-hidden', 'true').removeClass('_show');
|
||||
|
||||
window.setTimeout(function () {
|
||||
$consent.remove();
|
||||
}, 200);
|
||||
}
|
||||
|
||||
if (hasConsent()) {
|
||||
$consent.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
$consent.attr('aria-hidden', 'false').addClass('_show');
|
||||
|
||||
$acceptButton.one('click', function () {
|
||||
saveConsent();
|
||||
closeConsent();
|
||||
});
|
||||
|
||||
$closeButton.one('click', closeConsent);
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,180 @@
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
return function (config, element) {
|
||||
var data = config.data || {};
|
||||
var markets = data.markets || {};
|
||||
var $root = $(element);
|
||||
var $footerMarket = $root.find('[data-role="market"]');
|
||||
var $footerLanguage = $root.find('[data-role="language"]');
|
||||
var $headerMarket = $('.global-switcher [data-role="market"]').first();
|
||||
var $headerLanguage = $('.global-switcher [data-role="language"]').first();
|
||||
var $marketPicker = $root.find('[data-role="footer-market-picker"]');
|
||||
var $marketTrigger = $marketPicker.find('[data-role="footer-market-picker-trigger"]');
|
||||
var $marketMenu = $marketPicker.find('[data-role="footer-market-picker-menu"]');
|
||||
var $marketOptions = $marketPicker.find('[data-role="footer-market-picker-option"]');
|
||||
var $languagePicker = $root.find('[data-role="footer-language-picker"]');
|
||||
var $languageTrigger = $languagePicker.find('[data-role="footer-language-picker-trigger"]');
|
||||
var $languageMenu = $languagePicker.find('[data-role="footer-language-picker-menu"]');
|
||||
var $languageOptions = $languagePicker.find('[data-role="footer-language-picker-option"]');
|
||||
|
||||
function closeMarketPicker() {
|
||||
$marketTrigger.attr('aria-expanded', 'false');
|
||||
$marketMenu.attr('hidden', true);
|
||||
}
|
||||
|
||||
function closeLanguagePicker() {
|
||||
$languageTrigger.attr('aria-expanded', 'false');
|
||||
$languageMenu.attr('hidden', true);
|
||||
}
|
||||
|
||||
function syncVisibleValue(marketCode) {
|
||||
var $selected = $marketOptions.filter(function () {
|
||||
return String($(this).attr('data-market-code')) === String(marketCode);
|
||||
}).first();
|
||||
|
||||
if (!$selected.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
$marketTrigger.find('[data-role="footer-market-picker-flag"]')
|
||||
.attr('src', $selected.attr('data-market-flag'));
|
||||
$marketTrigger.find('[data-role="footer-market-picker-label"]')
|
||||
.text($.trim($selected.find('.market-picker__option-label').text()));
|
||||
$marketOptions.attr('aria-selected', 'false');
|
||||
$selected.attr('aria-selected', 'true');
|
||||
}
|
||||
|
||||
function syncLanguageValue(languageCode) {
|
||||
var $selected = $languageOptions.filter(function () {
|
||||
return String($(this).attr('data-language-code')) === String(languageCode);
|
||||
}).first();
|
||||
|
||||
if (!$selected.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
$languageTrigger.find('[data-role="footer-language-picker-label"]')
|
||||
.text($.trim($selected.find('.market-picker__option-label').text()));
|
||||
$languageOptions.attr('aria-selected', 'false');
|
||||
$selected.attr('aria-selected', 'true');
|
||||
}
|
||||
|
||||
function getLanguage(marketCode, languageCode) {
|
||||
var market = markets[String(marketCode)];
|
||||
|
||||
return market && market.languages[String(languageCode)];
|
||||
}
|
||||
|
||||
function setStoreCookies(storeCode) {
|
||||
var attributes = '; path=/; max-age=31536000; SameSite=Lax';
|
||||
|
||||
if (!storeCode) {
|
||||
return;
|
||||
}
|
||||
if (window.location.protocol === 'https:') {
|
||||
attributes += '; Secure';
|
||||
}
|
||||
|
||||
document.cookie = 'market=' + encodeURIComponent(storeCode) + attributes;
|
||||
document.cookie = 'store=' + encodeURIComponent(storeCode) + attributes;
|
||||
}
|
||||
|
||||
if ($headerMarket.length) {
|
||||
$footerMarket.val($headerMarket.val());
|
||||
}
|
||||
syncVisibleValue($footerMarket.val());
|
||||
syncLanguageValue($footerLanguage.val());
|
||||
|
||||
$footerMarket.on('change', function () {
|
||||
syncVisibleValue($(this).val());
|
||||
|
||||
if ($headerMarket.length) {
|
||||
$headerMarket.val($footerMarket.val()).trigger('change');
|
||||
}
|
||||
});
|
||||
|
||||
$marketTrigger.on('click', function (event) {
|
||||
var isOpen = $(this).attr('aria-expanded') === 'true';
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
closeLanguagePicker();
|
||||
if (isOpen) {
|
||||
closeMarketPicker();
|
||||
} else {
|
||||
$(this).attr('aria-expanded', 'true');
|
||||
$marketMenu.removeAttr('hidden');
|
||||
}
|
||||
});
|
||||
|
||||
$marketOptions.on('click', function (event) {
|
||||
var marketCode = String($(this).attr('data-market-code') || '');
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
closeMarketPicker();
|
||||
$footerMarket.val(marketCode).trigger('change');
|
||||
});
|
||||
|
||||
$languageTrigger.on('click', function (event) {
|
||||
var isOpen = $(this).attr('aria-expanded') === 'true';
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
closeMarketPicker();
|
||||
if (isOpen) {
|
||||
closeLanguagePicker();
|
||||
} else {
|
||||
$(this).attr('aria-expanded', 'true');
|
||||
$languageMenu.removeAttr('hidden');
|
||||
}
|
||||
});
|
||||
|
||||
$languageOptions.on('click', function (event) {
|
||||
var languageCode = String($(this).attr('data-language-code') || '');
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
closeLanguagePicker();
|
||||
$footerLanguage.val(languageCode).trigger('change');
|
||||
});
|
||||
|
||||
$footerLanguage.on('change', function () {
|
||||
var language = getLanguage($footerMarket.val(), $(this).val());
|
||||
|
||||
syncLanguageValue($(this).val());
|
||||
if ($headerLanguage.length) {
|
||||
$headerLanguage.val($(this).val()).trigger('change');
|
||||
} else if (language && language.url) {
|
||||
setStoreCookies(language.storeCode);
|
||||
window.location.assign(language.url);
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click.footerLocaleSwitcher', function (event) {
|
||||
if (!$(event.target).closest($marketPicker).length) {
|
||||
closeMarketPicker();
|
||||
}
|
||||
if (!$(event.target).closest($languagePicker).length) {
|
||||
closeLanguagePicker();
|
||||
}
|
||||
});
|
||||
|
||||
$marketTrigger.add($marketOptions).on('keydown', function (event) {
|
||||
if (event.key === 'Escape') {
|
||||
closeMarketPicker();
|
||||
$marketTrigger.trigger('focus');
|
||||
}
|
||||
});
|
||||
|
||||
$languageTrigger.add($languageOptions).on('keydown', function (event) {
|
||||
if (event.key === 'Escape') {
|
||||
closeLanguagePicker();
|
||||
$languageTrigger.trigger('focus');
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Header account dropdown. Login state is determined server-side.
|
||||
*/
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
return function () {
|
||||
$(document).on('click.accountMenuV3', '.account-toggle', function (event) {
|
||||
var $trigger = $(this);
|
||||
var $dropdown = $trigger.siblings('.account-dropdown');
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
$('.global-switcher-dropdown, .search-dropdown').slideUp(200);
|
||||
$dropdown.stop(true, true).slideToggle(200, function () {
|
||||
var isOpen = $dropdown.is(':visible');
|
||||
|
||||
$dropdown.attr('aria-hidden', isOpen ? 'false' : 'true');
|
||||
$trigger.attr('aria-expanded', isOpen ? 'true' : 'false');
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click.accountMenuV3', function (event) {
|
||||
if (!$(event.target).closest('.account-link').length) {
|
||||
$('.account-dropdown')
|
||||
.stop(true, true)
|
||||
.slideUp(200)
|
||||
.attr('aria-hidden', 'true');
|
||||
$('.account-toggle').attr('aria-expanded', 'false');
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* Header Top Links - controls for global switcher, search dropdown
|
||||
*/
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
return function (config) {
|
||||
var $globalTrigger = $('.global-switcher-trigger');
|
||||
var $globalDropdown = $('.global-switcher-dropdown');
|
||||
var $searchTrigger = $('.search-toggle');
|
||||
var $searchDropdown = $('.search-dropdown');
|
||||
|
||||
// Global Switcher: toggle dropdown
|
||||
$globalTrigger.on('click', function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
$searchDropdown.slideUp(200);
|
||||
$('.account-dropdown').slideUp(200);
|
||||
$globalDropdown.slideToggle(200);
|
||||
});
|
||||
|
||||
// Search: toggle dropdown
|
||||
$searchTrigger.on('click', function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
$globalDropdown.slideUp(200);
|
||||
$('.account-dropdown').slideUp(200);
|
||||
$searchDropdown.slideToggle(200, function () {
|
||||
if ($searchDropdown.is(':visible')) {
|
||||
$searchDropdown.find('input').first().focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Close dropdowns when clicking outside
|
||||
$(document).on('click', function (e) {
|
||||
if (!$(e.target).closest('.global-switcher').length) {
|
||||
$globalDropdown.slideUp(200);
|
||||
}
|
||||
if (!$(e.target).closest('.search-trigger, .search-dropdown').length) {
|
||||
$searchDropdown.slideUp(200);
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,84 @@
|
||||
define([
|
||||
'jquery'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
var breakpointCounts = {
|
||||
desktop: function (desktopCount) {
|
||||
return desktopCount;
|
||||
},
|
||||
tablet: function (desktopCount) {
|
||||
return Math.min(desktopCount, 3);
|
||||
},
|
||||
mobile: function () {
|
||||
return 2;
|
||||
},
|
||||
'mobile-small': function () {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the requested desktop product count from a Page Builder CSS class.
|
||||
*
|
||||
* @param {jQuery} $element
|
||||
* @returns {Number|null}
|
||||
*/
|
||||
function getDesktopCount($element) {
|
||||
if ($element.hasClass('products-show-3')) {
|
||||
return 3;
|
||||
}
|
||||
|
||||
if ($element.hasClass('products-show-4')) {
|
||||
return 4;
|
||||
}
|
||||
|
||||
if ($element.hasClass('products-show-5')) {
|
||||
return 5;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the product count without mutating Page Builder's shared config.
|
||||
*
|
||||
* @param {Object} config
|
||||
* @param {Number} desktopCount
|
||||
* @returns {Object}
|
||||
*/
|
||||
function buildConfig(config, desktopCount) {
|
||||
var localConfig = $.extend(true, {}, config);
|
||||
|
||||
$.each(localConfig.breakpoints, function (breakpointName, breakpoint) {
|
||||
var countResolver = breakpointCounts[breakpointName],
|
||||
slidesToShow;
|
||||
|
||||
if (!countResolver) {
|
||||
return;
|
||||
}
|
||||
|
||||
slidesToShow = countResolver(desktopCount);
|
||||
breakpoint.options = breakpoint.options || {};
|
||||
breakpoint.options.products = breakpoint.options.products || {};
|
||||
breakpoint.options.products.default = breakpoint.options.products.default || {};
|
||||
breakpoint.options.products.continuous = breakpoint.options.products.continuous || {};
|
||||
breakpoint.options.products.default.slidesToShow = slidesToShow;
|
||||
breakpoint.options.products.continuous.slidesToShow = slidesToShow;
|
||||
});
|
||||
|
||||
return localConfig;
|
||||
}
|
||||
|
||||
return function (originalWidget) {
|
||||
return function (config, element) {
|
||||
var desktopCount = getDesktopCount($(element));
|
||||
|
||||
if (desktopCount === null) {
|
||||
return originalWidget(config, element);
|
||||
}
|
||||
|
||||
return originalWidget(buildConfig(config, desktopCount), element);
|
||||
};
|
||||
};
|
||||
});
|
||||