🎉 Add the mail template project

This commit is contained in:
2025-11-09 03:19:35 +08:00
parent ce5f3434eb
commit f5b37e9419
15 changed files with 1245 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
<script props>
// https://maizzle.com/docs/components/vml#v-fill
module.exports = {
width: props.width || '600px',
type: props.type || 'frame',
sizes: props.sizes,
origin: props.origin,
position: props.position,
aspect: props.aspect,
color: props.color,
inset: props.inset || '0,0,0,0',
stroke: props.stroke || 'f',
strokecolor: props.strokecolor,
fill: props.fill || 't',
fillcolor: props.fillcolor || 'none',
image: props.image || 'https://via.placeholder.com/600x400'
}
</script>
<!--[if mso]>
<v:rect fill="{{ fillcolor ? 't' : fill }}" stroke="{{ strokecolor ? 't' : stroke }}" style="width: {{ width }}" xmlns:v="urn:schemas-microsoft-com:vml"{{{ strokecolor ? ` strokecolor="${strokecolor}"` : '' }}}{{{ fillcolor ? ` fillcolor="${fillcolor}"` : '' }}}>
<v:fill type="{{ type }}" src="{{{ image }}}"{{{ sizes ? ` sizes="${sizes}"` : '' }}}{{{ aspect ? ` aspect="${aspect}"` : '' }}}{{{ origin ? ` origin="${origin}"` : '' }}}{{{ position ? ` position="${position}"` : '' }}}{{{ color ? ` color="${color}"` : '' }}} />
<v:textbox inset="{{ inset }}" style="mso-fit-shape-to-text: true"><div><![endif]-->
<yield />
<!--[if mso]></div></v:textbox></v:rect><![endif]-->