@repobit/dex-system-design 0.19.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/package.json +2 -3
- package/src/components/accordion/accordion-bg.css.js +135 -77
- package/src/components/accordion/accordion-bg.js +22 -6
- package/src/components/accordion/accordion-bg.stories.js +251 -0
- package/src/components/accordion/accordion-light.stories.js +216 -0
- package/src/components/badge/badge.css.js +44 -6
- package/src/components/badge/badge.js +40 -2
- package/src/components/cards/card.css.js +245 -0
- package/src/components/cards/card.js +79 -0
- package/src/components/cards/card.stories.js +512 -0
- package/src/components/carousel/carousel.css.js +43 -35
- package/src/components/footer/footer-links-group.css.js +1 -1
- package/src/components/footer/footer-lp.stories.js +27 -61
- package/src/components/footer/footer-nav-menu.css.js +9 -10
- package/src/components/footer/footer.css.js +95 -2
- package/src/components/footer/footer.js +16 -30
- package/src/components/footer/footer.stories.js +166 -48
- package/src/components/light-carousel/light-carousel.stories.js +3 -3
- package/src/components/pricing-cards/pricing-card-actions.js +1 -1
- package/src/components/pricing-cards/pricing-card.css.js +28 -3
- package/src/components/pricing-cards/pricing-card.js +1 -14
- package/src/tokens/layout.css +3 -3
- package/src/tokens/tokens.css +0 -23
- package/src/components/accordion/accordion-no-bg.css.js +0 -114
- package/src/components/accordion/accordion-no-bg.js +0 -80
|
@@ -71,45 +71,52 @@ export default css`
|
|
|
71
71
|
text-align: center;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
.bd-left-arrow {
|
|
75
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" transform="matrix(-1 0 0 1 40 0)" fill="%23006DFF"/><path d="M23.3431 14.4142L21.9289 13L14.8579 20.071L16.2721 21.4853L23.3431 14.4142Z" fill="white"/><path d="M16.2721 18.6568L14.8579 20.071L21.9289 27.1421L23.3431 25.7279L16.2721 18.6568Z" fill="white"/></svg>');
|
|
76
|
+
}
|
|
77
77
|
|
|
78
|
-
.bd-left-arrow:hover {
|
|
79
|
-
content: url("/assets/left_hover.svg");
|
|
80
|
-
}
|
|
81
78
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
.bd-left-arrow:hover {
|
|
80
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" transform="matrix(-1 0 0 1 40 0)" fill="%230059D6"/><path d="M23.3431 14.4142L21.9289 13L14.8579 20.071L16.2721 21.4853L23.3431 14.4142Z" fill="white"/><path d="M16.2721 18.6568L14.8579 20.071L21.9289 27.1421L23.3431 25.7279L16.2721 18.6568Z" fill="white"/></svg>');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.bd-left-arrow:active {
|
|
84
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" transform="matrix(-1 0 0 1 40 0)" fill="%230045AD"/><path d="M23.3431 14.4142L21.9289 13L14.8579 20.071L16.2721 21.4853L23.3431 14.4142Z" fill="white"/><path d="M16.2721 18.6568L14.8579 20.071L21.9289 27.1421L23.3431 25.7279L16.2721 18.6568Z" fill="white"/></svg>');
|
|
85
|
+
}
|
|
86
|
+
|
|
85
87
|
|
|
86
88
|
.bd-left-arrow:disabled {
|
|
87
|
-
|
|
89
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%23F1F2F3"/><path d="M23.3431 14.4142L21.9289 13L14.8579 20.071L16.2721 21.4853L23.3431 14.4142Z" fill="%23A6ADB4"/><path d="M16.2721 18.6568L14.8579 20.071L21.9289 27.1421L23.3431 25.7279L16.2721 18.6568Z" fill="%23A6ADB4"/></svg>');
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
.bd-right-arrow {
|
|
93
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%23006DFF"/><path d="M16.6569 14.4142L18.0711 13L25.1421 20.071L23.7279 21.4853L16.6569 14.4142Z" fill="white"/><path d="M23.7279 18.6568L25.1421 20.071L18.0711 27.1421L16.6569 25.7279L23.7279 18.6568Z" fill="white"/></svg>');
|
|
94
|
+
}
|
|
93
95
|
|
|
94
|
-
.bd-right-arrow:hover {
|
|
95
|
-
content: url("/assets/right_hover.svg");
|
|
96
|
-
}
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
.bd-right-arrow:hover {
|
|
98
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%230059D6"/><path d="M16.6569 14.4142L18.0711 13L25.1421 20.071L23.7279 21.4853L16.6569 14.4142Z" fill="white"/><path d="M23.7279 18.6568L25.1421 20.071L18.0711 27.1421L16.6569 25.7279L23.7279 18.6568Z" fill="white"/></svg>');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
.bd-right-arrow:active {
|
|
103
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%230045AD"/><path d="M16.6569 14.4142L18.0711 13L25.1421 20.071L23.7279 21.4853L16.6569 14.4142Z" fill="white"/><path d="M23.7279 18.6568L25.1421 20.071L18.0711 27.1421L16.6569 25.7279L23.7279 18.6568Z" fill="white"/></svg>');
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
|
|
102
107
|
.bd-right-arrow:disabled {
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
.bd-right-arrow.bd-disabled {
|
|
106
|
-
content: url("/assets/right_disabled.svg");
|
|
107
|
-
cursor: not-allowed;
|
|
108
|
-
}
|
|
109
|
-
.bd-left-arrow.bd-disabled {
|
|
110
|
-
content: url("/assets/left_disabled.svg");
|
|
111
|
-
cursor: not-allowed;
|
|
108
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%23F1F2F3"/><path d="M16.6569 14.4142L18.0711 13L25.1421 20.071L23.7279 21.4853L16.6569 14.4142Z" fill="%23A6ADB4"/><path d="M23.7279 18.6568L25.1421 20.071L18.0711 27.1421L16.6569 25.7279L23.7279 18.6568Z" fill="%23A6ADB4"/></svg>');
|
|
112
109
|
}
|
|
110
|
+
.bd-right-arrow.bd-disabled {
|
|
111
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%23F1F2F3"/><path d="M16.6569 14.4142L18.0711 13L25.1421 20.071L23.7279 21.4853L16.6569 14.4142Z" fill="%23A6ADB4"/><path d="M23.7279 18.6568L25.1421 20.071L18.0711 27.1421L16.6569 25.7279L23.7279 18.6568Z" fill="%23A6ADB4"/></svg>');
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.bd-left-arrow.bd-disabled {
|
|
116
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="%23F1F2F3"/><path d="M23.3431 14.4142L21.9289 13L14.8579 20.071L16.2721 21.4853L23.3431 14.4142Z" fill="%23A6ADB4"/><path d="M16.2721 18.6568L14.8579 20.071L21.9289 27.1421L23.3431 25.7279L16.2721 18.6568Z" fill="%23A6ADB4"/></svg>');
|
|
117
|
+
cursor: not-allowed;
|
|
118
|
+
}
|
|
119
|
+
|
|
113
120
|
.bd-disabled {
|
|
114
121
|
background: #f1f2f3;
|
|
115
122
|
color: #a6adb4;
|
|
@@ -234,7 +241,7 @@ export default css`
|
|
|
234
241
|
}
|
|
235
242
|
|
|
236
243
|
.bd-plus-button {
|
|
237
|
-
|
|
244
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"><circle cx="20" cy="20" r="19" stroke="%23006DFF" stroke-width="2"/><path d="M19 11H21V29H19V11Z" fill="%23006DFF"/><path d="M29 19V21L11 21L11 19L29 19Z" fill="%23006DFF"/></svg>');
|
|
238
245
|
position: absolute;
|
|
239
246
|
bottom: var(--spacing-10);
|
|
240
247
|
right: var(--spacing-10);
|
|
@@ -249,17 +256,18 @@ export default css`
|
|
|
249
256
|
font-weight: bold;
|
|
250
257
|
cursor: pointer;
|
|
251
258
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
259
|
+
.bd-plus-button:hover {
|
|
260
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"><circle cx="20" cy="20" r="19" fill="%23F0F7FF" stroke="%23006DFF" stroke-width="2"/><path d="M19 11H21V29H19V11Z" fill="%23006DFF"/><path d="M29 19V21L11 21L11 19L29 19Z" fill="%23006DFF"/></svg>');
|
|
261
|
+
}
|
|
262
|
+
|
|
255
263
|
|
|
256
264
|
bd-carousel-item::part(content) {
|
|
257
265
|
font-family: var(--typography-fontFamily-sans);
|
|
258
266
|
}
|
|
259
267
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
268
|
+
.bd-plus-button:active {
|
|
269
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"><circle cx="20" cy="20" r="19" fill="%23006DFF" stroke="%23006DFF" stroke-width="2"/><path d="M19 11H21V29H19V11Z" fill="white"/><path d="M29 19V21L11 21L11 19L29 19Z" fill="white"/></svg>');
|
|
270
|
+
}
|
|
263
271
|
|
|
264
272
|
.bd-left-arrow {
|
|
265
273
|
margin-right: var(--spacing-6);
|
|
@@ -1,69 +1,35 @@
|
|
|
1
|
-
//
|
|
1
|
+
// footer-lp.stories.js
|
|
2
2
|
import { html } from 'lit';
|
|
3
|
+
import '../divider/divider-horizontal.js';
|
|
4
|
+
import '../divider/divider-vertical.js';
|
|
5
|
+
import '../footer/footer-nav-menu.js';
|
|
3
6
|
import './footer-lp.js';
|
|
4
7
|
|
|
5
8
|
export default {
|
|
6
|
-
title
|
|
7
|
-
component: 'bd-footer-lp',
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
control : 'text',
|
|
11
|
-
description: 'Codul de locale curent (ex: en, ro, de-de)',
|
|
12
|
-
table : { defaultValue: { summary: 'en' } }
|
|
13
|
-
},
|
|
14
|
-
maxColumnsPerRow: {
|
|
15
|
-
control : { type: 'number', min: 1, max: 4 },
|
|
16
|
-
description: 'Numărul maxim de coloane pentru quick links',
|
|
17
|
-
table : { defaultValue: { summary: 2 } }
|
|
18
|
-
},
|
|
19
|
-
selectedCountry: {
|
|
20
|
-
control : 'text',
|
|
21
|
-
description: 'Țara selectată în footer',
|
|
22
|
-
table : { defaultValue: { summary: 'Choose your country' } }
|
|
23
|
-
},
|
|
24
|
-
_isMobile: {
|
|
25
|
-
control : 'boolean',
|
|
26
|
-
description: 'Forțează modul mobile pentru testare',
|
|
27
|
-
table : { defaultValue: { summary: false } }
|
|
28
|
-
},
|
|
29
|
-
_countriesOpen: {
|
|
30
|
-
control : 'boolean',
|
|
31
|
-
description: 'Controlează dacă dropdown-ul cu țări este deschis',
|
|
32
|
-
table : { defaultValue: { summary: false } }
|
|
33
|
-
}
|
|
9
|
+
title : 'Components/Footer/BdFooterLP',
|
|
10
|
+
component : 'bd-footer-lp',
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'fullscreen'
|
|
34
13
|
}
|
|
35
14
|
};
|
|
36
15
|
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
<bd-footer-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
</
|
|
49
|
-
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
</
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</div>
|
|
57
|
-
</bd-footer-lp>
|
|
58
|
-
`;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const Default = Template.bind({});
|
|
62
|
-
Default.args = {
|
|
63
|
-
currentLocale : 'en',
|
|
64
|
-
maxColumnsPerRow: 2,
|
|
65
|
-
selectedCountry : 'Choose your country',
|
|
66
|
-
_isMobile : false,
|
|
67
|
-
_countriesOpen : false
|
|
68
|
-
};
|
|
16
|
+
export const Default = () => html`
|
|
17
|
+
<bd-footer-lp maxColumnsPerRow="3">
|
|
18
|
+
<bd-footer-nav slot="secondary-nav">
|
|
19
|
+
<a href="/legal/">Legal Information</a>
|
|
20
|
+
<bd-divider-vertical color="white" height="18px"></bd-divider-vertical>
|
|
21
|
+
<a href="/site/view/legal-privacy-policy-for-bitdefender-websites/">Privacy Policy</a>
|
|
22
|
+
<bd-divider-vertical color="white" height="18px"></bd-divider-vertical>
|
|
23
|
+
<a href="/sitemap/">Site Map</a>
|
|
24
|
+
<bd-divider-vertical color="white" height="18px"></bd-divider-vertical>
|
|
25
|
+
<a href="/company/">Company</a>
|
|
26
|
+
<bd-divider-vertical color="white" height="18px"></bd-divider-vertical>
|
|
27
|
+
<a href="https://www.bitdefender.com/consumer/support/">Contact Us</a>
|
|
28
|
+
<bd-divider-vertical color="white" height="18px"></bd-divider-vertical>
|
|
29
|
+
<a href="#">Privacy Settings</a>
|
|
30
|
+
<bd-divider-vertical color="white" height="18px"></bd-divider-vertical>
|
|
31
|
+
<a href="#" class="impressum-link">Impressum</a>
|
|
32
|
+
</bd-footer-nav>
|
|
33
|
+
</bd-footer-lp>
|
|
34
|
+
`;
|
|
69
35
|
|
|
@@ -22,17 +22,16 @@ export default css`
|
|
|
22
22
|
text-decoration: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
25
|
+
@media (max-width: 767px) {
|
|
26
|
+
.footer-nav-main {
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
gap: var(--spacing-16);
|
|
30
|
+
}
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
32
|
+
.footer-nav-main ::slotted(bd-divider-vertical) {
|
|
33
|
+
display: none !important;
|
|
36
34
|
}
|
|
35
|
+
}
|
|
37
36
|
|
|
38
37
|
`;
|
|
@@ -227,6 +227,45 @@ bd-footer-links-group a:focus {
|
|
|
227
227
|
align-items: center;
|
|
228
228
|
gap: var(--spacing-8);
|
|
229
229
|
}
|
|
230
|
+
.leading-icon {
|
|
231
|
+
width: 20px;
|
|
232
|
+
height: 20px;
|
|
233
|
+
display: inline-block;
|
|
234
|
+
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.25 10C1.25 5.16751 5.16751 1.25 10 1.25C14.8325 1.25 18.75 5.16751 18.75 10C18.75 14.8325 14.8325 18.75 10 18.75C5.16751 18.75 1.25 14.8325 1.25 10ZM10 2.5C9.68262 2.5 9.36983 2.51971 9.06282 2.55799V4.88384C9.06282 5.10767 8.98274 5.32411 8.83705 5.49404L7.13041 7.48466C6.9523 7.6924 6.69232 7.81196 6.41867 7.81196H4.84449L4.62219 8.57915L5.38381 9.44622L6.23342 8.7515C6.62081 8.43474 7.18869 8.47806 7.52354 8.84993L9.9671 11.5636C10.2837 11.9151 10.2887 12.4474 9.97888 12.8049L6.61009 16.692C7.6282 17.2087 8.78009 17.5 10 17.5C13.0594 17.5 15.691 15.6681 16.8577 13.0414L14.6283 15.6137C14.4503 15.8192 14.1918 15.9372 13.9199 15.9372H12.631C11.9827 15.9372 11.5301 15.295 11.7481 14.6844L12.9639 11.2803L11.6036 10.6973C11.1277 10.4933 10.9072 9.94221 11.1112 9.4663L11.8444 7.75544C11.9922 7.41073 12.3311 7.18724 12.7061 7.18724H14.601C14.6608 7.18724 14.7203 7.19296 14.7785 7.2042L14.6138 6.87474H12.5001C11.9823 6.87474 11.5626 6.455 11.5626 5.93724V4.80038C11.5626 4.58106 11.6395 4.36869 11.7799 4.20021L12.7599 3.02412C11.9057 2.68588 10.9746 2.5 10 2.5ZM13.9089 3.59792L12.8126 4.91352V5.62474H14.8069C15.162 5.62474 15.4866 5.82536 15.6455 6.14297L16.3292 7.51038C16.7486 8.34928 15.8126 9.2161 15.0083 8.73354L14.5145 8.43724H12.9122L12.3832 9.67147L13.7263 10.2471C14.1815 10.4422 14.4064 10.9577 14.2399 11.4241L13.0744 14.6872H13.7772L17.4893 10.404C17.4964 10.2702 17.5 10.1355 17.5 10C17.5 7.29005 16.0627 4.91579 13.9089 3.59792ZM7.81282 2.82393C4.98528 3.68463 2.86587 6.17069 2.54281 9.1939C3.18286 9.98092 4.99058 12.3835 5.40842 12.9396C5.58837 13.1791 5.63756 13.4816 5.55863 13.7579L5.07728 15.4426L5.59227 15.9578L8.85346 12.1949L6.79402 9.90779L5.94154 10.6049C5.55068 10.9244 4.97693 10.8771 4.64373 10.4978L3.57 9.27539C3.35876 9.03489 3.28482 8.70323 3.3739 8.39577L3.70923 7.23854C3.82536 6.83775 4.19241 6.56196 4.60969 6.56196H6.27497L7.81282 4.76822V2.82393ZM4.03367 14.5452C3.32557 13.6171 2.82909 12.5189 2.61624 11.3226C3.25918 12.1634 3.97861 13.118 4.31401 13.564L4.03367 14.5452Z" fill="white"/></svg>') no-repeat center;
|
|
235
|
+
background-size: contain;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.bd-youtube {
|
|
239
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M23.4991 5.66068C23.2223 4.61146 22.4094 3.78802 21.3768 3.50911C19.5049 3 12 3 12 3C12 3 4.49506 3 2.62321 3.50911C1.59063 3.78802 0.777737 4.61146 0.500915 5.66068C0 7.5599 0 11.5177 0 11.5177C0 11.5177 0 15.4755 0.500915 17.3747C0.777737 18.424 1.59063 19.212 2.62321 19.4909C4.49506 20 12 20 12 20C12 20 19.5049 20 21.3768 19.4909C22.4094 19.212 23.2223 18.4195 23.4991 17.3747C24 15.4755 24 11.5177 24 11.5177C24 11.5177 24 7.5599 23.4991 5.66068ZM9.54815 15.1125V7.92292L15.8184 11.5177L9.54815 15.1125Z" fill="white"/></svg>');
|
|
240
|
+
}
|
|
241
|
+
.bd-facebook {
|
|
242
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 12.0447C24 5.39188 18.6281 0 12 0C5.37188 0 0 5.39188 0 12.0447C0 17.6906 3.87656 22.4332 9.10312 23.7365V15.724H6.62812V12.0447H9.10312V10.4591C9.10312 6.36111 10.95 4.4603 14.9625 4.4603C15.7219 4.4603 17.0344 4.61086 17.5734 4.76142V8.09253C17.2922 8.0643 16.8 8.04548 16.1859 8.04548C14.2172 8.04548 13.4578 8.79357 13.4578 10.7367V12.0447H17.3766L16.7016 15.724H13.4531V24C19.3969 23.2801 24 18.2035 24 12.0447Z" fill="white"/></svg>');
|
|
243
|
+
}
|
|
244
|
+
.bd-instagram {
|
|
245
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12.0025 6.35948C8.88098 6.35948 6.36319 8.87783 6.36319 12C6.36319 15.1222 8.88098 17.6405 12.0025 17.6405C15.1239 17.6405 17.6417 15.1222 17.6417 12C17.6417 8.87783 15.1239 6.35948 12.0025 6.35948ZM12.0025 15.6671C9.98528 15.6671 8.3362 14.0225 8.3362 12C8.3362 9.97746 9.98037 8.33292 12.0025 8.33292C14.0245 8.33292 15.6687 9.97746 15.6687 12C15.6687 14.0225 14.0196 15.6671 12.0025 15.6671ZM19.1877 6.12875C19.1877 6.8602 18.5988 7.44438 17.8724 7.44438C17.1411 7.44438 16.5571 6.85529 16.5571 6.12875C16.5571 5.40221 17.146 4.81312 17.8724 4.81312C18.5988 4.81312 19.1877 5.40221 19.1877 6.12875ZM22.9227 7.46402C22.8393 5.70166 22.4368 4.14058 21.146 2.8544C19.8601 1.56822 18.2994 1.16568 16.5374 1.07732C14.7215 0.974227 9.27853 0.974227 7.46258 1.07732C5.70552 1.16077 4.14479 1.56332 2.85399 2.84949C1.56319 4.13567 1.16564 5.69675 1.0773 7.45911C0.974233 9.27547 0.974233 14.7196 1.0773 16.536C1.16074 18.2983 1.56319 19.8594 2.85399 21.1456C4.14479 22.4318 5.70061 22.8343 7.46258 22.9227C9.27853 23.0258 14.7215 23.0258 16.5374 22.9227C18.2994 22.8392 19.8601 22.4367 21.146 21.1456C22.4319 19.8594 22.8344 18.2983 22.9227 16.536C23.0258 14.7196 23.0258 9.28037 22.9227 7.46402ZM20.5767 18.4849C20.1939 19.4471 19.4528 20.1883 18.4859 20.5761C17.038 21.1505 13.6025 21.018 12.0025 21.018C10.4025 21.018 6.96196 21.1456 5.51902 20.5761C4.55705 20.1932 3.81595 19.452 3.42822 18.4849C2.85399 17.0367 2.9865 13.6004 2.9865 12C2.9865 10.3996 2.8589 6.95838 3.42822 5.51512C3.81104 4.55294 4.55215 3.81167 5.51902 3.42385C6.96687 2.84949 10.4025 2.98204 12.0025 2.98204C13.6025 2.98204 17.0429 2.8544 18.4859 3.42385C19.4479 3.80676 20.189 4.54803 20.5767 5.51512C21.1509 6.96329 21.0184 10.3996 21.0184 12C21.0184 13.6004 21.1509 17.0416 20.5767 18.4849Z" fill="white"/></svg>');
|
|
246
|
+
}
|
|
247
|
+
.bd-linkedin {
|
|
248
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.4286 1H2.56652C1.70223 1 1 1.71205 1 2.58616V21.4138C1 22.2879 1.70223 23 2.56652 23H21.4286C22.2929 23 23 22.2879 23 21.4138V2.58616C23 1.71205 22.2929 1 21.4286 1ZM7.64911 19.8571H4.38839V9.35804H7.65402V19.8571H7.64911ZM6.01875 7.92411C4.97277 7.92411 4.12812 7.07455 4.12812 6.03348C4.12812 4.99241 4.97277 4.14286 6.01875 4.14286C7.05982 4.14286 7.90937 4.99241 7.90937 6.03348C7.90937 7.07946 7.06473 7.92411 6.01875 7.92411ZM19.8719 19.8571H16.6112V14.75C16.6112 13.5321 16.5866 11.9656 14.917 11.9656C13.2179 11.9656 12.9576 13.2915 12.9576 14.6616V19.8571H9.69688V9.35804H12.825V10.792H12.8692C13.3062 9.96696 14.3719 9.09777 15.958 9.09777C19.258 9.09777 19.8719 11.2732 19.8719 14.1018V19.8571Z" fill="white"/></svg>');
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.bd-tiktok {
|
|
252
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M23 9.84003C20.9356 9.84445 18.922 9.19997 17.2438 7.99766V16.3797C17.2433 17.9321 16.7689 19.4474 15.884 20.7228C14.9991 21.9983 13.7459 22.9731 12.292 23.5169C10.8381 24.0608 9.25287 24.1477 7.74825 23.7661C6.24363 23.3845 4.89139 22.5525 3.87237 21.3815C2.85335 20.2104 2.21614 18.7561 2.04595 17.2131C1.87577 15.6701 2.18073 14.1118 2.92004 12.7468C3.65936 11.3818 4.79778 10.2751 6.18306 9.57468C7.56834 8.87428 9.13443 8.61357 10.6719 8.82743V13.0419C9.96888 12.8206 9.21393 12.8271 8.51483 13.0604C7.81573 13.2938 7.20822 13.742 6.77905 14.3413C6.34987 14.9405 6.12099 15.66 6.12506 16.3971C6.12913 17.1341 6.36596 17.8511 6.80173 18.4455C7.2375 19.04 7.84993 19.4815 8.55157 19.7071C9.2532 19.9327 10.0082 19.9309 10.7087 19.7018C11.4092 19.4727 12.0194 19.0281 12.4522 18.4315C12.8851 17.8349 13.1183 17.1168 13.1188 16.3797V0H17.2438C17.2414 0.348908 17.2712 0.697289 17.3328 1.04073C17.4763 1.80627 17.7743 2.53452 18.2087 3.18097C18.6431 3.82741 19.2048 4.37847 19.8594 4.80047C20.7911 5.41593 21.8834 5.74363 23 5.74275V9.84003Z" fill="white"/></svg>');
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.bd-twitter {
|
|
256
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4.14286 1C2.40937 1 1 2.40937 1 4.14286V19.8571C1 21.5906 2.40937 23 4.14286 23H19.8571C21.5906 23 23 21.5906 23 19.8571V4.14286C23 2.40937 21.5906 1 19.8571 1H4.14286ZM18.7326 5.125L13.6353 10.9491L19.6312 18.875H14.9366L11.2634 14.0674L7.05491 18.875H4.72232L10.1732 12.6433L4.42277 5.125H9.23527L12.5598 9.52009L16.4 5.125H18.7326ZM16.8763 17.4804L8.53304 6.44598H7.1433L15.5799 17.4804H16.8714H16.8763Z" fill="white"/></svg>');
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.arrow-up {
|
|
260
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.55762 5.80806C9.80169 5.56398 10.1974 5.56398 10.4415 5.80806L17.3165 12.6831L16.4326 13.5669L9.99956 7.13388L3.5665 13.5669L2.68262 12.6831L9.55762 5.80806Z" fill="white"/></svg>');
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.arrow-down {
|
|
264
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.99956 12.8662L3.5665 6.43311L2.68262 7.31699L9.55762 14.192C9.80169 14.4361 10.1974 14.4361 10.4415 14.192L17.3165 7.31699L16.4326 6.43311L9.99956 12.8662Z" fill="white"/></svg>');
|
|
265
|
+
}
|
|
266
|
+
.close-icon {
|
|
267
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.18182 9L0.564941 15.6169L2.38322 17.4352L9.00007 10.8183L15.6169 17.4352L17.4352 15.6169L10.8183 9L17.4352 2.38317L15.6169 0.564894L9.00007 7.18174L2.38322 0.564894L0.564941 2.38317L7.18182 9Z" fill="white"/></svg>');
|
|
268
|
+
}
|
|
230
269
|
|
|
231
270
|
a {
|
|
232
271
|
color: var(--color-neutral-0);
|
|
@@ -471,11 +510,13 @@ bd-footer-links-group a:focus {
|
|
|
471
510
|
height: var(--dimension-20px);
|
|
472
511
|
display: block;
|
|
473
512
|
}
|
|
474
|
-
@media (max-width:
|
|
513
|
+
@media (max-width: 767px) {
|
|
475
514
|
:host {
|
|
476
515
|
font-size: var(--typography-body-small-fontSize);
|
|
477
516
|
}
|
|
478
|
-
|
|
517
|
+
.footer-address{
|
|
518
|
+
display: none !important;
|
|
519
|
+
}
|
|
479
520
|
.footer-nav-main {
|
|
480
521
|
flex-direction: column;
|
|
481
522
|
align-items: flex-start;
|
|
@@ -692,4 +733,56 @@ bd-footer-links-group a:focus {
|
|
|
692
733
|
text-align: left;
|
|
693
734
|
}
|
|
694
735
|
}
|
|
736
|
+
.tablet-divider {
|
|
737
|
+
display: none;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/* Afișează divider-ul doar pe tablete */
|
|
741
|
+
@media (min-width: 768px) and (max-width: 1024px) {
|
|
742
|
+
.tablet-divider {
|
|
743
|
+
display: block;
|
|
744
|
+
order: 2;
|
|
745
|
+
margin: var(--spacing-16) 0;
|
|
746
|
+
width: 100%;
|
|
747
|
+
}
|
|
748
|
+
.footer-address{
|
|
749
|
+
display: none !important;
|
|
750
|
+
}
|
|
751
|
+
.footer-links {
|
|
752
|
+
display: flex;
|
|
753
|
+
flex-direction: column;
|
|
754
|
+
gap: 0 !important;
|
|
755
|
+
padding-bottom: 0 !important;
|
|
756
|
+
}
|
|
757
|
+
.footer-links-left,
|
|
758
|
+
.footer-links-right {
|
|
759
|
+
width: 100%;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.footer-links-left {
|
|
763
|
+
order: 1;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.footer-links > bd-divider-horizontal {
|
|
767
|
+
order: 2;
|
|
768
|
+
margin: var(--spacing-16) 0;
|
|
769
|
+
width: 100%;
|
|
770
|
+
}
|
|
771
|
+
/* Ascunde ultimul divider (cel din afara .footer-links) pe tablete */
|
|
772
|
+
.footer-links + bd-divider-horizontal {
|
|
773
|
+
display: none !important;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.footer-links-right {
|
|
777
|
+
order: 3;
|
|
778
|
+
display: flex;
|
|
779
|
+
margin-top: 0;
|
|
780
|
+
margin-bottom: 0;
|
|
781
|
+
}
|
|
782
|
+
.footer-countries-container {
|
|
783
|
+
display: inline-flex;
|
|
784
|
+
gap: 10rem;
|
|
785
|
+
flex-wrap: wrap;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
695
788
|
`;
|
|
@@ -24,7 +24,7 @@ export class BdFooter extends LitElement {
|
|
|
24
24
|
this.maxColumnsPerRow = 2;
|
|
25
25
|
this.currentLocale = 'en';
|
|
26
26
|
this.selectedCountry = 'Choose your country';
|
|
27
|
-
this._isMobile = window.innerWidth <=
|
|
27
|
+
this._isMobile = window.innerWidth <= 767;
|
|
28
28
|
this._countriesContainer = null;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -104,8 +104,8 @@ export class BdFooter extends LitElement {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
_handleResize() {
|
|
107
|
-
this._isMobile = window.innerWidth <=
|
|
108
|
-
const newIsMobile = window.innerWidth <=
|
|
107
|
+
this._isMobile = window.innerWidth <= 767;
|
|
108
|
+
const newIsMobile = window.innerWidth <= 767;
|
|
109
109
|
console.log('Resize - Old isMobile:', this._isMobile, 'New isMobile:', newIsMobile, 'Window width:', window.innerWidth);
|
|
110
110
|
|
|
111
111
|
if (this._isMobile !== newIsMobile) {
|
|
@@ -245,7 +245,7 @@ export class BdFooter extends LitElement {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
_updateSlotStyles() {
|
|
248
|
-
const isMobile = window.innerWidth <=
|
|
248
|
+
const isMobile = window.innerWidth <= 767;
|
|
249
249
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
250
250
|
const assignedElements = slot.assignedElements();
|
|
251
251
|
|
|
@@ -275,7 +275,6 @@ export class BdFooter extends LitElement {
|
|
|
275
275
|
render() {
|
|
276
276
|
const year = new Date().getFullYear();
|
|
277
277
|
const showAnpc = this.locale.startsWith('ro');
|
|
278
|
-
const showImpressum = this.locale === 'de-de' || this.locale === 'de';
|
|
279
278
|
const countriesList = this.getCountriesList();
|
|
280
279
|
|
|
281
280
|
const masterbrandUrl = this._isMobile
|
|
@@ -287,15 +286,6 @@ export class BdFooter extends LitElement {
|
|
|
287
286
|
: '/assets/anpc.png';
|
|
288
287
|
|
|
289
288
|
const logoUrl = '/assets/BD_logo.png';
|
|
290
|
-
const facebookIcon = '/assets/facebook_vector.svg';
|
|
291
|
-
const xIcon = '/assets/x_vector.svg';
|
|
292
|
-
const linkedinIcon = '/assets/linkedin_vector.svg';
|
|
293
|
-
const youtubeIcon = '/assets/youtube_vector.svg';
|
|
294
|
-
const instagramIcon = '/assets/instagram_vector.svg';
|
|
295
|
-
const tiktokIcon = '/assets/tiktok_vector.svg';
|
|
296
|
-
const leadingIcon = '/assets/leading.svg';
|
|
297
|
-
const closeIcon = '/assets/close_icon.png';
|
|
298
|
-
|
|
299
289
|
const chunkSize = Math.ceil(countriesList.length / 3);
|
|
300
290
|
const countryChunks = [
|
|
301
291
|
countriesList.slice(0, chunkSize),
|
|
@@ -360,19 +350,19 @@ export class BdFooter extends LitElement {
|
|
|
360
350
|
<slot name="quick-links"></slot>
|
|
361
351
|
</bd-grid>
|
|
362
352
|
</div>
|
|
363
|
-
|
|
353
|
+
<bd-divider-horizontal class="tablet-divider" width="100%" color="white" opacity="0.25"></bd-divider-horizontal>
|
|
364
354
|
${this._isMobile
|
|
365
355
|
? html`<bd-divider-horizontal width="100%" color="white" opacity="0.25"></bd-divider-horizontal>`
|
|
366
356
|
: ''}
|
|
367
357
|
|
|
368
358
|
<div class="footer-links-right social-icons">
|
|
369
359
|
<slot name="social-links">
|
|
370
|
-
<a href="https://www.facebook.com/bitdefender"
|
|
371
|
-
<a href="https://twitter.com/bitdefender"
|
|
372
|
-
<a href="https://www.linkedin.com/company/bitdefender"
|
|
373
|
-
<a href="https://www.youtube.com/c/Bitdefender"
|
|
374
|
-
<a href="https://www.instagram.com/bitdefender/"
|
|
375
|
-
<a href="https://www.tiktok.com/@bitdefender"
|
|
360
|
+
<a href="https://www.facebook.com/bitdefender" class="bd-facebook"></a>
|
|
361
|
+
<a href="https://twitter.com/bitdefender" class="bd-twitter"></a>
|
|
362
|
+
<a href="https://www.linkedin.com/company/bitdefender" class="bd-linkedin"></a>
|
|
363
|
+
<a href="https://www.youtube.com/c/Bitdefender" class="bd-youtube"></a>
|
|
364
|
+
<a href="https://www.instagram.com/bitdefender/" class="bd-instagram"></a>
|
|
365
|
+
<a href="https://www.tiktok.com/@bitdefender" class="bd-tiktok"></a>
|
|
376
366
|
</slot>
|
|
377
367
|
</div>
|
|
378
368
|
</div>
|
|
@@ -420,13 +410,9 @@ export class BdFooter extends LitElement {
|
|
|
420
410
|
|
|
421
411
|
<div class="footer-countries-toggle">
|
|
422
412
|
<button class="country-toggle" @click="${this._toggleCountries}">
|
|
423
|
-
|
|
413
|
+
<span class="leading-icon" role="img" aria-label="Leading icon"></span>
|
|
424
414
|
${this.selectedCountry}
|
|
425
|
-
|
|
426
|
-
${this._countriesOpen
|
|
427
|
-
? html`<img src="/assets/arrow_up.svg" alt="Arrow up">`
|
|
428
|
-
: html`<img src="/assets/arrow_down.svg" alt="Arrow down">`}
|
|
429
|
-
</span>
|
|
415
|
+
<span class="arrow ${this._countriesOpen ? 'arrow-up' : 'arrow-down'}"></span>
|
|
430
416
|
</button>
|
|
431
417
|
</div>
|
|
432
418
|
</div>
|
|
@@ -434,9 +420,9 @@ export class BdFooter extends LitElement {
|
|
|
434
420
|
${this._countriesOpen
|
|
435
421
|
? html`
|
|
436
422
|
<div class="footer-countries-container">
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
423
|
+
<button class="close-countries-button" @click="${this._closeCountries}">
|
|
424
|
+
<span class="close-icon"></span>
|
|
425
|
+
</button>
|
|
440
426
|
${countryChunks.map(chunk => html`
|
|
441
427
|
<bd-footer-links-group slot="countries" title="${chunk === countryChunks[0] ? 'Choose your country' : ''}">
|
|
442
428
|
${chunk.map(c => html`
|