Fix poor contrast in announcement

This commit is contained in:
supercolbat 2023-08-18 16:19:20 -05:00
parent 37583243c9
commit a96f435778
No known key found for this signature in database
GPG Key ID: 4C9B319E75DD8072

View File

@ -2,7 +2,7 @@
import Hero from "$lib/Hero.svelte";
import sanitizeHtml from "sanitize-html";
import type { PageData } from "./$types";
import snarkdown from 'snarkdown';
import snarkdown from "snarkdown";
export let data: PageData;
@ -46,13 +46,15 @@
{/if}
{#if data.announcements.incident.content}
<p>
{@html snarkdown(sanitizeHtml(
<p class="text-black">
{@html snarkdown(
sanitizeHtml(
data.announcements.incident.content.replace(
/\n/g,
"<br />"
)
))}
)
)}
</p>
{/if}