diff --git a/src/components/EmailLink.astro b/src/components/EmailLink.astro new file mode 100644 index 0000000..a9bd7dc --- /dev/null +++ b/src/components/EmailLink.astro @@ -0,0 +1,44 @@ +--- +import { Sprite } from 'astro-icon'; + +import { TextLink } from '../components'; + +export interface Props { + text?: string; +} + +const { text = 'Email', ...props } = Astro.props; +--- + + + {text} + + + + + diff --git a/src/components/index.ts b/src/components/index.ts index f33ea03..f188975 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,5 +1,6 @@ // @ts-nocheck import DownloadLink from './DownloadLink.astro'; +import EmailLink from './EmailLink.astro'; import MoreLink from './MoreLink.astro'; export * from './AffiliateLink'; @@ -26,4 +27,4 @@ export * from './Title'; export * from './UnorderedList'; export * from './Verse'; export * from './YouTubeVideo'; -export { DownloadLink, MoreLink }; +export { DownloadLink, EmailLink, MoreLink }; diff --git a/src/mdx-components.ts b/src/mdx-components.ts index 40097ce..ce3997f 100644 --- a/src/mdx-components.ts +++ b/src/mdx-components.ts @@ -6,6 +6,7 @@ import { ColorSwatch, Divider, DownloadLink, + EmailLink, Flag, Headline, Image, @@ -33,6 +34,7 @@ export const mapping = { Book, ColorSwatch, DownloadLink, + EmailLink, Flag, h1: Title, h2: Headline, diff --git a/src/pages/imprint.mdx b/src/pages/imprint.mdx index 9f6651c..f53e813 100644 --- a/src/pages/imprint.mdx +++ b/src/pages/imprint.mdx @@ -3,15 +3,14 @@ layout: ../layouts/PageLayout.astro title: Imprint --- -import { mapping } from '../mdx-components.ts'; +import { mapping } from "../mdx-components.ts"; export const components = mapping; ### Contact Person -Stefan Imhoff \ -Walter-Heitmann-Str. 2 \ -22159 Hamburg \ -[Contact](#) +Stefan Imhoff
+Walter-Heitmann-Str. 2
+22159 Hamburg
<> ### License