diff --git a/src/app.css b/src/app.css index 358d034..011ebd9 100644 --- a/src/app.css +++ b/src/app.css @@ -74,7 +74,7 @@ @apply hover:bg-primary-100 dark:hover:bg-primary-800; } - /* Heading */ + /* Section headers */ h1.h-leather, h2.h-leather, h3.h-leather, diff --git a/src/lib/components/Preview.svelte b/src/lib/components/Preview.svelte index c980b48..30b7f10 100644 --- a/src/lib/components/Preview.svelte +++ b/src/lib/components/Preview.svelte @@ -150,6 +150,27 @@ } +{#snippet sectionHeading(title: string, depth: number)} + {@const headingLevel = Math.min(depth + 1, 6)} + {@const className = $pharosInstance.isFloatingTitle(rootId) ? 'discrete' : 'h-leather'} + + + {title} + +{/snippet} + +{#snippet contentParagraph(content: string, publicationType: string)} + {#if publicationType === 'novel'} +

+ {@html content} +

+ {:else} +

+ {@html content} +

+ {/if} +{/snippet} +
+ import { page } from '$app/stores'; + import { goto } from '$app/navigation'; + import { Button, P } from 'flowbite-svelte'; + + +
+

404 - Page Not Found

+

The page you are looking for does not exist or has been moved.

+
+ + +
+
diff --git a/src/styles/publications.css b/src/styles/publications.css index b2b2847..fe30740 100644 --- a/src/styles/publications.css +++ b/src/styles/publications.css @@ -229,4 +229,28 @@ .audioblock .content audio { @apply w-full; } + + /* Discrete headers */ + h3.discrete, + h4.discrete, + h5.discrete, + h6.discrete { + @apply text-gray-800 dark:text-gray-300; + } + + h3.discrete { + @apply text-2xl font-bold; + } + + h4.discrete { + @apply text-xl font-bold; + } + + h5.discrete { + @apply text-lg font-semibold; + } + + h6.discrete { + @apply text-base font-semibold; + } } \ No newline at end of file