Albums page data and CSS
This commit is contained in:
parent
314bac4de5
commit
d581d87f89
8 changed files with 89 additions and 10 deletions
|
@ -24,7 +24,7 @@ function Albums({ props }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className='albums'>
|
||||
<div className='spotify'>
|
||||
<h1>Albums</h1>
|
||||
|
||||
{albums && (
|
||||
|
|
|
@ -23,7 +23,7 @@ function ArtistSearch({ props }) {
|
|||
|
||||
// Search artists
|
||||
useEffect(() => {
|
||||
if (search && search.length > 4) {
|
||||
if (search && search.length > 2) {
|
||||
spotifyApi.searchArtists(search)
|
||||
.then(function(data) {
|
||||
setArtists(data.artists.items)
|
||||
|
@ -56,7 +56,7 @@ function ArtistSearch({ props }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="artist-search">
|
||||
<div className="spotify">
|
||||
<h1>Artist search</h1>
|
||||
|
||||
<input placeholder='Search for an artist' onChange={handleChange} />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.artist-search {
|
||||
.spotify {
|
||||
text-align: center;
|
||||
|
||||
ul {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import React from 'react'
|
||||
import './Login.scss'
|
||||
|
||||
function Login() {
|
||||
return (
|
||||
<div className="artist-search">
|
||||
<div className='login'>
|
||||
<h1>Touch Tunes</h1>
|
||||
|
||||
<a href='http://localhost:8888/login' className='App-link'> Login to Spotify </a>
|
||||
|
|
3
src/views/Login.scss
Normal file
3
src/views/Login.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
.login {
|
||||
text-align: center;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue