fix: revert emoji font fallback to improve performance

This commit is contained in:
Youwen Wu 2024-04-04 14:39:11 -07:00
parent 2ba407a208
commit e39cce1da6
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
5 changed files with 5 additions and 7 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -46,12 +46,10 @@
"@fontsource/geist-mono": "^5.0.2", "@fontsource/geist-mono": "^5.0.2",
"@fontsource/geist-sans": "^5.0.2", "@fontsource/geist-sans": "^5.0.2",
"@fontsource/merriweather": "^5.0.12", "@fontsource/merriweather": "^5.0.12",
"@fontsource/noto-color-emoji": "^5.0.26",
"@fontsource/zilla-slab": "^5.0.12", "@fontsource/zilla-slab": "^5.0.12",
"@sveltejs/adapter-vercel": "^5.2.0", "@sveltejs/adapter-vercel": "^5.2.0",
"bits-ui": "^0.21.2", "bits-ui": "^0.21.2",
"clsx": "^2.1.0", "clsx": "^2.1.0",
"country-flag-icons": "^1.5.10",
"marked": "^12.0.1", "marked": "^12.0.1",
"marked-alert": "^2.0.1", "marked-alert": "^2.0.1",
"marked-katex-extension": "^5.0.1", "marked-katex-extension": "^5.0.1",

View file

@ -1,10 +1,10 @@
<script lang="ts"> <script lang="ts">
import Separator from './ui/separator/separator.svelte'; import Separator from './ui/separator/separator.svelte';
import Socials from './Socials.svelte'; import Socials from './Socials.svelte';
import getUnicodeFlagIcon from 'country-flag-icons/unicode'; import { Code } from 'svelte-radix';
</script> </script>
<footer class="h-24 px-2 mb-10 text-sm md:text-md xl:text-lg"> <footer class="h-24 px-2 mb-12 text-sm md:text-md xl:text-lg">
<Separator class="mb-4" /> <Separator class="mb-4" />
<div class="flex justify-center flex-col gap-4"> <div class="flex justify-center flex-col gap-4">
<Socials center /> <Socials center />
@ -22,7 +22,6 @@
<a href="https://github.com/couscousdude/coredump" target="_blank" class="hover:underline" <a href="https://github.com/couscousdude/coredump" target="_blank" class="hover:underline"
>View the source</a >View the source</a
> >
| Long Live Palestine <span class="font-normal">{getUnicodeFlagIcon('PS')}</span>
</p> </p>
</div> </div>
</footer> </footer>

View file

@ -6,7 +6,6 @@
import '@fontsource/geist-mono/latin.css'; import '@fontsource/geist-mono/latin.css';
import '@fontsource/zilla-slab/latin.css'; import '@fontsource/zilla-slab/latin.css';
import '@fontsource/merriweather/latin.css'; import '@fontsource/merriweather/latin.css';
import '@fontsource/noto-color-emoji';
import Footer from '$lib/components/Footer.svelte'; import Footer from '$lib/components/Footer.svelte';
import { Toaster } from '$lib/components/ui/sonner'; import { Toaster } from '$lib/components/ui/sonner';
</script> </script>

View file

@ -88,7 +88,9 @@
</p> </p>
</Card.Content> </Card.Content>
<Card.Footer> <Card.Footer>
<Button variant="outline" href="/blog">Go<ArrowRight class="ml-2" /></Button> <Button variant="outline" href="/blog"
>Go to the Coredump<ArrowRight class="ml-2" /></Button
>
</Card.Footer> </Card.Footer>
</Card.Root> </Card.Root>
<Card.Root class="col-span-2"> <Card.Root class="col-span-2">