@salesforcedevs/mrkt-components 0.38.0 → 0.39.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/mrkt-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.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": "
|
|
18
|
+
"gitHead": "30bee3ebd354e9c0f8949bf3b4daaca252e83dfa"
|
|
19
19
|
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@import "helpers/reset";
|
|
2
|
+
@import "helpers/text";
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--dx-g-text-heading-color: white;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.container {
|
|
9
|
+
background-color: var(--dx-g-indigo-vibrant-20);
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
margin: 108px auto 0 auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
padding-left: var(--dx-g-page-padding-horizontal);
|
|
17
|
+
width: 70%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.content-subtitle,
|
|
21
|
+
.content-info {
|
|
22
|
+
font-family: var(--dx-g-font-display);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.content-subtitle,
|
|
26
|
+
.content-body,
|
|
27
|
+
.content-info {
|
|
28
|
+
color: white;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.content-title {
|
|
32
|
+
margin-top: 54px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.content-subtitle {
|
|
36
|
+
font-size: 32px;
|
|
37
|
+
letter-spacing: -0.4%;
|
|
38
|
+
line-height: 40px;
|
|
39
|
+
margin-top: 6px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.content-body {
|
|
43
|
+
font-family: var(--dx-g-font-sans);
|
|
44
|
+
font-size: var(--dx-g-text-lg);
|
|
45
|
+
letter-spacing: 0.12%;
|
|
46
|
+
line-height: 30px;
|
|
47
|
+
margin-top: var(--dx-g-spacing-smd);
|
|
48
|
+
max-width: 565px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.content-info {
|
|
52
|
+
font-size: var(--dx-g-text-xl);
|
|
53
|
+
letter-spacing: 0.4%;
|
|
54
|
+
line-height: 32px;
|
|
55
|
+
margin-top: 30px;
|
|
56
|
+
margin-bottom: var(--dx-g-spacing-lg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.image-container {
|
|
60
|
+
height: 430px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
img {
|
|
64
|
+
position: relative;
|
|
65
|
+
top: -80px;
|
|
66
|
+
right: 15px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.content-button {
|
|
70
|
+
margin-bottom: 40px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media screen and (max-width: 900px) {
|
|
74
|
+
.container {
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.content {
|
|
79
|
+
padding: 0 var(--dx-g-page-padding-horizontal);
|
|
80
|
+
width: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.content-title {
|
|
84
|
+
font-size: var(--dx-g-text-3xl);
|
|
85
|
+
margin-top: 39px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.content-subtitle {
|
|
89
|
+
font-size: var(--dx-g-text-lg);
|
|
90
|
+
line-height: 28px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.content-body {
|
|
94
|
+
font-size: var(--dx-g-text-sm);
|
|
95
|
+
line-height: 20px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.content-info {
|
|
99
|
+
font-size: var(--dx-g-text-base);
|
|
100
|
+
line-height: 24px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-container {
|
|
104
|
+
height: unset;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
img {
|
|
108
|
+
position: relative;
|
|
109
|
+
top: 15px;
|
|
110
|
+
right: 25px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.content-button {
|
|
114
|
+
margin-bottom: 52px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media screen and (max-width: 600px) {
|
|
119
|
+
.container {
|
|
120
|
+
flex-direction: column-reverse;
|
|
121
|
+
text-align: center;
|
|
122
|
+
margin-top: 170px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.content {
|
|
126
|
+
margin-left: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.content-title {
|
|
130
|
+
font-size: var(--dx-g-text-3xl);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.content-subtitle {
|
|
134
|
+
font-size: var(--dx-g-text-lg);
|
|
135
|
+
line-height: 28px;
|
|
136
|
+
margin-top: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.content-info {
|
|
140
|
+
margin-top: var(--dx-g-spacing-lg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.image-container {
|
|
144
|
+
height: 140px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
img {
|
|
148
|
+
position: relative;
|
|
149
|
+
top: -170px;
|
|
150
|
+
right: 0;
|
|
151
|
+
width: 381px;
|
|
152
|
+
height: 383px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.content-button {
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
margin-bottom: 63px;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="content">
|
|
4
|
+
<h3 class="content-title dx-text-heading-2b">{title}</h3>
|
|
5
|
+
<h4 class="content-subtitle">{subtitle}</h4>
|
|
6
|
+
<p class="content-body">{body}</p>
|
|
7
|
+
<p class="content-info">{info}</p>
|
|
8
|
+
<div class="content-button">
|
|
9
|
+
<dx-button>{buttonLabel}</dx-button>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<dix class="image-container">
|
|
13
|
+
<img src={imgSrc} alt={imgAlt} />
|
|
14
|
+
</dix>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { api, LightningElement } from "lwc";
|
|
2
|
+
|
|
3
|
+
export default class TdxSection extends LightningElement {
|
|
4
|
+
@api title!: string;
|
|
5
|
+
@api subtitle!: string;
|
|
6
|
+
@api body!: string;
|
|
7
|
+
@api info!: string;
|
|
8
|
+
@api buttonLabel!: string;
|
|
9
|
+
@api imgSrc!: string;
|
|
10
|
+
@api imgAlt!: string;
|
|
11
|
+
}
|