diff --git a/json/data.json b/json/data.json index 6f2e1d5..d69f786 100644 --- a/json/data.json +++ b/json/data.json @@ -1,5 +1,6 @@ { "statsfm": { - "top_genre": "modern rock" + "top_genre": "Modern rock", + "top_artist": "Muse" } } \ No newline at end of file diff --git a/lib/dashboard.ts b/lib/dashboard.ts index 3dcb0bb..ab083bb 100644 --- a/lib/dashboard.ts +++ b/lib/dashboard.ts @@ -16,12 +16,6 @@ export async function getDashboardData() { const {statsfm} = JSON.parse(await getLocalData()) const metrics: Metric[] = [ - { - title: "Top genre", - value: statsfm.top_genre, - group: "Spotify", - href: "https://spotify.com/" - }, { title: "Repos", value: totalRepos, @@ -40,6 +34,18 @@ export async function getDashboardData() { group: "GitHub", href: "https://github.com/r-freeman/" }, + { + title: "Top genre", + value: statsfm.top_genre, + group: "Spotify", + href: "https://spotify.com/" + }, + { + title: "Top artist", + value: statsfm.top_artist, + group: "Spotify", + href: "https://spotify.com/" + }, { title: "Total articles", value: totalArticles,