mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
25 lines
505 B
Plaintext
25 lines
505 B
Plaintext
---
|
|
import Book from './Book.astro';
|
|
import Link from './Link.astro';
|
|
|
|
interface Props {
|
|
alt?: string;
|
|
asin: string;
|
|
class?: string;
|
|
}
|
|
|
|
const { alt = '', asin, class: className, ...props } = Astro.props;
|
|
|
|
const amazonImageUrl = `https://images-na.ssl-images-amazon.com/images/P/${asin}.01.LZZZZZZZ.jpg`;
|
|
---
|
|
|
|
<Link
|
|
aria-label={alt}
|
|
class={className}
|
|
data-umami-event={`Book: ${asin}`}
|
|
href={`https://www.amazon.de/gp/product/${asin}`}
|
|
{...props}
|
|
>
|
|
<Book alt={alt} src={amazonImageUrl} />
|
|
</Link>
|