🎉 Add the mail template project
This commit is contained in:
27
DysonNetwork.Pass/Mailart/components/spacer.html
Normal file
27
DysonNetwork.Pass/Mailart/components/spacer.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<script props>
|
||||
// https://maizzle.com/docs/components/spacer
|
||||
let styles = []
|
||||
|
||||
if (props.height) {
|
||||
styles.push(`line-height: ${props.height};`)
|
||||
}
|
||||
|
||||
if (props['mso-height']) {
|
||||
styles.push(`mso-line-height-alt: ${props['mso-height']};`)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
height: props.height,
|
||||
styles: styles.join('')
|
||||
}
|
||||
</script>
|
||||
|
||||
<if condition="height">
|
||||
<div
|
||||
role="separator"
|
||||
style="{{ styles }}"
|
||||
>‍</div>
|
||||
</if>
|
||||
<else>
|
||||
<div role="separator">‍</div>
|
||||
</else>
|
||||
Reference in New Issue
Block a user