eb2-website/src/routes/manual/+page.svelte

30 řádky
1.1 KiB
Svelte
Surový Normální zobrazení Historie

2022-10-21 14:45:50 +02:00
<script>
2022-10-21 15:20:04 +02:00
import { onMount } from 'svelte';
import { graphdata } from '$lib/graphdata';
2022-10-27 12:54:09 +02:00
import { browser, dev, prerendering } from '$app/environment';
2022-10-27 22:54:38 +02:00
export let data = {
content: ''
};
//abandoning this, not going to send 500kb on client just to render markdown
/* onMount(async () => {
2022-10-27 12:54:09 +02:00
if (dev) return;
const result = await graphdata('markdown');
2022-10-27 22:54:38 +02:00
if (result) data.content = await compile(result);
//console.log(data.content);
2022-10-27 22:54:38 +02:00
}); */
2022-10-21 14:45:50 +02:00
</script>
<section class="text-white bg-black body-font">
2022-10-24 19:23:49 +02:00
<div class="container mx-auto flex flex-col xl:max-w-screen-xl px-3">
2022-10-27 14:56:50 +02:00
<h1 class="pt-12 pb-6 xl:pt-20 xl:pb-10 text-4xl">Hacker Manual</h1>
2022-10-27 22:54:38 +02:00
<article class="mb-12">
2022-10-22 17:02:54 +02:00
<div
2022-10-27 22:54:38 +02:00
class="[&_hr]:md-separator [&_p]:leading-relaxed [&_a]:href [&_h1]:header [&_h2]:head2 [&_ul]:list [&_li]:sublist [&_h3]:head3 [&_h4]:head4 [&_h5]:head5 [&_img[src*='#left']]:hidden md:[&_img[src*='#left']]:flex md:[&_img[src*='#left']]:float-left [&_img[src*='#left']]:mt-12 [&_img[src*='#left']]:mr-5"
2022-10-22 17:02:54 +02:00
>
2022-10-22 11:32:57 +02:00
{@html data.content}
</div>
</article>
2022-10-21 14:45:50 +02:00
</div>
</section>