diff --git a/.prettierignore b/.prettierignore index 3897265..30b05a2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -11,3 +11,4 @@ node_modules pnpm-lock.yaml package-lock.json yarn.lock +Link.svelte \ No newline at end of file diff --git a/modules.d.ts b/modules.d.ts new file mode 100644 index 0000000..0c6b57f --- /dev/null +++ b/modules.d.ts @@ -0,0 +1,14 @@ +declare module 'mdi-svelte' { + import { SvelteComponentTyped } from 'svelte'; + + export interface IconProps { + path: string; + size?: number | string; + color?: string; + flip?: boolean | string; + rotate?: number; + spin?: number | boolean; + title?: string; + } + export default class Icon extends SvelteComponentTyped {} +} diff --git a/src/app.html b/src/app.html index 8f14ca4..b195923 100644 --- a/src/app.html +++ b/src/app.html @@ -4,6 +4,10 @@ + + + + %sveltekit.head% diff --git a/src/components/Link.svelte b/src/components/Link.svelte index 7e41e45..a00ea81 100644 --- a/src/components/Link.svelte +++ b/src/components/Link.svelte @@ -9,11 +9,22 @@ const internal = !href.startsWith('http'); let spin = false; + + // external props + let props: Record = { + rel: "nofollow noreferrer noopener", + target: "_blank" + } + if(internal) { + // internal props + props = { + "sveltekit:prefetch": true + } + } (spin = true)} on:focus={() => (spin = true)} @@ -23,16 +34,14 @@ {/if} - - - diff --git a/src/routes/impressum.svelte b/src/routes/impressum.svelte index 4072502..22ae5fa 100644 --- a/src/routes/impressum.svelte +++ b/src/routes/impressum.svelte @@ -1,3 +1,14 @@ + +

Impressum

Information according to ยง5 TMG:

diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 66f1d40..76453e2 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,3 +1,15 @@ + + +

Privacy Policy for AlexDaichendt

diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png new file mode 100644 index 0000000..c63b007 Binary files /dev/null and b/static/android-chrome-192x192.png differ diff --git a/static/android-chrome-512x512.png b/static/android-chrome-512x512.png new file mode 100644 index 0000000..db39fb0 Binary files /dev/null and b/static/android-chrome-512x512.png differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..806eabd Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png new file mode 100644 index 0000000..ce348d9 Binary files /dev/null and b/static/favicon-16x16.png differ diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png new file mode 100644 index 0000000..6b2138c Binary files /dev/null and b/static/favicon-32x32.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..7479fb4 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/site.webmanifest b/static/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/static/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file