fix layout, year param

This commit is contained in:
Gabe Farrell 2025-12-31 18:28:44 -05:00
parent 60667ea716
commit b0b0284a3d
3 changed files with 39 additions and 19 deletions

View file

@ -13,7 +13,7 @@ export default function Rewind(props: Props) {
const trackimg = props.stats.top_tracks[0].image;
return (
<div className="flex flex-col gap-7">
<h1>{props.stats.title}</h1>
<h2>{props.stats.title}</h2>
<RewindTopItem
title="Top Artist"
imageSrc={imageUrl(artistimg, "medium")}

View file

@ -44,7 +44,7 @@ export default function Sidebar() {
<SidebarSearch size={iconSize} />
<SidebarItem
space={10}
to="/rewind"
to={`/rewind?year=${new Date().getFullYear()}`}
name="Rewind"
onClick={() => {}}
modal={<></>}