schmelczer-dev/src/page/basics/image-anchor/image-anchor.html.ts
schmelczerandras d317f003b6 Fix links
2020-11-18 23:43:40 +01:00

24 lines
403 B
TypeScript

import './image-anchor.scss';
import { html } from '../../../types/html';
import { url } from '../../../types/url';
export const generate = ({
href,
svg,
title,
}: {
href: url;
svg: url;
title: string;
}): html => `
<a class="image-anchor"
href="${href}"
rel="noopener"
target="_blank"
>
<div class="svgContainer">
${svg}
</div>
<p>${title}</p>
</a>
`;