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