remove non navigateable footer links
All checks were successful
continuous-integration/drone/push Build is passing

add github to footer
add imprint
add marked
This commit is contained in:
2023-06-26 01:02:57 +02:00
parent d8fedfb379
commit d78fe7b020
5 changed files with 62 additions and 7 deletions

View File

@@ -20,12 +20,12 @@ const tree: Array<NavigationGroup> = [
label: "Landing",
},
{
path: "/blog",
label: "Blog",
path: "https://github.com/tempblade/creator",
label: "GitHub",
},
{
path: "/contact",
label: "Contact",
path: "https://tempblade.com",
label: "tempblade",
},
],
},

View File

@@ -0,0 +1,27 @@
---
import Heading from "@/components/Heading.astro";
import Section from "@/components/Section.astro";
import RootLayout from "@/layouts/RootLayout.astro";
import { marked } from "marked";
const response = await fetch("https://api.enrico.buehler.earth/api/imprint", {
headers: {
"Content-Type": "application/json; charset='utf-8'",
},
});
const json = await response.json();
const markdownContent = json.data.attributes.content;
console.log(markdownContent);
const content = marked.parse(markdownContent);
---
<RootLayout title="Imprint">
<Section>
<Heading main>Imprint</Heading>
</Section>
<Section>
<article set:html={content} />
</Section>
</RootLayout>

View File

@@ -79,10 +79,26 @@ h4 {
@apply text-lg;
}
p {
@apply max-w-[600px] text-secondary;
}
[astro-icon] {
fill: currentColor;
}
article {
& h1, h2, h3, h4, h5 {
@apply mt-6;
}
& h1, h2, h3, h4, h5, p, ol, ul {
@apply mb-4;
}
}
p,
li {
@apply max-w-[600px] mb-6 whitespace-pre-line text-base text-secondary;
line-height: 1.5;
}