@tiddh/brave-vue 1.93.11 → 1.93.13
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/brave-vue.esm.js +12 -12
- package/dist/brave-vue.min.js +1 -1
- package/dist/brave-vue.ssr.js +19 -19
- package/dist/src/Card/CardProduct.stories.js +3 -10
- package/dist/src/Card/CardProduct.vue +56 -10
- package/dist/src/CardProduct.stories.js +3 -10
- package/dist/src/CardProduct.vue +56 -10
- package/dist/src/Navigation/Stepper.vue +1 -1
- package/dist/src/Navigation/TopBar.vue +1 -1
- package/dist/src/Preview/Preview.stories.js +5 -5
- package/dist/src/Preview/PreviewWithTools.vue +3 -0
- package/dist/src/Preview.stories.js +5 -5
- package/dist/src/PreviewWithTools.vue +3 -0
- package/dist/src/Stepper.vue +1 -1
- package/dist/src/TopBar.vue +1 -1
- package/dist/src/components/Card/CardProduct.stories.js +3 -10
- package/dist/src/components/Card/CardProduct.vue +56 -10
- package/dist/src/components/Navigation/Stepper.vue +1 -1
- package/dist/src/components/Navigation/TopBar.vue +1 -1
- package/dist/src/components/Preview/Preview.stories.js +5 -5
- package/dist/src/components/Preview/PreviewWithTools.vue +3 -0
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ var productCatalog = {
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
id: 1,
|
|
111
|
-
name: "Experiência
|
|
111
|
+
name: "Experiência Sonora",
|
|
112
112
|
description:
|
|
113
113
|
"Este livro foi escrito por um premiado autor de literatura infantil com o intuito de despertar nas crianças o interesse pela leitura por meio de experiências personalizadas e repletas de aprendizados.",
|
|
114
114
|
thumbnail:
|
|
@@ -160,17 +160,10 @@ export const Basic = () => ({
|
|
|
160
160
|
},
|
|
161
161
|
template: `<div class="container container-preview">
|
|
162
162
|
|
|
163
|
-
<div class="storybook-25" style="background-color: #ccc; width:
|
|
163
|
+
<div class="storybook-25" style="background-color: #ccc; width:100%; padding:48px;">
|
|
164
164
|
<CardProduct :product="product" :ageTo="ageTo" :bookType="bookType" />
|
|
165
165
|
</div>
|
|
166
|
-
|
|
167
|
-
<CardProduct :product="productResgate" :ageTo="ageTo" :bookType="bookType" />
|
|
168
|
-
</div>
|
|
169
|
-
|
|
170
|
-
<br>
|
|
171
|
-
<div class="storybook-25" style="background-color: #ccc; width:50%; padding:48px;">
|
|
172
|
-
<CardProduct :product="productResgateSquare" :ageTo="ageTo" :bookType="bookType" />
|
|
173
|
-
</div>
|
|
166
|
+
|
|
174
167
|
|
|
175
168
|
|
|
176
169
|
</div>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="panel-book"
|
|
4
|
-
:class="[
|
|
4
|
+
:class="[
|
|
5
|
+
gridView ? '' : 'grid',
|
|
6
|
+
ageTo > 5 ? 'vertical' : 'horizontal',
|
|
7
|
+
!isMobile ? 'card-desk' : 'card-mobile',
|
|
8
|
+
]"
|
|
5
9
|
>
|
|
6
10
|
<div class="flex-box-column">
|
|
7
11
|
<div class="flex-box-row">
|
|
@@ -36,9 +40,21 @@
|
|
|
36
40
|
class="text-description-title"
|
|
37
41
|
v-if="product.productDisplayDetails"
|
|
38
42
|
>
|
|
39
|
-
<Heading
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
<Heading
|
|
44
|
+
kind="h2"
|
|
45
|
+
size="xxs"
|
|
46
|
+
color="#AFA2BA"
|
|
47
|
+
v-if="product.protagonist"
|
|
48
|
+
>{{ product.protagonist }}</Heading
|
|
49
|
+
>
|
|
50
|
+
<Heading
|
|
51
|
+
kind="h2"
|
|
52
|
+
size="xxs"
|
|
53
|
+
color="#AFA2BA"
|
|
54
|
+
v-else-if="product.brand.name"
|
|
55
|
+
>{{ product.brand.name }}</Heading
|
|
56
|
+
>
|
|
57
|
+
|
|
42
58
|
<Heading
|
|
43
59
|
kind="h2"
|
|
44
60
|
size="xs"
|
|
@@ -146,7 +162,7 @@
|
|
|
146
162
|
</div>
|
|
147
163
|
|
|
148
164
|
<div class="flex-box-row-footer">
|
|
149
|
-
<div class="payment-box"
|
|
165
|
+
<div class="payment-box">
|
|
150
166
|
<!-- productHighlightTags -->
|
|
151
167
|
<div
|
|
152
168
|
class="hightlight-flag"
|
|
@@ -157,7 +173,7 @@
|
|
|
157
173
|
name="speaker"
|
|
158
174
|
size="sm"
|
|
159
175
|
stroke="#4965bc"
|
|
160
|
-
v-if="productHighlight.name.includes('
|
|
176
|
+
v-if="productHighlight.name.includes('Exp')"
|
|
161
177
|
/>
|
|
162
178
|
<Icon
|
|
163
179
|
name="awards"
|
|
@@ -273,9 +289,23 @@
|
|
|
273
289
|
|
|
274
290
|
mounted() {
|
|
275
291
|
self = this;
|
|
292
|
+
|
|
293
|
+
self.isMobile = self.detectSize();
|
|
294
|
+
|
|
295
|
+
window.addEventListener("resize", function (e) {
|
|
296
|
+
self.isMobile = self.detectSize();
|
|
297
|
+
});
|
|
276
298
|
},
|
|
277
299
|
|
|
278
300
|
methods: {
|
|
301
|
+
detectSize() {
|
|
302
|
+
var menuStatus = false;
|
|
303
|
+
if (window.innerWidth < 990) {
|
|
304
|
+
menuStatus = true;
|
|
305
|
+
}
|
|
306
|
+
return menuStatus;
|
|
307
|
+
},
|
|
308
|
+
|
|
279
309
|
changeBookItem(payload) {
|
|
280
310
|
const self = this;
|
|
281
311
|
|
|
@@ -634,7 +664,7 @@
|
|
|
634
664
|
border: none;
|
|
635
665
|
border-radius: px-size("sm", $border-radius-md);
|
|
636
666
|
-webkit-border-radius: px-size("sm", $border-radius-md);
|
|
637
|
-
margin-top:
|
|
667
|
+
margin-top: px-size("sm", $spacing-stack-sm);
|
|
638
668
|
}
|
|
639
669
|
|
|
640
670
|
.text-description-title {
|
|
@@ -679,8 +709,7 @@
|
|
|
679
709
|
|
|
680
710
|
@include media-breakpoint-down("sm") {
|
|
681
711
|
height: px-size("sm", 120px);
|
|
682
|
-
border-radius:
|
|
683
|
-
0px;
|
|
712
|
+
border-radius: 0px 0px px-size("sm", 150px) 0px;
|
|
684
713
|
width: 90%;
|
|
685
714
|
}
|
|
686
715
|
}
|
|
@@ -694,6 +723,8 @@
|
|
|
694
723
|
@include media-breakpoint-down("sm") {
|
|
695
724
|
padding: px-size("sm", $spacing-inline-sm)
|
|
696
725
|
px-size("sm", $spacing-inline-md);
|
|
726
|
+
|
|
727
|
+
flex-wrap: wrap;
|
|
697
728
|
}
|
|
698
729
|
}
|
|
699
730
|
.button-box {
|
|
@@ -712,6 +743,11 @@
|
|
|
712
743
|
.payment-box {
|
|
713
744
|
display: flex;
|
|
714
745
|
flex-grow: 1;
|
|
746
|
+
|
|
747
|
+
@include media-breakpoint-down("sm") {
|
|
748
|
+
flex-wrap: wrap;
|
|
749
|
+
margin-bottom: px-size("sm", $spacing-inline-sm);
|
|
750
|
+
}
|
|
715
751
|
}
|
|
716
752
|
.text-orange {
|
|
717
753
|
background-color: $color-feedback-alert;
|
|
@@ -743,7 +779,6 @@
|
|
|
743
779
|
padding: px-size("lg", $spacing-inset-xxs);
|
|
744
780
|
border-radius: 4px;
|
|
745
781
|
background: #e1f3fe;
|
|
746
|
-
|
|
747
782
|
font-family: $font-family-comp-02;
|
|
748
783
|
font-size: px-size("lg", $font-size-xxs);
|
|
749
784
|
font-weight: $font-weight-black;
|
|
@@ -756,6 +791,17 @@
|
|
|
756
791
|
align-items: center;
|
|
757
792
|
margin-right: px-size("lg", $spacing-inline-xs);
|
|
758
793
|
|
|
794
|
+
@include media-breakpoint-down("sm") {
|
|
795
|
+
width: 100%;
|
|
796
|
+
margin-bottom: px-size("sm", $spacing-stack-xs);
|
|
797
|
+
padding: px-size("sm", $spacing-inset-xxs);
|
|
798
|
+
font-size: px-size("sm", 12px);
|
|
799
|
+
|
|
800
|
+
&:last-child {
|
|
801
|
+
margin-bottom: 0px;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
759
805
|
i {
|
|
760
806
|
margin-right: px-size("lg", $spacing-inline-xxs);
|
|
761
807
|
}
|
|
@@ -108,7 +108,7 @@ var productCatalog = {
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
id: 1,
|
|
111
|
-
name: "Experiência
|
|
111
|
+
name: "Experiência Sonora",
|
|
112
112
|
description:
|
|
113
113
|
"Este livro foi escrito por um premiado autor de literatura infantil com o intuito de despertar nas crianças o interesse pela leitura por meio de experiências personalizadas e repletas de aprendizados.",
|
|
114
114
|
thumbnail:
|
|
@@ -160,17 +160,10 @@ export const Basic = () => ({
|
|
|
160
160
|
},
|
|
161
161
|
template: `<div class="container container-preview">
|
|
162
162
|
|
|
163
|
-
<div class="storybook-25" style="background-color: #ccc; width:
|
|
163
|
+
<div class="storybook-25" style="background-color: #ccc; width:100%; padding:48px;">
|
|
164
164
|
<CardProduct :product="product" :ageTo="ageTo" :bookType="bookType" />
|
|
165
165
|
</div>
|
|
166
|
-
|
|
167
|
-
<CardProduct :product="productResgate" :ageTo="ageTo" :bookType="bookType" />
|
|
168
|
-
</div>
|
|
169
|
-
|
|
170
|
-
<br>
|
|
171
|
-
<div class="storybook-25" style="background-color: #ccc; width:50%; padding:48px;">
|
|
172
|
-
<CardProduct :product="productResgateSquare" :ageTo="ageTo" :bookType="bookType" />
|
|
173
|
-
</div>
|
|
166
|
+
|
|
174
167
|
|
|
175
168
|
|
|
176
169
|
</div>
|
package/dist/src/CardProduct.vue
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="panel-book"
|
|
4
|
-
:class="[
|
|
4
|
+
:class="[
|
|
5
|
+
gridView ? '' : 'grid',
|
|
6
|
+
ageTo > 5 ? 'vertical' : 'horizontal',
|
|
7
|
+
!isMobile ? 'card-desk' : 'card-mobile',
|
|
8
|
+
]"
|
|
5
9
|
>
|
|
6
10
|
<div class="flex-box-column">
|
|
7
11
|
<div class="flex-box-row">
|
|
@@ -36,9 +40,21 @@
|
|
|
36
40
|
class="text-description-title"
|
|
37
41
|
v-if="product.productDisplayDetails"
|
|
38
42
|
>
|
|
39
|
-
<Heading
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
<Heading
|
|
44
|
+
kind="h2"
|
|
45
|
+
size="xxs"
|
|
46
|
+
color="#AFA2BA"
|
|
47
|
+
v-if="product.protagonist"
|
|
48
|
+
>{{ product.protagonist }}</Heading
|
|
49
|
+
>
|
|
50
|
+
<Heading
|
|
51
|
+
kind="h2"
|
|
52
|
+
size="xxs"
|
|
53
|
+
color="#AFA2BA"
|
|
54
|
+
v-else-if="product.brand.name"
|
|
55
|
+
>{{ product.brand.name }}</Heading
|
|
56
|
+
>
|
|
57
|
+
|
|
42
58
|
<Heading
|
|
43
59
|
kind="h2"
|
|
44
60
|
size="xs"
|
|
@@ -146,7 +162,7 @@
|
|
|
146
162
|
</div>
|
|
147
163
|
|
|
148
164
|
<div class="flex-box-row-footer">
|
|
149
|
-
<div class="payment-box"
|
|
165
|
+
<div class="payment-box">
|
|
150
166
|
<!-- productHighlightTags -->
|
|
151
167
|
<div
|
|
152
168
|
class="hightlight-flag"
|
|
@@ -157,7 +173,7 @@
|
|
|
157
173
|
name="speaker"
|
|
158
174
|
size="sm"
|
|
159
175
|
stroke="#4965bc"
|
|
160
|
-
v-if="productHighlight.name.includes('
|
|
176
|
+
v-if="productHighlight.name.includes('Exp')"
|
|
161
177
|
/>
|
|
162
178
|
<Icon
|
|
163
179
|
name="awards"
|
|
@@ -273,9 +289,23 @@
|
|
|
273
289
|
|
|
274
290
|
mounted() {
|
|
275
291
|
self = this;
|
|
292
|
+
|
|
293
|
+
self.isMobile = self.detectSize();
|
|
294
|
+
|
|
295
|
+
window.addEventListener("resize", function (e) {
|
|
296
|
+
self.isMobile = self.detectSize();
|
|
297
|
+
});
|
|
276
298
|
},
|
|
277
299
|
|
|
278
300
|
methods: {
|
|
301
|
+
detectSize() {
|
|
302
|
+
var menuStatus = false;
|
|
303
|
+
if (window.innerWidth < 990) {
|
|
304
|
+
menuStatus = true;
|
|
305
|
+
}
|
|
306
|
+
return menuStatus;
|
|
307
|
+
},
|
|
308
|
+
|
|
279
309
|
changeBookItem(payload) {
|
|
280
310
|
const self = this;
|
|
281
311
|
|
|
@@ -634,7 +664,7 @@
|
|
|
634
664
|
border: none;
|
|
635
665
|
border-radius: px-size("sm", $border-radius-md);
|
|
636
666
|
-webkit-border-radius: px-size("sm", $border-radius-md);
|
|
637
|
-
margin-top:
|
|
667
|
+
margin-top: px-size("sm", $spacing-stack-sm);
|
|
638
668
|
}
|
|
639
669
|
|
|
640
670
|
.text-description-title {
|
|
@@ -679,8 +709,7 @@
|
|
|
679
709
|
|
|
680
710
|
@include media-breakpoint-down("sm") {
|
|
681
711
|
height: px-size("sm", 120px);
|
|
682
|
-
border-radius:
|
|
683
|
-
0px;
|
|
712
|
+
border-radius: 0px 0px px-size("sm", 150px) 0px;
|
|
684
713
|
width: 90%;
|
|
685
714
|
}
|
|
686
715
|
}
|
|
@@ -694,6 +723,8 @@
|
|
|
694
723
|
@include media-breakpoint-down("sm") {
|
|
695
724
|
padding: px-size("sm", $spacing-inline-sm)
|
|
696
725
|
px-size("sm", $spacing-inline-md);
|
|
726
|
+
|
|
727
|
+
flex-wrap: wrap;
|
|
697
728
|
}
|
|
698
729
|
}
|
|
699
730
|
.button-box {
|
|
@@ -712,6 +743,11 @@
|
|
|
712
743
|
.payment-box {
|
|
713
744
|
display: flex;
|
|
714
745
|
flex-grow: 1;
|
|
746
|
+
|
|
747
|
+
@include media-breakpoint-down("sm") {
|
|
748
|
+
flex-wrap: wrap;
|
|
749
|
+
margin-bottom: px-size("sm", $spacing-inline-sm);
|
|
750
|
+
}
|
|
715
751
|
}
|
|
716
752
|
.text-orange {
|
|
717
753
|
background-color: $color-feedback-alert;
|
|
@@ -743,7 +779,6 @@
|
|
|
743
779
|
padding: px-size("lg", $spacing-inset-xxs);
|
|
744
780
|
border-radius: 4px;
|
|
745
781
|
background: #e1f3fe;
|
|
746
|
-
|
|
747
782
|
font-family: $font-family-comp-02;
|
|
748
783
|
font-size: px-size("lg", $font-size-xxs);
|
|
749
784
|
font-weight: $font-weight-black;
|
|
@@ -756,6 +791,17 @@
|
|
|
756
791
|
align-items: center;
|
|
757
792
|
margin-right: px-size("lg", $spacing-inline-xs);
|
|
758
793
|
|
|
794
|
+
@include media-breakpoint-down("sm") {
|
|
795
|
+
width: 100%;
|
|
796
|
+
margin-bottom: px-size("sm", $spacing-stack-xs);
|
|
797
|
+
padding: px-size("sm", $spacing-inset-xxs);
|
|
798
|
+
font-size: px-size("sm", 12px);
|
|
799
|
+
|
|
800
|
+
&:last-child {
|
|
801
|
+
margin-bottom: 0px;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
759
805
|
i {
|
|
760
806
|
margin-right: px-size("lg", $spacing-inline-xxs);
|
|
761
807
|
}
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
|
|
16
16
|
// Livro retangular
|
|
17
17
|
var LivroA4 = {
|
|
18
|
-
uuid: "
|
|
18
|
+
uuid: "ddh64ca75893f9b1",
|
|
19
19
|
product_id: 89,
|
|
20
20
|
gender: "menina",
|
|
21
21
|
character_id: 41,
|
|
@@ -209,12 +209,12 @@ var emUso = LivroA4;
|
|
|
209
209
|
|
|
210
210
|
const routes = [
|
|
211
211
|
{
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
key: "index",
|
|
213
|
+
value: "Voltar",
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
key: "second",
|
|
217
|
+
value: "4 - Preview",
|
|
218
218
|
},
|
|
219
219
|
];
|
|
220
220
|
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
|
|
16
16
|
// Livro retangular
|
|
17
17
|
var LivroA4 = {
|
|
18
|
-
uuid: "
|
|
18
|
+
uuid: "ddh64ca75893f9b1",
|
|
19
19
|
product_id: 89,
|
|
20
20
|
gender: "menina",
|
|
21
21
|
character_id: 41,
|
|
@@ -209,12 +209,12 @@ var emUso = LivroA4;
|
|
|
209
209
|
|
|
210
210
|
const routes = [
|
|
211
211
|
{
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
key: "index",
|
|
213
|
+
value: "Voltar",
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
key: "second",
|
|
217
|
+
value: "4 - Preview",
|
|
218
218
|
},
|
|
219
219
|
];
|
|
220
220
|
|
package/dist/src/Stepper.vue
CHANGED
package/dist/src/TopBar.vue
CHANGED
|
@@ -108,7 +108,7 @@ var productCatalog = {
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
id: 1,
|
|
111
|
-
name: "Experiência
|
|
111
|
+
name: "Experiência Sonora",
|
|
112
112
|
description:
|
|
113
113
|
"Este livro foi escrito por um premiado autor de literatura infantil com o intuito de despertar nas crianças o interesse pela leitura por meio de experiências personalizadas e repletas de aprendizados.",
|
|
114
114
|
thumbnail:
|
|
@@ -160,17 +160,10 @@ export const Basic = () => ({
|
|
|
160
160
|
},
|
|
161
161
|
template: `<div class="container container-preview">
|
|
162
162
|
|
|
163
|
-
<div class="storybook-25" style="background-color: #ccc; width:
|
|
163
|
+
<div class="storybook-25" style="background-color: #ccc; width:100%; padding:48px;">
|
|
164
164
|
<CardProduct :product="product" :ageTo="ageTo" :bookType="bookType" />
|
|
165
165
|
</div>
|
|
166
|
-
|
|
167
|
-
<CardProduct :product="productResgate" :ageTo="ageTo" :bookType="bookType" />
|
|
168
|
-
</div>
|
|
169
|
-
|
|
170
|
-
<br>
|
|
171
|
-
<div class="storybook-25" style="background-color: #ccc; width:50%; padding:48px;">
|
|
172
|
-
<CardProduct :product="productResgateSquare" :ageTo="ageTo" :bookType="bookType" />
|
|
173
|
-
</div>
|
|
166
|
+
|
|
174
167
|
|
|
175
168
|
|
|
176
169
|
</div>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="panel-book"
|
|
4
|
-
:class="[
|
|
4
|
+
:class="[
|
|
5
|
+
gridView ? '' : 'grid',
|
|
6
|
+
ageTo > 5 ? 'vertical' : 'horizontal',
|
|
7
|
+
!isMobile ? 'card-desk' : 'card-mobile',
|
|
8
|
+
]"
|
|
5
9
|
>
|
|
6
10
|
<div class="flex-box-column">
|
|
7
11
|
<div class="flex-box-row">
|
|
@@ -36,9 +40,21 @@
|
|
|
36
40
|
class="text-description-title"
|
|
37
41
|
v-if="product.productDisplayDetails"
|
|
38
42
|
>
|
|
39
|
-
<Heading
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
<Heading
|
|
44
|
+
kind="h2"
|
|
45
|
+
size="xxs"
|
|
46
|
+
color="#AFA2BA"
|
|
47
|
+
v-if="product.protagonist"
|
|
48
|
+
>{{ product.protagonist }}</Heading
|
|
49
|
+
>
|
|
50
|
+
<Heading
|
|
51
|
+
kind="h2"
|
|
52
|
+
size="xxs"
|
|
53
|
+
color="#AFA2BA"
|
|
54
|
+
v-else-if="product.brand.name"
|
|
55
|
+
>{{ product.brand.name }}</Heading
|
|
56
|
+
>
|
|
57
|
+
|
|
42
58
|
<Heading
|
|
43
59
|
kind="h2"
|
|
44
60
|
size="xs"
|
|
@@ -146,7 +162,7 @@
|
|
|
146
162
|
</div>
|
|
147
163
|
|
|
148
164
|
<div class="flex-box-row-footer">
|
|
149
|
-
<div class="payment-box"
|
|
165
|
+
<div class="payment-box">
|
|
150
166
|
<!-- productHighlightTags -->
|
|
151
167
|
<div
|
|
152
168
|
class="hightlight-flag"
|
|
@@ -157,7 +173,7 @@
|
|
|
157
173
|
name="speaker"
|
|
158
174
|
size="sm"
|
|
159
175
|
stroke="#4965bc"
|
|
160
|
-
v-if="productHighlight.name.includes('
|
|
176
|
+
v-if="productHighlight.name.includes('Exp')"
|
|
161
177
|
/>
|
|
162
178
|
<Icon
|
|
163
179
|
name="awards"
|
|
@@ -273,9 +289,23 @@
|
|
|
273
289
|
|
|
274
290
|
mounted() {
|
|
275
291
|
self = this;
|
|
292
|
+
|
|
293
|
+
self.isMobile = self.detectSize();
|
|
294
|
+
|
|
295
|
+
window.addEventListener("resize", function (e) {
|
|
296
|
+
self.isMobile = self.detectSize();
|
|
297
|
+
});
|
|
276
298
|
},
|
|
277
299
|
|
|
278
300
|
methods: {
|
|
301
|
+
detectSize() {
|
|
302
|
+
var menuStatus = false;
|
|
303
|
+
if (window.innerWidth < 990) {
|
|
304
|
+
menuStatus = true;
|
|
305
|
+
}
|
|
306
|
+
return menuStatus;
|
|
307
|
+
},
|
|
308
|
+
|
|
279
309
|
changeBookItem(payload) {
|
|
280
310
|
const self = this;
|
|
281
311
|
|
|
@@ -634,7 +664,7 @@
|
|
|
634
664
|
border: none;
|
|
635
665
|
border-radius: px-size("sm", $border-radius-md);
|
|
636
666
|
-webkit-border-radius: px-size("sm", $border-radius-md);
|
|
637
|
-
margin-top:
|
|
667
|
+
margin-top: px-size("sm", $spacing-stack-sm);
|
|
638
668
|
}
|
|
639
669
|
|
|
640
670
|
.text-description-title {
|
|
@@ -679,8 +709,7 @@
|
|
|
679
709
|
|
|
680
710
|
@include media-breakpoint-down("sm") {
|
|
681
711
|
height: px-size("sm", 120px);
|
|
682
|
-
border-radius:
|
|
683
|
-
0px;
|
|
712
|
+
border-radius: 0px 0px px-size("sm", 150px) 0px;
|
|
684
713
|
width: 90%;
|
|
685
714
|
}
|
|
686
715
|
}
|
|
@@ -694,6 +723,8 @@
|
|
|
694
723
|
@include media-breakpoint-down("sm") {
|
|
695
724
|
padding: px-size("sm", $spacing-inline-sm)
|
|
696
725
|
px-size("sm", $spacing-inline-md);
|
|
726
|
+
|
|
727
|
+
flex-wrap: wrap;
|
|
697
728
|
}
|
|
698
729
|
}
|
|
699
730
|
.button-box {
|
|
@@ -712,6 +743,11 @@
|
|
|
712
743
|
.payment-box {
|
|
713
744
|
display: flex;
|
|
714
745
|
flex-grow: 1;
|
|
746
|
+
|
|
747
|
+
@include media-breakpoint-down("sm") {
|
|
748
|
+
flex-wrap: wrap;
|
|
749
|
+
margin-bottom: px-size("sm", $spacing-inline-sm);
|
|
750
|
+
}
|
|
715
751
|
}
|
|
716
752
|
.text-orange {
|
|
717
753
|
background-color: $color-feedback-alert;
|
|
@@ -743,7 +779,6 @@
|
|
|
743
779
|
padding: px-size("lg", $spacing-inset-xxs);
|
|
744
780
|
border-radius: 4px;
|
|
745
781
|
background: #e1f3fe;
|
|
746
|
-
|
|
747
782
|
font-family: $font-family-comp-02;
|
|
748
783
|
font-size: px-size("lg", $font-size-xxs);
|
|
749
784
|
font-weight: $font-weight-black;
|
|
@@ -756,6 +791,17 @@
|
|
|
756
791
|
align-items: center;
|
|
757
792
|
margin-right: px-size("lg", $spacing-inline-xs);
|
|
758
793
|
|
|
794
|
+
@include media-breakpoint-down("sm") {
|
|
795
|
+
width: 100%;
|
|
796
|
+
margin-bottom: px-size("sm", $spacing-stack-xs);
|
|
797
|
+
padding: px-size("sm", $spacing-inset-xxs);
|
|
798
|
+
font-size: px-size("sm", 12px);
|
|
799
|
+
|
|
800
|
+
&:last-child {
|
|
801
|
+
margin-bottom: 0px;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
759
805
|
i {
|
|
760
806
|
margin-right: px-size("lg", $spacing-inline-xxs);
|
|
761
807
|
}
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
|
|
16
16
|
// Livro retangular
|
|
17
17
|
var LivroA4 = {
|
|
18
|
-
uuid: "
|
|
18
|
+
uuid: "ddh64ca75893f9b1",
|
|
19
19
|
product_id: 89,
|
|
20
20
|
gender: "menina",
|
|
21
21
|
character_id: 41,
|
|
@@ -209,12 +209,12 @@ var emUso = LivroA4;
|
|
|
209
209
|
|
|
210
210
|
const routes = [
|
|
211
211
|
{
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
key: "index",
|
|
213
|
+
value: "Voltar",
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
key: "second",
|
|
217
|
+
value: "4 - Preview",
|
|
218
218
|
},
|
|
219
219
|
];
|
|
220
220
|
|