project-booster-vue 9.14.2 → 9.15.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/package.json +1 -1
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-planner-showcase-1-snap.png +0 -0
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-planner-showcase-empty-state-1-snap.png +0 -0
- package/src/components/projects/projects/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-projects-/360/237/246/240-showcase-autoscroll-to-estimates-1-snap.png +0 -0
- package/src/components/question/PbQuestion.vue +98 -0
- package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-101-101-1-snap.png +0 -0
- package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-custom-back-button-hide-back-button-1-snap.png +0 -0
- package/src/components/question/default-payload.json +6 -1
package/package.json
CHANGED
|
@@ -30,6 +30,25 @@
|
|
|
30
30
|
@click="displayVideoGuide('')"
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
|
+
<div v-if="payload.viewModel.videoBlock" class="pb-question__video-block-container">
|
|
34
|
+
<div v-if="payload.viewModel.videoBlock" class="pb-question__video-block">
|
|
35
|
+
<div class="pb-question__video-block-image-container">
|
|
36
|
+
<m-image
|
|
37
|
+
class="pb-question__video-block-image"
|
|
38
|
+
:src="decorate(payload.viewModel.videoBlock.image)"
|
|
39
|
+
cover
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="pb-question__video-block-buttons-container">
|
|
43
|
+
<m-button
|
|
44
|
+
:label="decorate(payload.viewModel.videoBlock.buttonLabel)"
|
|
45
|
+
:left-icon="decorate(payload.viewModel.videoBlock.icon)"
|
|
46
|
+
theme="bordered-neutral"
|
|
47
|
+
@click="displayVideoGuide('')"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
33
52
|
</div>
|
|
34
53
|
<m-container fluid class="pb-question__answers-container">
|
|
35
54
|
<m-flexy class="pb-question__answers-container-flexy">
|
|
@@ -783,6 +802,85 @@ $answers-apparition-duration: '0.5s';
|
|
|
783
802
|
}
|
|
784
803
|
}
|
|
785
804
|
|
|
805
|
+
&__video-block {
|
|
806
|
+
@include set-border-radius('m');
|
|
807
|
+
|
|
808
|
+
border: 1px solid $color-grey-300;
|
|
809
|
+
display: flex;
|
|
810
|
+
flex-direction: column;
|
|
811
|
+
margin-top: $mu200;
|
|
812
|
+
max-height: 112px;
|
|
813
|
+
overflow: hidden;
|
|
814
|
+
position: relative;
|
|
815
|
+
width: 100%;
|
|
816
|
+
|
|
817
|
+
@include set-from-screen('s') {
|
|
818
|
+
flex-direction: column;
|
|
819
|
+
width: 100%;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
@include set-from-screen('m') {
|
|
823
|
+
flex-direction: row;
|
|
824
|
+
max-height: unset;
|
|
825
|
+
width: 80%;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
@include set-from-screen('l') {
|
|
829
|
+
flex-direction: row;
|
|
830
|
+
width: 75%;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
@include set-from-screen('xl') {
|
|
834
|
+
flex-direction: row;
|
|
835
|
+
max-width: 768px;
|
|
836
|
+
width: 50%;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
&-container {
|
|
840
|
+
align-items: center;
|
|
841
|
+
display: flex;
|
|
842
|
+
justify-content: center;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
&-image-container {
|
|
846
|
+
width: 100%;
|
|
847
|
+
|
|
848
|
+
@include set-from-screen('s') {
|
|
849
|
+
width: 100%;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
@include set-from-screen('m') {
|
|
853
|
+
width: 33%;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
&-buttons-container {
|
|
858
|
+
align-items: center;
|
|
859
|
+
display: flex;
|
|
860
|
+
flex-grow: 1;
|
|
861
|
+
justify-content: center;
|
|
862
|
+
padding: $mu200 $mu100;
|
|
863
|
+
position: absolute;
|
|
864
|
+
width: 100%;
|
|
865
|
+
|
|
866
|
+
@include set-from-screen('s') {
|
|
867
|
+
padding: $mu200 $mu100;
|
|
868
|
+
width: 100%;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
@include set-from-screen('m') {
|
|
872
|
+
padding: 0 $mu200;
|
|
873
|
+
position: static;
|
|
874
|
+
width: 66%;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
@include set-from-screen('xl') {
|
|
878
|
+
padding: 0 $mu200;
|
|
879
|
+
width: 66%;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
|
|
786
884
|
&__answers-container {
|
|
787
885
|
margin: 0 auto;
|
|
788
886
|
max-width: 100%;
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
"hero": "The question hero",
|
|
4
4
|
"label": "The question title",
|
|
5
5
|
"subtitle": "The question subtitle",
|
|
6
|
-
"answersComponent": "PbCard"
|
|
6
|
+
"answersComponent": "PbCard",
|
|
7
|
+
"videoBlock": {
|
|
8
|
+
"buttonLabel": "Voir le guide en vidéo (1min)",
|
|
9
|
+
"icon": "https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Media_Play_24px.svg",
|
|
10
|
+
"image": "https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
|
|
11
|
+
}
|
|
7
12
|
},
|
|
8
13
|
"answers": {
|
|
9
14
|
"ANSWER-1": {
|