@salesforcedevs/mrkt-components 0.0.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 +21 -0
- package/package.json +18 -0
- package/src/assets/svg/mrkt-cta-section-img-left.svg +28 -0
- package/src/assets/svg/mrkt-cta-section-img-right.svg +18 -0
- package/src/assets/svg/mrkt-no-code-section-graphic.svg +23 -0
- package/src/assets/svg/mrkt-section-header-graphic.svg +110 -0
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-1-light.svg +9 -0
- 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-light.svg +16 -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-light.svg +3 -0
- package/src/assets/svg/mrkt-two-col-panel-section-graphic-3.svg +3 -0
- package/src/assets/svg/mrkt-two-col-panel-section-swoop.svg +3 -0
- package/src/modules/mrkt/ctaSection/ctaSection.css +99 -0
- package/src/modules/mrkt/ctaSection/ctaSection.html +17 -0
- package/src/modules/mrkt/ctaSection/ctaSection.ts +44 -0
- package/src/modules/mrkt/fullImgSection/fullImgSection.css +54 -0
- package/src/modules/mrkt/fullImgSection/fullImgSection.html +11 -0
- package/src/modules/mrkt/fullImgSection/fullImgSection.ts +17 -0
- package/src/modules/mrkt/noCodeSection/noCodeSection.css +82 -0
- package/src/modules/mrkt/noCodeSection/noCodeSection.html +14 -0
- package/src/modules/mrkt/noCodeSection/noCodeSection.ts +8 -0
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.css +97 -0
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.html +10 -0
- package/src/modules/mrkt/rectangularHeading/rectangularHeading.ts +14 -0
- package/src/modules/mrkt/sectionHeader/sectionHeader.css +165 -0
- package/src/modules/mrkt/sectionHeader/sectionHeader.html +24 -0
- package/src/modules/mrkt/sectionHeader/sectionHeader.ts +35 -0
- package/src/modules/mrkt/socials/socials.css +65 -0
- package/src/modules/mrkt/socials/socials.html +16 -0
- package/src/modules/mrkt/socials/socials.ts +17 -0
- package/src/modules/mrkt/subNavBar/subNavBar.css +141 -0
- package/src/modules/mrkt/subNavBar/subNavBar.html +37 -0
- package/src/modules/mrkt/subNavBar/subNavBar.ts +130 -0
- package/src/modules/mrkt/tdxSection/tdxSection.css +115 -0
- package/src/modules/mrkt/tdxSection/tdxSection.html +14 -0
- package/src/modules/mrkt/tdxSection/tdxSection.ts +12 -0
- package/src/modules/mrkt/threeColListSection/threeColListSection.css +102 -0
- package/src/modules/mrkt/threeColListSection/threeColListSection.html +27 -0
- package/src/modules/mrkt/threeColListSection/threeColListSection.ts +24 -0
- package/src/modules/mrkt/twoColListSection/twoColListSection.css +65 -0
- package/src/modules/mrkt/twoColListSection/twoColListSection.html +19 -0
- package/src/modules/mrkt/twoColListSection/twoColListSection.ts +29 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.css +143 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.html +55 -0
- package/src/modules/mrkt/twoColPanelSection/twoColPanelSection.ts +15 -0
- package/src/modules/mrkt/twoColSection/twoColSection.css +67 -0
- package/src/modules/mrkt/twoColSection/twoColSection.html +9 -0
- package/src/modules/mrkt/twoColSection/twoColSection.ts +14 -0
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.css +76 -0
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.html +22 -0
- package/src/modules/mrkt/videoPlayerSection/videoPlayerSection.ts +6 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { api, LightningElement } from "lwc";
|
|
2
|
+
import cx from "classnames";
|
|
3
|
+
|
|
4
|
+
export default class TwoColSection extends LightningElement {
|
|
5
|
+
@api dark?: boolean;
|
|
6
|
+
@api subtitle!: string;
|
|
7
|
+
@api imgAlt!: string;
|
|
8
|
+
@api imgSrc!: string;
|
|
9
|
+
@api title!: string;
|
|
10
|
+
|
|
11
|
+
private get className(): string {
|
|
12
|
+
return cx("two-col-section", this.dark && "dark");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
padding: 0 var(--dx-g-page-padding-horizontal) 20px
|
|
10
|
+
var(--dx-g-page-padding-horizontal);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.swoop-container {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
position: absolute;
|
|
17
|
+
bottom: 50%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.swoop-background {
|
|
21
|
+
background-color: var(--dx-g-cloud-blue-vibrant-95);
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.swoop {
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.section-title {
|
|
31
|
+
margin-top: var(--dx-g-spacing-xl);
|
|
32
|
+
margin-bottom: var(--dx-g-spacing-xl);
|
|
33
|
+
color: var(--dx-g-text-heading-color);
|
|
34
|
+
font-family: var(--dx-g-font-display);
|
|
35
|
+
font-size: var(--dx-g-text-4xl);
|
|
36
|
+
letter-spacing: -0.6px;
|
|
37
|
+
line-height: 56px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.video {
|
|
41
|
+
box-shadow: var(--dx-g-box-shadow-md);
|
|
42
|
+
width: 74%;
|
|
43
|
+
border-radius: 16px;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.section-title,
|
|
48
|
+
.video {
|
|
49
|
+
z-index: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media screen and (max-width: 768px) {
|
|
53
|
+
.section-title {
|
|
54
|
+
margin-top: var(--dx-g-spacing-mlg);
|
|
55
|
+
margin-bottom: var(--dx-g-spacing-mlg);
|
|
56
|
+
font-size: var(--dx-g-text-3xl);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.video {
|
|
60
|
+
width: 90%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media screen and (max-width: 360px) {
|
|
65
|
+
.section-title {
|
|
66
|
+
font-size: 32px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.swoop-container {
|
|
70
|
+
bottom: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.swoop-background {
|
|
74
|
+
height: 120%;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -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>
|