Skip to content

Commit b856227

Browse files
committed
feat: use pretty banner
1 parent cebbd14 commit b856227

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
-9.44 KB
Binary file not shown.

src/components/seo/Seo.svelte

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@
1515
import OpenGraph from './OpenGraph.svelte';
1616
import Twitter from './Twitter.svelte';
1717
18-
import CompactBannerPurple from '$assets/branding/compact-banner-purple.png';
19-
2018
import website from '$lib/config/website';
19+
import { BANNER_ARTIST } from '$lib/data/commissions';
2120
2221
export let title: string;
2322
export let slug: string = $page.url.pathname;
2423
export let description = '';
2524
26-
export let ogImage: { url: string; alt: string } | undefined = undefined;
27-
export let ogSquareImage: { url: string; alt: string } | undefined = undefined;
28-
export let twitterImage: { url: string; alt: string } | undefined = {
29-
url: CompactBannerPurple,
30-
alt: 'Compact Banner Purple',
25+
export let ogImage: { url: string; alt: string } | undefined = {
26+
url: BANNER_ARTIST.image.fallback.src,
27+
alt: website.siteTitle,
3128
};
29+
export let ogSquareImage: { url: string; alt: string } | undefined = undefined;
30+
export let twitterImage: { url: string; alt: string } | undefined = ogImage;
3231
3332
const url = `${website.siteUrl}${slug || ''}`;
3433
const pageTitle = `${title || 'Site'} | ${website.siteTitle}`;

src/lib/data/commissions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import _ from 'lodash';
44
* The featured artist data & commission.
55
*/
66
import FeaturedArtist from '$lib/data/commissions/amber/artist';
7+
import BannerArtist from '$lib/data/commissions/peachy/artist';
78
import RefSheet from '$lib/data/commissions/amber/artist';
89
import { importData } from '$lib/util/data';
910
import type { Picture } from 'imagetools-core';
@@ -86,4 +87,5 @@ export const getArtists = async (): Promise<Record<string, ArtistData>> => {
8687
};
8788

8889
export const FEATURED_ARTIST = { artist: FeaturedArtist, commission: FeaturedArtist.commissions[2] };
90+
export const BANNER_ARTIST = { artist: BannerArtist, commission: BannerArtist.commissions[0], image: BannerArtist.commissions[0].images[1] };
8991
export const REF_SHEET = { artist: RefSheet, commission: RefSheet.commissions[1] };

0 commit comments

Comments
 (0)