mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-10-14 19:14:33 +05:30
Fix poor contrast in announcement
This commit is contained in:
parent
37583243c9
commit
a96f435778
@ -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(
|
||||
data.announcements.incident.content.replace(
|
||||
/\n/g,
|
||||
"<br />"
|
||||
<p class="text-black">
|
||||
{@html snarkdown(
|
||||
sanitizeHtml(
|
||||
data.announcements.incident.content.replace(
|
||||
/\n/g,
|
||||
"<br />"
|
||||
)
|
||||
)
|
||||
))}
|
||||
)}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user