<script lang="ts">
    import Button from '$components/atoms/Button.svelte'

    export let slug: string
</script>

<div class="poster">
    <img src="https://picsum.photos/326/475" width={326} height={475} alt="blob">
    <div class="buttons">
        <Button
            size="xsmall"
            url="/shop/poster-{slug}"
            text="View poster"
        />
        <Button
            type="button"
            text="Add to cart"
            color="pink"
            size="xsmall"
        />
    </div>
</div>