init
@@ -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);
|
||||
};
|
||||
};
|
||||
});
|
||||