@salesforcedevs/mrkt-components 0.34.0 → 0.36.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
@@ -6,6 +6,7 @@
6
6
  "expose": [
7
7
  "mrkt/subNavBar",
8
8
  "mrkt/ctaSection",
9
+ "mrkt/fullImgSection",
9
10
  "mrkt/sectionHeader",
10
11
  "mrkt/twoColSection",
11
12
  "mrkt/twoColListSection",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/mrkt-components",
3
- "version": "0.34.0",
3
+ "version": "0.36.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": "3fb8d8f361564473da583dae0a1e90cdeb943601"
18
+ "gitHead": "384a66e07507dca00b6951ca9d77fb88d24cc795"
19
19
  }
@@ -0,0 +1,54 @@
1
+ @import "helpers/reset";
2
+ @import "helpers/text";
3
+
4
+ :host {
5
+ --padding-vertical: 74px;
6
+ --mrkt-c-full-img-section-padding-top: var(--padding-vertical);
7
+ --mrkt-c-full-img-section-padding-bottom: var(--padding-vertical);
8
+ }
9
+
10
+ .full-img-section {
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ position: relative;
15
+ background: white;
16
+ width: 100%;
17
+ padding: var(--mrkt-c-full-img-section-padding-top)
18
+ var(--dx-g-page-padding-horizontal)
19
+ var(--mrkt-c-full-img-section-padding-bottom)
20
+ var(--dx-g-page-padding-horizontal);
21
+ }
22
+
23
+ .full-img-section.dark {
24
+ background: var(--dx-g-blue-vibrant-15, #03234d);
25
+ }
26
+
27
+ img {
28
+ width: 100%;
29
+ max-width: 995px;
30
+ }
31
+
32
+ .img-mobile {
33
+ display: none;
34
+ }
35
+
36
+ @media (max-width: 768px) {
37
+ :host {
38
+ --padding-vertical: var(--dx-g-spacing-3xl);
39
+ }
40
+ }
41
+
42
+ @media screen and (max-width: 550px) {
43
+ :host {
44
+ --padding-vertical: var(--dx-g-spacing-lg);
45
+ }
46
+
47
+ .full-img-section.has-mobile-image img.img-mobile {
48
+ display: unset;
49
+ }
50
+
51
+ .full-img-section.has-mobile-image img.img-desktop {
52
+ display: none;
53
+ }
54
+ }
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <div class={className}>
3
+ <img class="img-desktop" src={imgSrc} alt={imgAlt} />
4
+ <img
5
+ class="img-mobile"
6
+ if:true={imgSrcMobile}
7
+ src={imgSrcMobile}
8
+ alt={imgAlt}
9
+ />
10
+ </div>
11
+ </template>
@@ -0,0 +1,17 @@
1
+ import { api, LightningElement } from "lwc";
2
+ import cx from "classnames";
3
+
4
+ export default class FullImgSection extends LightningElement {
5
+ @api dark: boolean = false;
6
+ @api imgSrc!: string;
7
+ @api imgSrcMobile!: string;
8
+ @api imgAlt!: string;
9
+
10
+ private get className(): string {
11
+ return cx(
12
+ "full-img-section",
13
+ this.dark && "dark",
14
+ this.imgSrcMobile && "has-mobile-image"
15
+ );
16
+ }
17
+ }