Files
radicle-explorer/src/views/projects
2023-06-06 14:32:10 +02:00
..
2023-06-05 16:15:11 +02:00
2023-06-05 16:15:11 +02:00
2023-06-06 14:32:10 +02:00
2023-06-05 16:15:11 +02:00
2023-06-06 10:07:50 +02:00
2023-06-05 16:15:11 +02:00
2023-06-05 16:15:11 +02:00
2023-05-11 10:51:35 +02:00

<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>