toggle-components-library 1.32.0-beta.1 → 1.32.0-beta.2
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/dist/toggle-components-library.common.js +66 -66
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +66 -66
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/components/cards/ToggleEmailCard.vue +48 -0
- package/src/sass/includes/_as_cards.scss +57 -0
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="toggle-email-card">
|
|
3
|
+
<div class="toggle-email-card-body">
|
|
4
|
+
<div class="toggle-email-card-htmlContent">
|
|
5
|
+
<div v-html="htmlContent"></div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="toggle-email-card-buttons">
|
|
8
|
+
<button class="toggle-email-card-button">
|
|
9
|
+
<slot name="button_1"></slot>
|
|
10
|
+
</button>
|
|
11
|
+
<button class="toggle-email-card-button">
|
|
12
|
+
<slot name="button_2"></slot>
|
|
13
|
+
</button>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="toggle-email-card-info">
|
|
16
|
+
<p>Email name</p>
|
|
17
|
+
<div class="toggle-email-card-slot">
|
|
18
|
+
<slot name="toggle-email-card-email-name">{{ emailName }}</slot>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="toggle-email-card-info">
|
|
22
|
+
<p>Subject line</p>
|
|
23
|
+
<div class="toggle-email-card-slot">
|
|
24
|
+
<slot name="email-subject">{{ emailSubject }}</slot>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
export default {
|
|
33
|
+
props: {
|
|
34
|
+
emailName: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: 'Email name'
|
|
37
|
+
},
|
|
38
|
+
emailSubject: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'Subject line'
|
|
41
|
+
},
|
|
42
|
+
htmlContent: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: null
|
|
45
|
+
},
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</script>
|
|
@@ -101,3 +101,60 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
104
|
+
.toggle-email-card {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
max-width: 370px;
|
|
108
|
+
border: 1px solid #E5E5E5;
|
|
109
|
+
border-radius: 18px;
|
|
110
|
+
font-family: $toggle-font-family;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.toggle-email-card-body {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
border-radius: 18px;
|
|
117
|
+
padding-bottom: 20px;
|
|
118
|
+
background: white;
|
|
119
|
+
z-index: 1;
|
|
120
|
+
|
|
121
|
+
.toggle-email-card-htmlContent {
|
|
122
|
+
-webkit-mask-image: linear-gradient( to top, rgba(255,0,0,0) 35%, 50%, rgba(255,0,0,1) 55%);
|
|
123
|
+
mask-image: linear-gradient(black, transparent);
|
|
124
|
+
height: 800px;
|
|
125
|
+
zoom: 0.62;
|
|
126
|
+
border-radius: 25px;
|
|
127
|
+
z-index:-1;
|
|
128
|
+
|
|
129
|
+
}
|
|
130
|
+
.toggle-email-card-buttons {
|
|
131
|
+
margin-top: -220px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.toggle-email-card-button {
|
|
135
|
+
display: flex;
|
|
136
|
+
border:none;
|
|
137
|
+
margin: 10px 25px;
|
|
138
|
+
background:transparent;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.toggle-email-card-info {
|
|
143
|
+
margin: 20px 35px 5px 35px;
|
|
144
|
+
p {
|
|
145
|
+
color:$toggle-blue;
|
|
146
|
+
font-family: $toggle-font-family;
|
|
147
|
+
font-size: $toggle-font-size-regular;
|
|
148
|
+
font-weight: bold;
|
|
149
|
+
margin: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.toggle-email-card-slot {
|
|
153
|
+
color:#324866;
|
|
154
|
+
font-family: $toggle-font-family;
|
|
155
|
+
font-size: $toggle-font-size-large;
|
|
156
|
+
font-weight: bold;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|