Skip to content

Commit

Permalink
feat(dashboard): add link previews (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiDood authored Dec 4, 2024
2 parents 576cf98 + 37aa5eb commit 2fa85ea
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
%sveltekit.head%
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta property="og:title" content="Spectro - Discord bot dashboard" />
<meta property="og:type" content="website" />
<meta
property="og:description"
content="Spectro is a Discord bot that supports multi-channel anonymous confessions, replies and moderation."
/>
<meta name="twitter:card" content="summary_large_image" />
</head>
<body data-sveltekit-preload-data="hover">
<div class="contents">%sveltekit.body%</div>
Expand Down
Binary file added src/lib/brand/favicon.ico
Binary file not shown.
Binary file modified src/lib/brand/link-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@
import GitHub from '@iconify/icons-simple-icons/github';
import Icon from '@iconify/svelte';
import LogoMark from '$lib/brand/logomark/logomark.svg';
import banner from '$lib/brand/link-preview.png?url';
import favicon from '$lib/brand/favicon.ico?url';
const { children } = $props();
</script>

<svelte:head>
<link rel="icon" href={favicon} />
<meta property="og:image" content="https://spectro.fly.dev{banner}" />
</svelte:head>

<header class="sticky top-0 bg-base-100 p-1 pl-4 pr-10 shadow-sm">
<nav class="navbar">
<div class="navbar-start">
Expand Down

0 comments on commit 2fa85ea

Please sign in to comment.