From e29b5074045462d4965f08c78c84c925b3152f47 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Wed, 22 Nov 2023 09:46:41 +0100 Subject: [PATCH] Add icon --- packages/astro/src/overlay/index.ts | 13 +++++------ packages/website/astro.config.mjs | 4 ++++ packages/website/public/favicon.svg | 29 +++++++++++++++++++++++- packages/website/public/images/glyph.svg | 23 +++++++++++++++++++ 4 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 packages/website/public/images/glyph.svg diff --git a/packages/astro/src/overlay/index.ts b/packages/astro/src/overlay/index.ts index 5c76d5a5..d381827d 100644 --- a/packages/astro/src/overlay/index.ts +++ b/packages/astro/src/overlay/index.ts @@ -2,17 +2,16 @@ import type { DevOverlayPlugin } from 'astro'; import * as Spotlight from '@spotlightjs/core'; -const sentryLogo = ` - - +const sentryLogo = ` + + + + `; export default { id: 'spotlight-plugin', - name: 'Spotlight', + name: 'Spotlight by Sentry', icon: sentryLogo, init(_canvas, eventTarget) { eventTarget.dispatchEvent( diff --git a/packages/website/astro.config.mjs b/packages/website/astro.config.mjs index e7bc89be..af646526 100644 --- a/packages/website/astro.config.mjs +++ b/packages/website/astro.config.mjs @@ -32,7 +32,11 @@ export default defineConfig({ spotlight(), starlight({ title: 'Spotlight', + logo: { + src: './public/images/glyph.svg', + }, social: { + discord: 'https://discord.gg/sentry', github: 'https://github.com/getsentry/spotlight', }, components: { diff --git a/packages/website/public/favicon.svg b/packages/website/public/favicon.svg index cba5ac14..4c31febe 100644 --- a/packages/website/public/favicon.svg +++ b/packages/website/public/favicon.svg @@ -1 +1,28 @@ - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/packages/website/public/images/glyph.svg b/packages/website/public/images/glyph.svg new file mode 100644 index 00000000..a494c6af --- /dev/null +++ b/packages/website/public/images/glyph.svg @@ -0,0 +1,23 @@ + + + + + + + \ No newline at end of file