mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
27 lines
648 B
Svelte
27 lines
648 B
Svelte
<script lang="ts">
|
|
import type { ProjectRoute } from "@app/views/projects/router";
|
|
|
|
import Markdown from "@app/components/Markdown.svelte";
|
|
|
|
export let content: string;
|
|
export let rawPath: string;
|
|
export let activeRoute: ProjectRoute;
|
|
|
|
$: path = activeRoute.params.path || "/";
|
|
$: hash = activeRoute.params.hash || null;
|
|
</script>
|
|
|
|
<style>
|
|
article {
|
|
padding: 2rem;
|
|
width: 100%;
|
|
background: var(--color-background-1);
|
|
border-bottom-left-radius: var(--border-radius-small);
|
|
border-bottom-right-radius: var(--border-radius-small);
|
|
}
|
|
</style>
|
|
|
|
<article>
|
|
<Markdown {content} {hash} {rawPath} {path} />
|
|
</article>
|