mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-03 17:35:23 +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 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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user