@salesforcedevs/mrkt-components 0.40.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 CHANGED
@@ -13,6 +13,7 @@
13
13
  "mrkt/twoColListSection",
14
14
  "mrkt/twoColPanelSection",
15
15
  "mrkt/rectangularHeading",
16
+ "mrkt/videoPlayerSection",
16
17
  "mrkt/tdxSection"
17
18
  ]
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/mrkt-components",
3
- "version": "0.40.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": "a695b88fda2f9ef1ddfbd5c75408293cbf0024c1"
18
+ "gitHead": "363477b8997dcd990c2d668b03ee0142334d7815"
19
19
  }
@@ -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>
@@ -0,0 +1,6 @@
1
+ import { LightningElement, api } from "lwc";
2
+
3
+ export default class VideoPlayerSection extends LightningElement {
4
+ @api title!: string;
5
+ @api videoId!: number;
6
+ }