Testing typescript
This commit is contained in:
parent
19cf7df555
commit
98c681b670
21 changed files with 573 additions and 82 deletions
21
src/components/Thumbnail.svelte
Normal file
21
src/components/Thumbnail.svelte
Normal 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>
|
||||
Loading…
Reference in a new issue