@salesforcedevs/mrkt-components 0.38.0 → 0.41.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/lwc.config.json +4 -1
- package/package.json +2 -2
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-1.svg +9 -0
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-2.svg +16 -0
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-3.svg +3 -0
- package/src/modules/mrkt/tdxSection/tdxSection.css +160 -0
- package/src/modules/mrkt/tdxSection/tdxSection.html +16 -0
- package/src/modules/mrkt/tdxSection/tdxSection.ts +11 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.css +136 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.html +28 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.ts +9 -0
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.css +73 -0
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.html +22 -0
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.ts +6 -0
package/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/mrkt-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Marketing Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/classnames": "^2.2.10"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "363477b8997dcd990c2d668b03ee0142334d7815"
|
|
19
19
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="314" height="356" viewBox="0 0 314 356" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="161" cy="202.22" r="153" fill="#014486"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M65.9508 22.7202L64.4328 26.2202C64.3248 26.4711 64.0938 26.6674 63.8008 26.7596L59.6998 28.0551C58.7667 28.3504 58.7667 29.4753 59.6998 29.7697L63.8008 31.0644C64.0938 31.1574 64.3248 31.3546 64.4328 31.6046L65.9508 35.1055C66.2958 35.9 67.6148 35.9 67.9598 35.1055L69.4768 31.6046C69.5858 31.3546 69.8168 31.1574 70.1098 31.0644L74.2108 29.7697C75.1428 29.4753 75.1428 28.3504 74.2108 28.0551L70.1098 26.7596C69.8168 26.6674 69.5858 26.4711 69.4768 26.2202L67.9598 22.7202C67.6148 21.924 66.2958 21.924 65.9508 22.7202Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M30.1539 3.88145C30.1539 5.8128 28.3209 7.37717 26.0579 7.37717C23.7959 7.37717 21.9629 5.8128 21.9629 3.88145C21.9629 1.95096 23.7959 0.385742 26.0579 0.385742C28.3209 0.385742 30.1539 1.95096 30.1539 3.88145Z" fill="white"/>
|
|
5
|
+
<path d="M70.002 132.19V116.855" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M78.983 124.525H61" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
<path d="M13.25 44.7393H32" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
8
|
+
<path d="M1 44.7393H6" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg width="174" height="113" viewBox="0 0 174 113" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M81.7071 11.2227H73.3301C67.8071 11.2227 63.3301 15.7007 63.3301 21.2227C63.3301 26.7457 67.8071 31.2227 73.3301 31.2227H79.3951" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
3
|
+
<path d="M124.974 31.2227H126.698C132.221 31.2227 136.698 26.7457 136.698 21.2227C136.698 15.7007 132.221 11.2227 126.698 11.2227H112.589" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
4
|
+
<path d="M116.393 36.3964C118.097 33.3164 121.379 31.2314 125.148 31.2314" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
5
|
+
<path d="M68.9183 86.8024C67.3373 89.1504 64.7853 90.7894 61.8373 91.1494H56.3213C50.7983 91.1494 46.3213 95.6264 46.3213 101.149C46.3213 106.672 50.7983 111.149 56.3213 111.149H109.569C115.091 111.149 119.569 106.672 119.569 101.149C119.569 95.6264 115.091 91.1494 109.569 91.1494H99.2823C94.3373 90.5454 90.5043 86.3404 90.5043 81.2314C90.5043 75.7104 94.9793 71.2344 100.5 71.2324H162.367C167.89 71.2324 172.367 66.7544 172.367 61.2324C172.367 55.7094 167.89 51.2324 162.367 51.2324H125.141C121.266 51.2294 117.906 49.0234 116.248 45.7994C115.544 44.4294 115.147 42.8774 115.147 41.2324" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
6
|
+
<path d="M85.083 31.2314C90.606 31.2314 95.083 35.7084 95.083 41.2314C95.083 46.7524 90.609 51.2284 85.089 51.2314H11C5.478 51.2314 1 55.7084 1 61.2314C1 66.7534 5.478 71.2314 11 71.2314H60.62C66.141 71.2334 70.615 75.7104 70.615 81.2314" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M142.809 78.8788L141.664 81.9718C141.582 82.1928 141.408 82.3678 141.187 82.4498L138.094 83.5938C137.391 83.8548 137.391 84.8488 138.094 85.1088L141.187 86.2538C141.408 86.3358 141.582 86.5098 141.664 86.7308L142.809 89.8238C143.069 90.5268 144.064 90.5268 144.324 89.8238L145.469 86.7308C145.55 86.5098 145.725 86.3358 145.946 86.2538L149.039 85.1088C149.742 84.8488 149.742 83.8548 149.039 83.5938L145.946 82.4498C145.725 82.3678 145.55 82.1928 145.469 81.9718L144.324 78.8788C144.064 78.1758 143.069 78.1758 142.809 78.8788Z" stroke="#0176D3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M107.843 11.2197C107.843 16.7417 103.366 21.2197 97.8428 21.2197C92.3198 21.2197 87.8428 16.7417 87.8428 11.2197C87.8428 5.69673 92.3198 1.21973 97.8428 1.21973C103.366 1.21973 107.843 5.69673 107.843 11.2197Z" stroke="#0176D3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M125.194 40.9707H110.552" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
10
|
+
<path d="M134.661 40.9707H132.444" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
11
|
+
<path d="M59.5791 81.3203H75.2761" stroke="#0176D3" stroke-width="2" stroke-linecap="round"/>
|
|
12
|
+
<path d="M80.7764 81.3203C80.7764 81.5962 80.5522 81.8203 80.2764 81.8203C80.0005 81.8203 79.7764 81.5962 79.7764 81.3203C79.7764 81.0445 80.0005 80.8203 80.2764 80.8203C80.5522 80.8203 80.7764 81.0445 80.7764 81.3203Z" stroke="#0176D3"/>
|
|
13
|
+
<path d="M30.8359 101.054C30.8359 101.881 30.1637 102.554 29.3359 102.554C28.5075 102.554 27.8359 101.882 27.8359 101.054C27.8359 100.225 28.5072 99.5537 29.3359 99.5537C30.1639 99.5537 30.8359 100.225 30.8359 101.054Z" stroke="#0176D3" stroke-width="2"/>
|
|
14
|
+
<path d="M54.2441 44.9867V37.0107" stroke="#0176D3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
+
<path d="M58.2311 41L50.248 41.0005" stroke="#0176D3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@import "helpers/reset";
|
|
2
|
+
@import "helpers/text";
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--dx-g-text-heading-color: white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.container {
|
|
9
|
+
background-color: var(--dx-g-indigo-vibrant-20);
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
margin: 108px auto 0 auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
padding-left: var(--dx-g-page-padding-horizontal);
|
|
17
|
+
width: 70%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.content-subtitle,
|
|
21
|
+
.content-info {
|
|
22
|
+
font-family: var(--dx-g-font-display);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.content-subtitle,
|
|
26
|
+
.content-body,
|
|
27
|
+
.content-info {
|
|
28
|
+
color: white;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.content-title {
|
|
32
|
+
margin-top: 54px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.content-subtitle {
|
|
36
|
+
font-size: 32px;
|
|
37
|
+
letter-spacing: -0.4%;
|
|
38
|
+
line-height: 40px;
|
|
39
|
+
margin-top: 6px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.content-body {
|
|
43
|
+
font-family: var(--dx-g-font-sans);
|
|
44
|
+
font-size: var(--dx-g-text-lg);
|
|
45
|
+
letter-spacing: 0.12%;
|
|
46
|
+
line-height: 30px;
|
|
47
|
+
margin-top: var(--dx-g-spacing-smd);
|
|
48
|
+
max-width: 565px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.content-info {
|
|
52
|
+
font-size: var(--dx-g-text-xl);
|
|
53
|
+
letter-spacing: 0.4%;
|
|
54
|
+
line-height: 32px;
|
|
55
|
+
margin-top: 30px;
|
|
56
|
+
margin-bottom: var(--dx-g-spacing-lg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.image-container {
|
|
60
|
+
height: 430px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
img {
|
|
64
|
+
position: relative;
|
|
65
|
+
top: -80px;
|
|
66
|
+
right: 15px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.content-button {
|
|
70
|
+
margin-bottom: 40px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media screen and (max-width: 900px) {
|
|
74
|
+
.container {
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.content {
|
|
79
|
+
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
80
|
+
width: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.content-title {
|
|
84
|
+
font-size: var(--dx-g-text-3xl);
|
|
85
|
+
margin-top: 39px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.content-subtitle {
|
|
89
|
+
font-size: var(--dx-g-text-lg);
|
|
90
|
+
line-height: 28px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.content-body {
|
|
94
|
+
font-size: var(--dx-g-text-sm);
|
|
95
|
+
line-height: 20px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.content-info {
|
|
99
|
+
font-size: var(--dx-g-text-base);
|
|
100
|
+
line-height: 24px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-container {
|
|
104
|
+
height: unset;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
img {
|
|
108
|
+
position: relative;
|
|
109
|
+
top: 15px;
|
|
110
|
+
right: 25px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.content-button {
|
|
114
|
+
margin-bottom: 52px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media screen and (max-width: 600px) {
|
|
119
|
+
.container {
|
|
120
|
+
flex-direction: column-reverse;
|
|
121
|
+
text-align: center;
|
|
122
|
+
margin-top: 170px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.content {
|
|
126
|
+
margin-left: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.content-title {
|
|
130
|
+
font-size: var(--dx-g-text-3xl);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.content-subtitle {
|
|
134
|
+
font-size: var(--dx-g-text-lg);
|
|
135
|
+
line-height: 28px;
|
|
136
|
+
margin-top: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.content-info {
|
|
140
|
+
margin-top: var(--dx-g-spacing-lg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.image-container {
|
|
144
|
+
height: 140px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
img {
|
|
148
|
+
position: relative;
|
|
149
|
+
top: -170px;
|
|
150
|
+
right: 0;
|
|
151
|
+
width: 381px;
|
|
152
|
+
height: 383px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.content-button {
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
margin-bottom: 63px;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="content">
|
|
4
|
+
<h3 class="content-title dx-text-heading-2b">{title}</h3>
|
|
5
|
+
<h4 class="content-subtitle">{subtitle}</h4>
|
|
6
|
+
<p class="content-body">{body}</p>
|
|
7
|
+
<p class="content-info">{info}</p>
|
|
8
|
+
<div class="content-button">
|
|
9
|
+
<dx-button>{buttonLabel}</dx-button>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<dix class="image-container">
|
|
13
|
+
<img src={imgSrc} alt={imgAlt} />
|
|
14
|
+
</dix>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { api, LightningElement } from "lwc";
|
|
2
|
+
|
|
3
|
+
export default class TdxSection extends LightningElement {
|
|
4
|
+
@api title!: string;
|
|
5
|
+
@api subtitle!: string;
|
|
6
|
+
@api body!: string;
|
|
7
|
+
@api info!: string;
|
|
8
|
+
@api buttonLabel!: string;
|
|
9
|
+
@api imgSrc!: string;
|
|
10
|
+
@api imgAlt!: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
@import "helpers/reset";
|
|
2
|
+
@import "helpers/text";
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--padding-vertical: 108px;
|
|
6
|
+
--mrkt-c-two-col-list-section-padding-top: var(--padding-vertical);
|
|
7
|
+
--mrkt-c-two-col-list-section-padding-bottom: var(--padding-vertical);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.two-col-panel-section {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
background: var(--dx-g-blue-vibrant-15, #03234d);
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: var(--mrkt-c-two-col-list-section-padding-top)
|
|
18
|
+
var(--dx-g-page-padding-horizontal)
|
|
19
|
+
var(--mrkt-c-two-col-list-section-padding-bottom)
|
|
20
|
+
var(--dx-g-page-padding-horizontal);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.text-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
padding-right: 80px;
|
|
28
|
+
width: 50%;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.text-container > * {
|
|
33
|
+
max-width: 500px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-container > *:not(:last-child) {
|
|
37
|
+
margin-bottom: var(--dx-g-spacing-md);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
dx-button {
|
|
41
|
+
margin-top: var(--dx-g-spacing-sm);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.card-container {
|
|
45
|
+
position: relative;
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-width: 400px;
|
|
48
|
+
margin: 0 auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.subtitle,
|
|
52
|
+
.title,
|
|
53
|
+
.body {
|
|
54
|
+
color: white;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
img {
|
|
58
|
+
position: absolute;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.graphic-1 {
|
|
62
|
+
width: 306px;
|
|
63
|
+
bottom: -32px;
|
|
64
|
+
left: -106px;
|
|
65
|
+
z-index: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.graphic-2 {
|
|
69
|
+
width: 170px;
|
|
70
|
+
top: 15px;
|
|
71
|
+
left: calc(100% - 38px);
|
|
72
|
+
z-index: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.graphic-3 {
|
|
76
|
+
width: 142px;
|
|
77
|
+
right: -38px;
|
|
78
|
+
bottom: -38px;
|
|
79
|
+
z-index: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (max-width: 1024px) {
|
|
83
|
+
:host {
|
|
84
|
+
--padding-vertical: var(--dx-g-spacing-md);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.title {
|
|
88
|
+
font-size: var(--dx-g-text-2xl);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.body {
|
|
92
|
+
font-size: var(--dx-g-text-sm);
|
|
93
|
+
line-height: 20px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.text-container {
|
|
97
|
+
max-width: 440px;
|
|
98
|
+
padding-right: var(--dx-g-spacing-lg);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.graphic-1 {
|
|
102
|
+
width: 220px;
|
|
103
|
+
left: -80px;
|
|
104
|
+
top: 30px;
|
|
105
|
+
z-index: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.graphic-2,
|
|
109
|
+
.graphic-3 {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (max-width: 768px) {
|
|
115
|
+
:host {
|
|
116
|
+
--padding-vertical: 72px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.two-col-panel-section {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.text-container {
|
|
125
|
+
width: 100%;
|
|
126
|
+
text-align: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
align-items: center;
|
|
129
|
+
padding-right: unset;
|
|
130
|
+
padding-bottom: 72px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.graphic-1 {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="two-col-panel-section">
|
|
3
|
+
<div class="text-container">
|
|
4
|
+
<span class="subtitle dx-text-label-4">{subtitle}</span>
|
|
5
|
+
<h2 class="title dx-text-heading-3">{title}</h2>
|
|
6
|
+
<p class="body dx-text-body-2">{body}</p>
|
|
7
|
+
<dx-button href={buttonHref}>{buttonText}</dx-button>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="card-container">
|
|
10
|
+
<img
|
|
11
|
+
class="graphic-1"
|
|
12
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-1.svg"
|
|
13
|
+
alt=""
|
|
14
|
+
/>
|
|
15
|
+
<img
|
|
16
|
+
class="graphic-2"
|
|
17
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-2.svg"
|
|
18
|
+
alt=""
|
|
19
|
+
/>
|
|
20
|
+
<img
|
|
21
|
+
class="graphic-3"
|
|
22
|
+
src="/assets/svg/mrkt-two-col-panel-section-graphic-3.svg"
|
|
23
|
+
alt=""
|
|
24
|
+
/>
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@import "helpers/reset";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.swoop-container {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
bottom: 50%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.swoop-background {
|
|
18
|
+
background-color: var(--dx-g-cloud-blue-vibrant-95);
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.swoop {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.section-title {
|
|
28
|
+
margin-top: var(--dx-g-spacing-xl);
|
|
29
|
+
margin-bottom: var(--dx-g-spacing-xl);
|
|
30
|
+
color: var(--dx-g-text-heading-color);
|
|
31
|
+
font-family: var(--dx-g-font-display);
|
|
32
|
+
font-size: var(--dx-g-text-4xl);
|
|
33
|
+
letter-spacing: -0.6px;
|
|
34
|
+
line-height: 56px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.video {
|
|
38
|
+
box-shadow: var(--dx-g-box-shadow-md);
|
|
39
|
+
width: 70%;
|
|
40
|
+
border-radius: 16px;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.section-title,
|
|
45
|
+
.video {
|
|
46
|
+
z-index: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (max-width: 768px) {
|
|
50
|
+
.section-title {
|
|
51
|
+
margin-top: var(--dx-g-spacing-mlg);
|
|
52
|
+
margin-bottom: var(--dx-g-spacing-mlg);
|
|
53
|
+
font-size: var(--dx-g-text-3xl);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.video {
|
|
57
|
+
width: 90%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media screen and (max-width: 360px) {
|
|
62
|
+
.section-title {
|
|
63
|
+
font-size: 32px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.swoop-container {
|
|
67
|
+
bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.swoop-background {
|
|
71
|
+
height: 120%;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="swoop-container">
|
|
4
|
+
<div class="swoop-background"></div>
|
|
5
|
+
<svg
|
|
6
|
+
class="swoop"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
viewBox="0 0 1368 94"
|
|
9
|
+
fill="none"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
d="M1368 0C1110 130 278 118 0 0H1368Z"
|
|
13
|
+
fill="#EAF5FE"
|
|
14
|
+
></path>
|
|
15
|
+
</svg>
|
|
16
|
+
</div>
|
|
17
|
+
<h2 class="section-title">{title}</h2>
|
|
18
|
+
<div class="video">
|
|
19
|
+
<dx-vimeo-player video-id={videoId}></dx-vimeo-player>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|