feat: initialize project with .gitignore, LICENSE, README, and update dependencies

This commit is contained in:
2026-04-08 03:56:28 +02:00
parent bef3bb8fed
commit 41b9cb3d4c
6 changed files with 12 additions and 132 deletions

View File

@@ -6,8 +6,9 @@
@custom-variant dark (&:is(.dark *));
@theme {
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-sans:
"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
html,
@@ -21,7 +22,7 @@ body {
@theme inline {
--font-heading: var(--font-sans);
--font-sans: 'Inter Variable', sans-serif;
--font-sans: "Inter Variable", sans-serif;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
@@ -141,4 +142,4 @@ body {
html {
@apply font-sans;
}
}
}

View File

@@ -1,128 +0,0 @@
import type { Song, SongSummary } from "./types";
import { previewChords } from "./song-utils";
const OCEAN: Song = {
meta: {
title: "A Drop In The Ocean",
artist: "Ron Pope",
capo: null,
original_key: "Em",
tuning: null,
tempo: null,
},
sections: [
{
kind: "chorus",
label: "Chorus",
lines: [
{
text: "A drop in the ocean,",
chords: [{ offset: 0, chord: "Em" }, { offset: 12, chord: "C" }],
},
{
text: "A change in the weather,",
chords: [{ offset: 2, chord: "G" }, { offset: 16, chord: "D" }],
},
{
text: "I was praying that you and me might end up together.",
chords: [
{ offset: 6, chord: "Em" },
{ offset: 17, chord: "C" },
{ offset: 33, chord: "G" },
{ offset: 44, chord: "D" },
],
},
],
},
{
kind: "verse",
label: "Verse",
lines: [
{
text: "I don't wanna waste the weekend,",
chords: [{ offset: 0, chord: "C" }, { offset: 15, chord: "G" }],
},
{
text: "If you don't love me, pretend",
chords: [{ offset: 3, chord: "D" }, { offset: 21, chord: "Em" }],
},
{
text: "A few more hours, then it's time to go.",
chords: [{ offset: 2, chord: "C" }, { offset: 18, chord: "G" }, { offset: 30, chord: "D" }],
},
],
},
{
kind: "bridge",
label: "Bridge",
lines: [
{
text: "Still I can't let you be,",
chords: [{ offset: 0, chord: "Am" }, { offset: 11, chord: "G" }, { offset: 13, chord: "D" }],
},
],
},
],
};
const NAKED: Song = {
meta: {
title: "Naked",
artist: "James Arthur",
capo: null,
original_key: "G",
tuning: null,
tempo: null,
},
sections: [
{
kind: "chorus",
label: "Chorus",
lines: [
{
text: "I'm not going to wait until you're done",
chords: [{ offset: 0, chord: "G" }, { offset: 18, chord: "Bm" }],
},
{
text: "Pretending you don't need anyone",
chords: [{ offset: 16, chord: "Em" }, { offset: 27, chord: "C" }],
},
{
text: "I'm standing here naked",
chords: [{ offset: 19, chord: "G" }],
},
],
},
{
kind: "verse",
label: "Verse",
lines: [
{
text: "I lay awake thinking of all I wasted",
chords: [{ offset: 0, chord: "G" }, { offset: 22, chord: "Bm" }],
},
{
text: "All of the time we had I took for granted",
chords: [{ offset: 11, chord: "Em" }, { offset: 32, chord: "C" }],
},
],
},
],
};
const SONGS_MAP: Record<string, Song> = {
"song-ocean": OCEAN,
"song-naked": NAKED,
};
export const MOCK_SONGS: SongSummary[] = Object.entries(SONGS_MAP).map(
([id, song]) => ({
id,
meta: song.meta,
preview_chords: previewChords(song),
})
);
export function getMockSong(id: string): Song | null {
return SONGS_MAP[id] ?? null;
}