Testing typescript

This commit is contained in:
Chris 2022-05-21 15:16:10 +01:00
commit 98c681b670
21 changed files with 573 additions and 82 deletions

View file

@ -0,0 +1,21 @@
<script>
export let name;
export let link;
export let img = "https://placehold.it/600x300";
export let imgClass = "img-fluid mb-3 mb-md-0";
export let size = { width: 600, height: 300 };
export let description;
</script>
<div class="row">
<div class="thumb col-md-7">
<a href="{link}">
<img class={imgClass} src={img} alt={name} width={size.width} height={size.height}>
</a>
</div>
<div class="blurb col-md-5">
<h2>{name}</h2>
<p>{description}</p>
</div>
</div>
<br>