-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Bakhaw/feat/react-query
Feat/react query
- Loading branch information
Showing
32 changed files
with
462 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { NextPage } from "next"; | ||
|
||
import Cover from "@/components/Cover"; | ||
|
||
import MonthlyListeners from "./MonthlyListeners"; | ||
|
||
interface ArtistHeaderProps { | ||
artist: SpotifyApi.SingleArtistResponse; | ||
backgroundColor: string; | ||
} | ||
|
||
const ArtistHeader: NextPage<ArtistHeaderProps> = ({ | ||
artist, | ||
backgroundColor, | ||
}) => { | ||
// TODO skeleton | ||
return ( | ||
<div | ||
className="flex flex-col justify-center items-center gap-2 bg-gradient-secondary py-4" | ||
style={{ backgroundColor }} | ||
> | ||
<Cover | ||
alt={`${artist.name} cover`} | ||
rounded | ||
size="medium" | ||
src={artist.images[0].url} | ||
/> | ||
<h1 className="text-7xl font-bold text-white">{artist.name}</h1> | ||
|
||
<MonthlyListeners artistId={artist.id} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ArtistHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.