mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-26 16:52:08 +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(
|
||||||
|
sanitizeHtml(
|
||||||
data.announcements.incident.content.replace(
|
data.announcements.incident.content.replace(
|
||||||
/\n/g,
|
/\n/g,
|
||||||
"<br />"
|
"<br />"
|
||||||
)
|
)
|
||||||
))}
|
)
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user