add routing docs

This commit is contained in:
vcoppe
2024-07-09 22:15:05 +02:00
parent afe14b2537
commit e174d4d2f5
20 changed files with 121 additions and 21 deletions

View File

@@ -4,7 +4,7 @@
</script>
<div class="flex flex-col items-center py-6 w-full">
<div class="rounded-md overflow-clip shadow-lg mx-auto">
<div class="rounded-md overflow-clip shadow-xl mx-auto">
<enhanced:img {src} {alt} class="w-full max-w-3xl" />
</div>
<p class="text-center text-sm text-muted-foreground mt-2">{alt}</p>

View File

@@ -33,26 +33,37 @@
<style lang="postcss">
:global(.markdown) {
@apply text-muted-foreground;
}
:global(.markdown h1) {
@apply text-foreground;
@apply text-3xl;
@apply font-semibold;
@apply mb-6;
}
:global(.markdown h2) {
@apply text-foreground;
@apply text-2xl;
@apply font-semibold;
@apply mb-3;
@apply pt-3;
}
:global(.markdown h3) {
@apply text-foreground;
@apply text-lg;
@apply font-semibold;
@apply pt-1.5;
}
:global(.markdown p > button) {
@apply border;
@apply rounded-md;
@apply px-1;
}
:global(.markdown a) {
@apply text-blue-500;
@apply hover:underline;

View File

@@ -2,6 +2,10 @@
export let type: 'note' | 'warning' = 'note';
</script>
<div class="bg-accent border-l-8 border-blue-500 p-2 text-sm rounded-md">
<div
class="bg-accent border-l-8 {type === 'note'
? 'border-blue-500'
: 'border-destructive'} p-2 text-sm rounded-md"
>
<slot />
</div>