Skip to content

Commit 6639ee7

Browse files
committed
fix: add embed color and make image small
1 parent fbf57c1 commit 6639ee7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/lib/components/molecules/Embed.svelte

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<script lang="ts">
2-
type Props = { title: string; image?: string; description?: string; websiteUrl?: string };
3-
let { title, image, description, websiteUrl }: Props = $props();
2+
type Props = {
3+
title: string;
4+
image?: string;
5+
description?: string;
6+
websiteUrl?: string;
7+
themeColor?: string;
8+
};
9+
let { title, image, description, websiteUrl, themeColor }: Props = $props();
410
</script>
511

612
<svelte:head>
@@ -9,7 +15,10 @@
915
<meta property="twitter:title" content={title} />
1016

1117
<meta property="og:type" content="website" />
12-
<meta property="twitter:card" content="summary_large_image" />
18+
19+
{#if themeColor}
20+
<meta name="theme-color" content={themeColor} />
21+
{/if}
1322

1423
{#if description}
1524
<meta name="description" content={description} />

src/routes/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
description="You may be a victim of ReVanced counterfeit. Learn more about it here."
3131
websiteUrl="https://revanced.app"
3232
image="https://revanced.app/logo.png"
33+
themeColor="#9FD5FF"
3334
/>
3435

3536
<main>

0 commit comments

Comments
 (0)