thesandwi.ch/src/components/project.html
Isaac Mills 594a87a711
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Change attribute back to text
2025-07-09 19:30:28 -06:00

34 lines
No EOL
895 B
HTML

<script props>
module.exports = {
img: props.img || '',
svg: props.svg || '',
text: props.text || '',
href: props.href || '/',
onclick: props.onclick || '',
titlestyle: 'min-width: 275px;' + (props.titlestyle || ''),
headerstyle: props.headerstyle || '',
}
</script>
<div class="project">
<div class="project-title" style="{{titlestyle}}">
<a href="{{href}}" target="_blank">
<div class="figure">
<slot:img></slot:img>
</div>
<if condition="text != ''">
<p style="font-size: 200px; text-align: center; margin: 0; padding: 0;">{{text}}</p>
</if>
<markdown>
<slot:title />
</markdown>
</a>
</div>
<div class="description">
<div onclick="{{onclick}}" style="{{headerstyle}}">
<markdown>
<slot:subtitle />
</markdown>
</div>
<slot:description />
</div>
</div>