-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update privacy and imprint pages
- loads from strapi markdown - uses tailwind typography plugin for style
- Loading branch information
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
<div>datenschutz</div> | ||
<script lang="ts"> | ||
import type { PageData } from "./$types"; | ||
import { marked } from "marked"; | ||
export let data: PageData; | ||
let privacyMarkdown = data.privacy; | ||
</script> | ||
|
||
<article class="prose prose-stone dark:prose-invert max-w-5xl mx-auto mt-10"> | ||
{@html marked.parse(privacyMarkdown)} | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { PageLoad } from "./$types"; | ||
import { strapiFetch } from "$lib/utils/api"; | ||
|
||
export const load: PageLoad = async ({ fetch }) => { | ||
const privacyFetch = await strapiFetch(fetch, "api/privacy?populate=*"); | ||
return { privacy: privacyFetch.data.privacy }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
<div> | ||
Impressum | ||
</div> | ||
<script lang="ts"> | ||
import type { PageData } from "./$types"; | ||
import { marked } from "marked"; | ||
export let data: PageData; | ||
let imprintMarkdown = data.imprint; | ||
</script> | ||
|
||
<article class="prose prose-stone dark:prose-invert max-w-5xl mx-auto mt-10"> | ||
{@html marked.parse(imprintMarkdown)} | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { PageLoad } from "./$types"; | ||
import { strapiFetch } from "$lib/utils/api"; | ||
|
||
export const load: PageLoad = async ({ fetch }) => { | ||
const imprintFetch = await strapiFetch(fetch, "api/imprint?populate=*"); | ||
return { imprint: imprintFetch.data.imprint }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters