From 5817a1f455fe7297048af80ad9c7e9df9594b4a1 Mon Sep 17 00:00:00 2001 From: 21CSM <81891917+21CSM@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:48:54 -0400 Subject: [PATCH] feat: add prototype of browse scores --- src/lib/components/score/ScoreCard.svelte | 30 ++ src/lib/components/score/ScoreSearch.svelte | 25 ++ src/lib/components/score/TagBadge.svelte | 12 + src/lib/components/score/TagFilter.svelte | 33 ++ src/lib/components/shell/Header.svelte | 356 +++++++++++--------- src/lib/types.ts | 19 ++ src/lib/utils/colorUtils.test.ts | 95 ++++++ src/lib/utils/colorUtils.ts | 54 +++ src/routes/+page.svelte | 69 +--- src/routes/browse/+page.svelte | 143 ++++++++ src/routes/score/[id]/+page.svelte | 237 +++++++++++++ vite.config.ts | 1 + 12 files changed, 853 insertions(+), 221 deletions(-) create mode 100644 src/lib/components/score/ScoreCard.svelte create mode 100644 src/lib/components/score/ScoreSearch.svelte create mode 100644 src/lib/components/score/TagBadge.svelte create mode 100644 src/lib/components/score/TagFilter.svelte create mode 100644 src/lib/types.ts create mode 100644 src/lib/utils/colorUtils.test.ts create mode 100644 src/lib/utils/colorUtils.ts create mode 100644 src/routes/browse/+page.svelte create mode 100644 src/routes/score/[id]/+page.svelte diff --git a/src/lib/components/score/ScoreCard.svelte b/src/lib/components/score/ScoreCard.svelte new file mode 100644 index 0000000..bc55396 --- /dev/null +++ b/src/lib/components/score/ScoreCard.svelte @@ -0,0 +1,30 @@ + + +
Last modified: {score.lastModified}
+- This page demonstrates various examples of historical music notation using the Music Encoding Initiative (MEI) format, rendered with the Verovio library. -
-Loading musical score data...
- {:else if errors[file.path]} -{errors[file.path]}
- {:else} -- Music notation has evolved significantly over the centuries. From the early neumes of medieval chant to the complex scores of the Baroque era, each period brought its own innovations and conventions to written music. The examples above showcase some of these historical styles, demonstrating the rich diversity of musical notation throughout Western music history. -
-No scores found matching your search criteria.
+{scoreDetails.description}
++ By {scoreDetails.composer} • {scoreDetails.dateComposed} +
+