Skip to content

Commit 5e0c24c

Browse files
authored
Cookie and footer changes (#2400)
1 parent dc88bef commit 5e0c24c

File tree

6 files changed

+54
-34
lines changed

6 files changed

+54
-34
lines changed

_includes/cookie-consent.html

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,46 @@
1313
color: rgba(255, 255, 255, 1);
1414
}
1515

16-
#cookie-notice-text {
16+
.buttons-block {
1717
display: flex;
18-
flex-direction: column;
19-
justify-content: center;
20-
width: 65%;
18+
gap: 16px;
2119
}
2220

23-
#cookie-notice-close {
24-
position: absolute;
25-
top: 1.5rem;
26-
right: 1.5rem;
27-
color: #fff;
21+
.buttons-block button {
22+
font-size: 16px;
23+
font-weight: 500;
24+
line-height: 28px;
25+
border-radius: 4px;
26+
height: 40px;
27+
width: 140px;
28+
color: #FFF;
2829
}
2930

30-
#cookie-notice-close i {
31-
font-size: 20px;
31+
.buttons-block button:hover {
32+
opacity: 0.8;
3233
}
3334

34-
#cookie-notice-text span {
35-
font-size: 14px;
35+
.buttons-block button#cookie-notice-accept {
36+
background: #2A7DEC;
3637
}
3738

38-
#cookie-notice-text label {
39-
font-size: 20px;
39+
.buttons-block button#cookie-notice-close {
40+
background: rgba(255, 255, 255, 0.05);
4041
}
4142

42-
#cookie-notice #cookie-notice-accept {
43+
#cookie-notice-text {
4344
display: flex;
44-
text-align: center;
45+
flex-direction: column;
4546
justify-content: center;
46-
cursor: pointer;
47-
margin-left: 3.5rem;
48-
height: 40px;
49-
font-size: 18px;
50-
width: 140px;
47+
width: 65%;
48+
}
49+
50+
#cookie-notice-text span {
51+
font-size: 14px;
52+
}
53+
54+
#cookie-notice-text label {
55+
font-size: 20px;
5156
}
5257

5358
@media (max-width: 767px) {
@@ -58,12 +63,7 @@
5863

5964
#cookie-notice-text {
6065
width: 100%;
61-
}
62-
63-
#cookie-notice #cookie-notice-accept {
64-
margin-top: 1.3rem;
65-
margin-left: 0;
66-
width: 100%;
66+
margin-bottom: 40px;
6767
}
6868
}
6969
</style>
@@ -74,10 +74,10 @@
7474
href="/cookie-policy/" target="_blank">cookie policy.</a><span class=""></span>
7575
</span>
7676
</div>
77-
<button id="cookie-notice-accept" class="btn btn-primary btn-sm">Accept</button>
78-
<button id="cookie-notice-close" aria-label="Close the cookie notice button">
79-
<i class="fa fa-times"></i>
80-
</button>
77+
<div class="buttons-block">
78+
<button id="cookie-notice-accept">Accept</button>
79+
<button id="cookie-notice-close" aria-label="Close the cookie notice button">Deny</button>
80+
</div>
8181
</div>
8282
<script>
8383
function readCookieValue(value) {

_includes/footer.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@
1212
$('#mlb2-7341216').css('display', 'block');
1313
}
1414
</script>
15-
<button id="Footer_SignUpForNews" class="n-button try subscribe gtm_button "
16-
onClick="subscribeForNewsletter(event)">Sign up for ThingsBoard news</button>
15+
<div class="footer-top-section">
16+
<button id="Footer_SignUpForNews" class="n-button try subscribe gtm_button "
17+
onClick="subscribeForNewsletter(event)">Sign up for ThingsBoard news</button>
18+
<div class="footer-top-img-section">
19+
<img src="/images/crozdesk-2.webp" alt="ThingsBoard achievement — Crozdesk Quality Choice Top-Ranked Solution 2025">
20+
<img src="/images/crozdesk-1.webp" alt="ThingsBoard achievement — Crozdesk Trusted Vendor High Market Presence 2025">
21+
<img src="/images/supplier-retail.webp" alt="ThingsBoard achievement — Top Supplier in Retail 2024">
22+
</div>
23+
</div>
1724
<div id="mlb2-7341216" class="ml-subscribe-form ml-subscribe-form-7341216" style="display: none; max-width: 100%;">
1825
<!-- <div id="mlb2-7341216" class="ml-subscribe-form ml-subscribe-form-7341216" style="display: block;">-->
1926
<div class="ml-vertical-align-center">

_sass/_base.sass

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,19 @@ footer
678678
.newsletterSubsContainer
679679
height: 106px
680680

681+
.footer-top-section
682+
display: flex
683+
align-items: center
684+
flex-wrap: wrap
685+
justify-content: space-between
686+
width: 100%
687+
gap: 30px
688+
@media (max-width: 655px)
689+
justify-content: center
690+
.footer-top-img-section
691+
display: flex
692+
gap: 40px
693+
681694
.loading
682695
margin: 0
683696
height: 47px

images/crozdesk-1.webp

3.23 KB
Loading

images/crozdesk-2.webp

3.29 KB
Loading

images/supplier-retail.webp

1.56 KB
Loading

0 commit comments

Comments
 (0)