@salesforcedevs/mrkt-components 0.40.0 → 0.41.0-alpha.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-alpha.0",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -14,6 +14,5 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/classnames": "^2.2.10"
17
- },
18
- "gitHead": "a695b88fda2f9ef1ddfbd5c75408293cbf0024c1"
17
+ }
19
18
  }
@@ -3,7 +3,11 @@
3
3
  <div class="item-grid">
4
4
  <template for:each={items} for:item="item">
5
5
  <div class="item" key={item.title}>
6
- <dx-icon-badge symbol={item.iconSymbol}></dx-icon-badge>
6
+ <dx-icon-badge
7
+ symbol={item.iconSymbol}
8
+ sprite={item.iconSprite}
9
+ background-color={item.backgroundColor}
10
+ ></dx-icon-badge>
7
11
  <h3 class="title dx-text-heading-4b">{item.title}</h3>
8
12
  <span class="subtitle dx-text-body-1">{item.subtitle}</span>
9
13
  </div>
@@ -6,6 +6,8 @@ type Item = {
6
6
  title: string;
7
7
  subtitle: string;
8
8
  iconSymbol: string;
9
+ iconSprite: string;
10
+ backgroundColor: string;
9
11
  };
10
12
 
11
13
  export default class TwoColListSection extends LightningElement {
@@ -7,21 +7,9 @@
7
7
  <dx-button href={buttonHref}>{buttonText}</dx-button>
8
8
  </div>
9
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
- />
10
+ <img class="graphic-1" src={graphicOne} alt="" />
11
+ <img class="graphic-2" src={graphicTwo} alt="" />
12
+ <img class="graphic-3" src={graphicThree} alt="" />
25
13
  <slot></slot>
26
14
  </div>
27
15
  </div>
@@ -6,4 +6,7 @@ export default class TwoColPanelSection extends LightningElement {
6
6
  @api buttonText!: string;
7
7
  @api subtitle!: string;
8
8
  @api title!: string;
9
+ @api graphicOne!: string;
10
+ @api graphicTwo!: string;
11
+ @api graphicThree!: string;
9
12
  }
@@ -0,0 +1,75 @@
1
+ @import "helpers/reset";
2
+
3
+ .container {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ position: relative;
8
+ overflow: hidden;
9
+ padding-bottom: 20px;
10
+ }
11
+
12
+ .swoop-container {
13
+ width: 100%;
14
+ height: 100%;
15
+ position: absolute;
16
+ bottom: 50%;
17
+ }
18
+
19
+ .swoop-background {
20
+ background-color: var(--dx-g-cloud-blue-vibrant-95);
21
+ width: 100%;
22
+ height: 100%;
23
+ }
24
+
25
+ .swoop {
26
+ width: 100%;
27
+ }
28
+
29
+ .section-title {
30
+ margin-top: var(--dx-g-spacing-xl);
31
+ margin-bottom: var(--dx-g-spacing-xl);
32
+ color: var(--dx-g-text-heading-color);
33
+ font-family: var(--dx-g-font-display);
34
+ font-size: var(--dx-g-text-4xl);
35
+ letter-spacing: -0.6px;
36
+ line-height: 56px;
37
+ }
38
+
39
+ .video {
40
+ box-shadow: var(--dx-g-box-shadow-md);
41
+ width: 70%;
42
+ border-radius: 16px;
43
+ overflow: hidden;
44
+ }
45
+
46
+ .section-title,
47
+ .video {
48
+ z-index: 1;
49
+ }
50
+
51
+ @media screen and (max-width: 768px) {
52
+ .section-title {
53
+ margin-top: var(--dx-g-spacing-mlg);
54
+ margin-bottom: var(--dx-g-spacing-mlg);
55
+ font-size: var(--dx-g-text-3xl);
56
+ }
57
+
58
+ .video {
59
+ width: 90%;
60
+ }
61
+ }
62
+
63
+ @media screen and (max-width: 360px) {
64
+ .section-title {
65
+ font-size: 32px;
66
+ }
67
+
68
+ .swoop-container {
69
+ bottom: 0;
70
+ }
71
+
72
+ .swoop-background {
73
+ height: 120%;
74
+ }
75
+ }
@@ -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
+ }
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.