thesandwi.ch/src/components/project.html
Isaac Mills b7c73f8bff
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Attempt to fix text attribute
2025-07-09 19:22:52 -06:00

34 lines
No EOL
891 B
HTML

<script props>
module.exports = {
img: props.img || '',
svg: props.svg || '',
txt: props.txt || '',
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="txt != ''">
<p style="font-size: 200px; text-align: center; margin: 0; padding: 0;">{{txt}}</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>