s3-share/web/opener/Image.svelte

17 lines
286 B
Svelte
Raw Permalink Normal View History

2022-05-14 19:23:31 +00:00
<script lang="ts">
export let contentType: string;
export let filename: string;
export let slug: string;
2022-05-14 21:06:16 +00:00
let ext = filename.split('.').pop();
2022-05-14 19:23:31 +00:00
</script>
2022-05-14 21:06:16 +00:00
<img src="/s/{slug}.{ext}" alt="shared" />
2022-05-14 19:23:31 +00:00
<style>
img {
max-width: 100%;
height: auto;
}
</style>