allaw-ui 2.2.5 → 2.2.6
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/dist/components/atoms/buttons/IconButton.js +2 -7
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +1 -0
- package/dist/components/atoms/buttons/TertiaryButton.js +6 -2
- package/dist/components/atoms/featureCard/featureCard.js +1 -4
- package/dist/components/molecules/banner/Banner.js +10 -2
- package/dist/components/molecules/banner/Banner.module.css +13 -6
- package/dist/components/molecules/brands/Brands.d.ts +9 -0
- package/dist/components/molecules/brands/Brands.js +13 -0
- package/dist/components/molecules/brands/Brands.stories.d.ts +8 -0
- package/dist/components/molecules/brands/Brands.stories.js +66 -0
- package/dist/components/molecules/brands/brands.module.css +74 -0
- package/dist/components/molecules/brands/index.d.ts +2 -0
- package/dist/components/molecules/brands/index.js +1 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.js +2 -2
- package/dist/components/molecules/featureGrid/featureGrid.module.css +2 -2
- package/dist/components/molecules/flexContent/FlexContent.d.ts +18 -0
- package/dist/components/molecules/flexContent/FlexContent.js +21 -0
- package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +9 -0
- package/dist/components/molecules/flexContent/FlexContent.stories.js +47 -0
- package/dist/components/molecules/flexContent/flexContent.module.css +217 -0
- package/dist/components/molecules/flexContent/index.d.ts +2 -0
- package/dist/components/molecules/flexContent/index.js +1 -0
- package/dist/components/molecules/frameCTA/FrameCTA.d.ts +1 -0
- package/dist/components/molecules/frameCTA/FrameCTA.js +3 -3
- package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +1 -0
- package/dist/components/molecules/frameCTA/FrameCTA.stories.js +23 -0
- package/dist/components/molecules/frameCTA/frameCTA.module.css +27 -8
- package/dist/components/molecules/heroSection/HeroSection.d.ts +1 -0
- package/dist/components/molecules/heroSection/HeroSection.js +13 -15
- package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +2 -0
- package/dist/components/molecules/heroSection/HeroSection.stories.js +38 -1
- package/dist/components/molecules/heroSection/heroSection.module.css +120 -90
- package/dist/components/molecules/questionAnswer/QuestionAnswer.d.ts +9 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.js +38 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +17 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +48 -0
- package/dist/components/molecules/questionAnswer/index.d.ts +2 -0
- package/dist/components/molecules/questionAnswer/index.js +1 -0
- package/dist/components/molecules/questionAnswer/questionAnswer.module.css +126 -0
- package/dist/index.d.ts +18 -10
- package/dist/index.js +10 -5
- package/package.json +1 -1
|
@@ -1,136 +1,89 @@
|
|
|
1
|
-
.
|
|
2
|
-
display: flex;
|
|
1
|
+
.banner {
|
|
3
2
|
position: relative;
|
|
4
3
|
width: 100%;
|
|
5
|
-
height:
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.leftSection {
|
|
10
|
-
flex: 5;
|
|
11
|
-
background: #fff;
|
|
12
|
-
height: 100%;
|
|
4
|
+
min-height: 60dvh;
|
|
5
|
+
height: auto;
|
|
13
6
|
display: flex;
|
|
14
|
-
|
|
15
|
-
align-items: flex-end;
|
|
7
|
+
align-items: stretch;
|
|
16
8
|
justify-content: center;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
background-
|
|
20
|
-
background-size: cover;
|
|
21
|
-
background-position: center;
|
|
9
|
+
background-position: right;
|
|
10
|
+
background-size: 50% 100%;
|
|
11
|
+
background-repeat: no-repeat;
|
|
22
12
|
}
|
|
23
13
|
|
|
24
|
-
.
|
|
14
|
+
.bannerReverse {
|
|
25
15
|
flex-direction: row-reverse;
|
|
16
|
+
background-position: left;
|
|
26
17
|
}
|
|
27
18
|
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
align-items: flex-start;
|
|
35
|
-
padding-right: 0;
|
|
36
|
-
padding-left: 40px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.rightSection {
|
|
40
|
-
flex: 5;
|
|
41
|
-
height: 100%;
|
|
42
|
-
position: relative;
|
|
43
|
-
background-size: cover;
|
|
44
|
-
background-position: center;
|
|
45
|
-
background-repeat: no-repeat;
|
|
19
|
+
.overlayContainer {
|
|
20
|
+
width: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
padding: 40px 80px;
|
|
46
25
|
}
|
|
47
26
|
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
27
|
+
.contentWrapper {
|
|
28
|
+
max-width: 1400px;
|
|
29
|
+
display: flex;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
gap: 70px;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
align-items: center;
|
|
55
34
|
}
|
|
56
35
|
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
top: 50%;
|
|
60
|
-
left: 0%;
|
|
61
|
-
width: 90%;
|
|
62
|
-
transform: translateY(-50%);
|
|
63
|
-
z-index: 2;
|
|
36
|
+
.bannerReverse .contentWrapper {
|
|
37
|
+
flex-direction: row-reverse;
|
|
64
38
|
}
|
|
65
39
|
|
|
66
|
-
.
|
|
40
|
+
.contentLeft {
|
|
41
|
+
width: 50%;
|
|
42
|
+
padding: 3rem;
|
|
67
43
|
display: flex;
|
|
68
44
|
flex-direction: column;
|
|
45
|
+
justify-content: center;
|
|
69
46
|
align-items: flex-start;
|
|
70
|
-
gap:
|
|
71
|
-
height: 350px;
|
|
72
|
-
width: 80%;
|
|
47
|
+
gap: 48px;
|
|
73
48
|
}
|
|
74
49
|
|
|
75
|
-
.
|
|
50
|
+
.contentTitle {
|
|
76
51
|
color: var(--Primary-Mid-black, #171e25);
|
|
77
52
|
font-family: Poppins;
|
|
78
|
-
font-size:
|
|
53
|
+
font-size: 40px;
|
|
79
54
|
font-style: normal;
|
|
80
55
|
font-weight: 600;
|
|
81
56
|
line-height: normal;
|
|
82
|
-
display: -webkit-box;
|
|
83
|
-
-webkit-box-orient: vertical;
|
|
84
|
-
line-clamp: 2;
|
|
85
|
-
-webkit-line-clamp: 2;
|
|
86
57
|
max-width: 100%;
|
|
87
|
-
overflow: hidden;
|
|
88
58
|
}
|
|
89
59
|
|
|
90
|
-
.
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
93
|
-
object-fit: cover;
|
|
94
|
-
object-position: center;
|
|
95
|
-
display: block;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.heroSectionParagraph {
|
|
60
|
+
.contentText {
|
|
99
61
|
color: var(--Primary-Dark-grey, #456073);
|
|
100
|
-
display: -webkit-box;
|
|
101
|
-
-webkit-box-orient: vertical;
|
|
102
|
-
-webkit-line-clamp: 4;
|
|
103
|
-
line-clamp: 4;
|
|
104
|
-
overflow: hidden;
|
|
105
|
-
white-space: normal;
|
|
106
|
-
text-overflow: ellipsis;
|
|
107
62
|
font-family: "Open Sans";
|
|
108
63
|
font-size: 16px;
|
|
109
64
|
font-style: normal;
|
|
110
65
|
font-weight: 600;
|
|
111
66
|
line-height: normal;
|
|
67
|
+
max-width: 100%;
|
|
112
68
|
}
|
|
113
69
|
|
|
114
|
-
.
|
|
70
|
+
.contentButton {
|
|
115
71
|
display: flex;
|
|
116
72
|
height: 48px;
|
|
117
73
|
padding: 12px 40px;
|
|
118
74
|
justify-content: center;
|
|
119
75
|
align-items: center;
|
|
76
|
+
gap: 8px;
|
|
120
77
|
border-radius: 56px;
|
|
121
78
|
background: #2d6176;
|
|
122
|
-
|
|
123
|
-
text-decoration: none;
|
|
124
|
-
width: 100%;
|
|
125
|
-
overflow: hidden;
|
|
79
|
+
display: block;
|
|
126
80
|
}
|
|
127
81
|
|
|
128
|
-
.
|
|
129
|
-
filter: brightness(
|
|
130
|
-
transform: scale(1.005);
|
|
82
|
+
.contentButton:hover {
|
|
83
|
+
filter: brightness(90%);
|
|
131
84
|
}
|
|
132
85
|
|
|
133
|
-
.
|
|
86
|
+
.contentButtonLabel {
|
|
134
87
|
color: var(--Primary-Blanc, #fff);
|
|
135
88
|
font-family: "Open Sans";
|
|
136
89
|
font-size: 16px;
|
|
@@ -144,10 +97,6 @@
|
|
|
144
97
|
}
|
|
145
98
|
|
|
146
99
|
@media (max-width: 995px) {
|
|
147
|
-
.heroSection {
|
|
148
|
-
max-height: 420px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
100
|
.leftSection {
|
|
152
101
|
background-size: cover;
|
|
153
102
|
background-position: center;
|
|
@@ -185,3 +134,84 @@
|
|
|
185
134
|
background-repeat: initial;
|
|
186
135
|
}
|
|
187
136
|
}
|
|
137
|
+
|
|
138
|
+
.backgroundImage {
|
|
139
|
+
object-fit: cover;
|
|
140
|
+
object-position: center;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.contentRight {
|
|
144
|
+
width: 50%;
|
|
145
|
+
position: relative;
|
|
146
|
+
max-height: 35dvh;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
border-radius: 16px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.contentImage {
|
|
155
|
+
object-fit: cover;
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: 100%;
|
|
158
|
+
border-radius: 16px;
|
|
159
|
+
object-position: center;
|
|
160
|
+
max-height: none;
|
|
161
|
+
max-width: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (max-width: 995px) {
|
|
165
|
+
.banner {
|
|
166
|
+
background-size: 100% 100%;
|
|
167
|
+
background-position: center;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.overlayContainer {
|
|
171
|
+
padding: 60px 32px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.contentWrapper {
|
|
175
|
+
background-color: transparent;
|
|
176
|
+
box-shadow: none;
|
|
177
|
+
max-width: 100%;
|
|
178
|
+
height: auto;
|
|
179
|
+
flex-direction: column !important;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.contentLeft {
|
|
183
|
+
width: 100%;
|
|
184
|
+
padding: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.contentRight {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.contentTitle {
|
|
192
|
+
font-size: 34px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.contentText {
|
|
196
|
+
font-size: 16px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.contentButtonLabel {
|
|
200
|
+
font-size: 14px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.text-black .contentTitle,
|
|
204
|
+
.text-black .contentText {
|
|
205
|
+
color: var(--noir, #171e25);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.text-white .contentTitle,
|
|
209
|
+
.text-white .contentText {
|
|
210
|
+
color: var(--pure-white, #ffffff);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.text-gray .contentTitle,
|
|
214
|
+
.text-gray .contentText {
|
|
215
|
+
color: var(--Primary-Dark-grey, #456073);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import React, { useState } from "react";
|
|
11
|
+
import styles from "./questionAnswer.module.css";
|
|
12
|
+
import IconButton from "../../atoms/buttons/IconButton";
|
|
13
|
+
var QuestionAnswer = function (_a) {
|
|
14
|
+
var questions = _a.questions;
|
|
15
|
+
var _b = useState([]), openIndices = _b[0], setOpenIndices = _b[1];
|
|
16
|
+
var toggleAnswer = function (index) {
|
|
17
|
+
if (openIndices.includes(index)) {
|
|
18
|
+
setOpenIndices(openIndices.filter(function (i) { return i !== index; }));
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
setOpenIndices(__spreadArray(__spreadArray([], openIndices, true), [index], false));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
return (React.createElement("section", { className: styles.questionAnswerContainer, "aria-labelledby": "faq-title" },
|
|
25
|
+
React.createElement("div", { className: styles.questionAnswerContent },
|
|
26
|
+
React.createElement("h2", { className: styles.questionAnswerTitle }, "Questions Fr\u00E9quemment Pos\u00E9es"),
|
|
27
|
+
React.createElement("ul", { className: styles.questionAnswerListContent }, questions.map(function (item, index) { return (React.createElement("li", { key: index, className: styles.questionAnswerItem, onClick: function () { return toggleAnswer(index); } },
|
|
28
|
+
React.createElement("div", { className: styles.questionContainer },
|
|
29
|
+
React.createElement("h3", { className: styles.questionTitle }, item.question),
|
|
30
|
+
React.createElement(IconButton, { color: "#050505", style: "iconOnly", iconName: openIndices.includes(index)
|
|
31
|
+
? "allaw-icon-chevron-up"
|
|
32
|
+
: "allaw-icon-chevron-down", "aria-label": openIndices.includes(index)
|
|
33
|
+
? "Fermer la r\u00E9ponse \u00E0 : ".concat(item.question)
|
|
34
|
+
: "Ouvrir la r\u00E9ponse \u00E0 : ".concat(item.question) })),
|
|
35
|
+
React.createElement("div", { id: "answer-".concat(index), className: "".concat(styles.answerContainer, " ").concat(openIndices.includes(index) ? styles.open : "") },
|
|
36
|
+
React.createElement("p", { className: styles.answer }, item.answer)))); })))));
|
|
37
|
+
};
|
|
38
|
+
export default QuestionAnswer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { QuestionAnswer as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export namespace title_1 {
|
|
6
|
+
let control: string;
|
|
7
|
+
}
|
|
8
|
+
export { title_1 as title };
|
|
9
|
+
export namespace questions {
|
|
10
|
+
let control_1: string;
|
|
11
|
+
export { control_1 as control };
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default _default;
|
|
16
|
+
export const Default: any;
|
|
17
|
+
import QuestionAnswer from "./QuestionAnswer";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
14
|
+
import QuestionAnswer, { QuestionAnswerProps } from "./QuestionAnswer";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Molecules/QuestionAnswer",
|
|
17
|
+
component: QuestionAnswer,
|
|
18
|
+
argTypes: {
|
|
19
|
+
title: { control: "text" },
|
|
20
|
+
questions: { control: "object" },
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
var Template = function (args) { return React.createElement(QuestionAnswer, __assign({}, args)); };
|
|
24
|
+
export var Default = Template.bind({});
|
|
25
|
+
Default.args = {
|
|
26
|
+
questions: [
|
|
27
|
+
{
|
|
28
|
+
question: "Comment puis-je créer un compte ?",
|
|
29
|
+
answer: "Pour créer un compte, cliquez sur le bouton 'S'inscrire' en haut à droite de la page d'accueil. Remplissez le formulaire avec vos informations personnelles et validez. Vous recevrez ensuite un email de confirmation pour activer votre compte.",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
question: "Quels sont les modes de paiement acceptés ?",
|
|
33
|
+
answer: "Nous acceptons les paiements par carte bancaire (Visa, Mastercard, American Express) ainsi que les paiements via PayPal. Les virements bancaires sont également possibles pour certains clients professionnels.",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
question: "Comment garantir la sécurité de mes données personnelles ?",
|
|
37
|
+
answer: "Nous utilisons des protocoles de sécurité avancés, tels que le cryptage SSL, pour protéger vos données. De plus, vos informations sont stockées sur des serveurs sécurisés et ne sont jamais partagées avec des tiers sans votre consentement.",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
question: "Puis-je annuler ou modifier ma commande après validation ?",
|
|
41
|
+
answer: "Oui, vous pouvez annuler ou modifier votre commande dans un délai de 24 heures après sa validation, à condition qu'elle n'ait pas encore été expédiée. Rendez-vous dans la section 'Mes commandes' de votre compte pour effectuer les modifications.",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
question: "Que faire si je rencontre un problème technique ?",
|
|
45
|
+
answer: "Si vous rencontrez un problème technique, vous pouvez consulter notre centre d'aide pour trouver des solutions aux problèmes courants. Si le problème persiste, contactez notre support client via le formulaire en ligne ou par téléphone au numéro indiqué sur la page 'Contact'.",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as QuestionAnswer } from "./QuestionAnswer";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
.questionAnswerContainer {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: auto;
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 64px 0;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.questionAnswerContent {
|
|
13
|
+
display: flex;
|
|
14
|
+
max-width: 730px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: auto;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 124px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.questionAnswerTitle {
|
|
23
|
+
color: var(--Primary-Mid-black, #171e25);
|
|
24
|
+
text-align: center;
|
|
25
|
+
font-family: Poppins;
|
|
26
|
+
font-size: 30px;
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: normal;
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.questionAnswerListContent {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: flex-start;
|
|
37
|
+
gap: 32px;
|
|
38
|
+
height: auto;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.questionAnswerItem {
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: 32px;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: flex-start;
|
|
47
|
+
align-self: stretch;
|
|
48
|
+
border-bottom: 2px solid var(--Primary-Venom-grey, #e6edf5);
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.questionContainer {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: flex-start;
|
|
55
|
+
gap: 32px;
|
|
56
|
+
align-self: stretch;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.questionTitle {
|
|
62
|
+
color: var(--Primary-Mid-black, #171e25);
|
|
63
|
+
font-family: Poppins;
|
|
64
|
+
font-size: 20px;
|
|
65
|
+
font-style: normal;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
line-height: normal;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.answerContainer {
|
|
71
|
+
max-height: 0;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
transition: max-height 0.3s ease, opacity 0.3s ease;
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.answerContainer.open {
|
|
78
|
+
max-height: 600px;
|
|
79
|
+
opacity: 1;
|
|
80
|
+
padding-bottom: 16px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.answer {
|
|
84
|
+
color: var(--Primary-Dark-grey, #456073);
|
|
85
|
+
font-family: "Open Sans";
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
line-height: normal;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: 995px) {
|
|
92
|
+
.questionAnswerContainer {
|
|
93
|
+
padding: 26px 80px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.questionAnswerContent {
|
|
97
|
+
gap: 70px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.questionAnswerTitle {
|
|
101
|
+
font-size: 26px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.answer {
|
|
105
|
+
font-size: 18px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (max-width: 450px) {
|
|
110
|
+
.questionAnswerContainer {
|
|
111
|
+
padding: 12px 40px;
|
|
112
|
+
gap: 20px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.questionAnswerContent {
|
|
116
|
+
gap: 60px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.questionTitle {
|
|
120
|
+
font-size: 18px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.answer {
|
|
124
|
+
font-size: 16px;
|
|
125
|
+
}
|
|
126
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -64,21 +64,29 @@ export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcr
|
|
|
64
64
|
export { default as ProCard } from "./components/molecules/proCard/ProCard";
|
|
65
65
|
export { default as Pagination } from "./components/molecules/pagination/Pagination";
|
|
66
66
|
export type { PaginationProps } from "./components/molecules/pagination/Pagination";
|
|
67
|
-
export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHeader";
|
|
68
|
-
export type { BlogHeaderProps } from "./components/molecules/blogHeader/BlogHeader";
|
|
69
|
-
export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
|
|
70
|
-
export type { BlogCardProps } from "./components/molecules/blogCard/BlogCard";
|
|
71
|
-
export { default as BlogText } from "./components/molecules/blogText/BlogText";
|
|
72
|
-
export type { BlogTextProps } from "./components/molecules/blogText/BlogText";
|
|
73
|
-
export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
74
|
-
export type { BlogTextImageBlockProps } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
75
|
-
export { default as blogFooter } from "./components/molecules/blogFooter/BlogFooter";
|
|
76
|
-
export type { BlogFooterProps } from "./components/molecules/blogFooter/BlogFooter";
|
|
77
67
|
export { default as Banner } from "./components/molecules/banner/Banner";
|
|
78
68
|
export type { BannerProps } from "./components/molecules/banner/Banner";
|
|
69
|
+
export { default as FeatureCard } from "./components/atoms/featureCard/featureCard";
|
|
70
|
+
export type { FeatureType } from "./components/atoms/featureCard/featureCard";
|
|
79
71
|
export { default as FeatureGrid } from "./components/molecules/featureGrid/FeatureGrid";
|
|
80
72
|
export type { FeatureGridProps } from "./components/molecules/featureGrid/FeatureGrid";
|
|
81
73
|
export { default as HeroSection } from "./components/molecules/heroSection/HeroSection";
|
|
82
74
|
export type { HeroSectionProps } from "./components/molecules/heroSection/HeroSection";
|
|
83
75
|
export { default as FrameCTA } from "./components/molecules/frameCTA/FrameCTA";
|
|
84
76
|
export type { FrameCTAProps } from "./components/molecules/frameCTA/FrameCTA";
|
|
77
|
+
export { default as QuestionAnswer } from "./components/molecules/questionAnswer/QuestionAnswer";
|
|
78
|
+
export type { QuestionAnswerProps } from "./components/molecules/questionAnswer/QuestionAnswer";
|
|
79
|
+
export { default as FlexContent } from "./components/molecules/flexContent/FlexContent";
|
|
80
|
+
export type { FlexContentProps } from "./components/molecules/flexContent/FlexContent";
|
|
81
|
+
export { default as Brands } from "./components/molecules/brands/Brands";
|
|
82
|
+
export type { BrandsProps } from "./components/molecules/brands/Brands";
|
|
83
|
+
export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHeader";
|
|
84
|
+
export type { BlogHeaderProps } from "./components/molecules/blogHeader/BlogHeader";
|
|
85
|
+
export { default as blogFooter } from "./components/molecules/blogFooter/BlogFooter";
|
|
86
|
+
export type { BlogFooterProps } from "./components/molecules/blogFooter/BlogFooter";
|
|
87
|
+
export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
|
|
88
|
+
export type { BlogCardProps } from "./components/molecules/blogCard/BlogCard";
|
|
89
|
+
export { default as BlogText } from "./components/molecules/blogText/BlogText";
|
|
90
|
+
export type { BlogTextProps } from "./components/molecules/blogText/BlogText";
|
|
91
|
+
export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
92
|
+
export type { BlogTextImageBlockProps } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
package/dist/index.js
CHANGED
|
@@ -80,13 +80,18 @@ export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcr
|
|
|
80
80
|
export { default as ProCard } from "./components/molecules/proCard/ProCard";
|
|
81
81
|
// Pagination
|
|
82
82
|
export { default as Pagination } from "./components/molecules/pagination/Pagination";
|
|
83
|
+
// Storyblok component
|
|
84
|
+
export { default as Banner } from "./components/molecules/banner/Banner";
|
|
85
|
+
export { default as FeatureCard } from "./components/atoms/featureCard/featureCard";
|
|
86
|
+
export { default as FeatureGrid } from "./components/molecules/featureGrid/FeatureGrid";
|
|
87
|
+
export { default as HeroSection } from "./components/molecules/heroSection/HeroSection";
|
|
88
|
+
export { default as FrameCTA } from "./components/molecules/frameCTA/FrameCTA";
|
|
89
|
+
export { default as QuestionAnswer } from "./components/molecules/questionAnswer/QuestionAnswer";
|
|
90
|
+
export { default as FlexContent } from "./components/molecules/flexContent/FlexContent";
|
|
91
|
+
export { default as Brands } from "./components/molecules/brands/Brands";
|
|
83
92
|
// Blog
|
|
84
93
|
export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHeader";
|
|
94
|
+
export { default as blogFooter } from "./components/molecules/blogFooter/BlogFooter";
|
|
85
95
|
export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
|
|
86
96
|
export { default as BlogText } from "./components/molecules/blogText/BlogText";
|
|
87
97
|
export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
88
|
-
export { default as blogFooter } from "./components/molecules/blogFooter/BlogFooter";
|
|
89
|
-
export { default as Banner } from "./components/molecules/banner/Banner";
|
|
90
|
-
export { default as FeatureGrid } from "./components/molecules/featureGrid/FeatureGrid";
|
|
91
|
-
export { default as HeroSection } from "./components/molecules/heroSection/HeroSection";
|
|
92
|
-
export { default as FrameCTA } from "./components/molecules/frameCTA/FrameCTA";
|