@salesforcedevs/mrkt-components 0.33.0 → 0.34.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
@@ -8,6 +8,7 @@
8
8
  "mrkt/ctaSection",
9
9
  "mrkt/sectionHeader",
10
10
  "mrkt/twoColSection",
11
- "mrkt/twoColListSection"
11
+ "mrkt/twoColListSection",
12
+ "mrkt/rectangularHeading"
12
13
  ]
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/mrkt-components",
3
- "version": "0.33.0",
3
+ "version": "0.34.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": "34ebab19f554e645e11097c0fee21cc66adc1f0a"
18
+ "gitHead": "3fb8d8f361564473da583dae0a1e90cdeb943601"
19
19
  }
@@ -0,0 +1,87 @@
1
+ @import "helpers/reset";
2
+
3
+ :host {
4
+ /* uses a fallback until blue vibrant 15 is setup in dx-css-variables */
5
+ background-color: var(--dx-g-blue-vibrant-15, #03234d);
6
+ display: block;
7
+ font-family: var(--dx-g-font-display);
8
+ overflow: hidden;
9
+ padding: 0 var(--dx-g-page-padding-horizontal);
10
+ position: relative;
11
+ }
12
+
13
+ h1 {
14
+ color: white;
15
+ font-size: var(--dx-g-text-6xl);
16
+ line-height: 88px;
17
+ margin-bottom: var(--dx-g-spacing-lg);
18
+ letter-spacing: -0.018em;
19
+ }
20
+
21
+ img {
22
+ --image-width: 1440px;
23
+
24
+ max-width: none;
25
+ bottom: 0;
26
+ left: 315px;
27
+ width: var(--image-width);
28
+ position: absolute;
29
+ }
30
+
31
+ dx-button,
32
+ h1 {
33
+ position: relative;
34
+ z-index: 1;
35
+ }
36
+
37
+ .heading-content {
38
+ width: 100%;
39
+ position: relative;
40
+ z-index: 1;
41
+ padding: 108px 0;
42
+ }
43
+
44
+ @media screen and (max-width: 1368px) {
45
+ h1 {
46
+ font-size: 56px;
47
+ letter-spacing: -0.012em;
48
+ line-height: 64px;
49
+ }
50
+
51
+ img {
52
+ --image-width: 1146px;
53
+ }
54
+ }
55
+
56
+ @media screen and (max-width: 1124px) {
57
+ .heading-content {
58
+ display: flex;
59
+ flex-direction: column;
60
+ align-items: center;
61
+ text-align: center;
62
+ padding-bottom: 404px;
63
+ }
64
+
65
+ img {
66
+ --image-width: 1520px;
67
+
68
+ bottom: 0;
69
+ left: calc((100% - var(--image-width)) / 2);
70
+ }
71
+ }
72
+
73
+ @media screen and (max-width: 770px) {
74
+ .heading-content {
75
+ padding-bottom: 315px;
76
+ }
77
+
78
+ img {
79
+ --image-width: 880px;
80
+ }
81
+
82
+ h1 {
83
+ font-size: 48px;
84
+ line-height: 56px;
85
+ letter-spacing: -0.01em;
86
+ }
87
+ }
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <div class="heading-content">
3
+ <h1>{title}</h1>
4
+ <dx-button href={ctaHref} size="large">{ctaLabel}</dx-button>
5
+ <img src={imgSrc} alt="" />
6
+ </div>
7
+ </template>
@@ -0,0 +1,8 @@
1
+ import { LightningElement, api } from "lwc";
2
+
3
+ export default class RectangularHeading extends LightningElement {
4
+ @api title!: string;
5
+ @api imgSrc!: string;
6
+ @api ctaLabel!: string;
7
+ @api ctaHref!: string;
8
+ }