Change many lines

This commit is contained in:
Luca Bosin
2023-08-17 09:41:41 +02:00
parent 5e99dc4aa2
commit ba42d6958a
36 changed files with 1251 additions and 312 deletions

View File

@ -0,0 +1,32 @@
<script>
/**
* The source of the image.
* @type {string}
*/
export let src;
/**
* Alternative text for the image. Used for accessibility.
* @type {string | undefined}
*/
export let alt = undefined;
/**
* The click handler for the image.
* @param {MouseEvent} event
*/
async function clickHandler(event) {
event.preventDefault();
}
</script>
<a href="{src}" on:click={clickHandler}>
<figure class="photo">
<img src="{src}" alt="{alt}" />
</figure>
</a>
<style>
</style>