Skip to content

Commit

Permalink
add cover_image for seo purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
TeemuKoivisto committed Apr 2, 2024
1 parent 65389c8 commit dc0481e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Binary file added cover_image.avif
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/client/src/components/play/ScoreOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
.scale-dropdown {
--search-dropdown-width: 100%;
}
@media (width <= 475px) {
@media (width <= 656px) {
grid-template-columns: 1fr 1fr;
.range {
grid-column-end: span 2;
Expand Down
6 changes: 6 additions & 0 deletions packages/client/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export const SITE_METADATA = {
url: 'https://midi-note-trainer.teemukoivisto.xyz',
title: 'MIDI Note Trainer',
description: 'Practise music notation, scales and chords using MIDI directly from browser.',
image: {
url: 'https://midi-note-trainer.teemukoivisto.xyz/cover_image.avif',
width: 1350,
height: 1080,
alt: 'Image of MIDI Note Trainer UI'
},
tags: [
'music',
'midi',
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/routes/(site)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
url: SITE_METADATA.url,
title: SITE_METADATA.title,
description: SITE_METADATA.description,
images: []
images: [SITE_METADATA.image]
}}
twitter={{
title: SITE_METADATA.title,
Expand All @@ -29,6 +29,7 @@
datePublished: SITE_METADATA.datePublished,
dateModified: SITE_METADATA.dateModified,
description: SITE_METADATA.description,
image: [SITE_METADATA.image.url],
keywords: SITE_METADATA.tags,
author: {
'@type': 'Person',
Expand Down
Binary file added packages/client/static/cover_image.avif
Binary file not shown.

0 comments on commit dc0481e

Please sign in to comment.