path and single quotes

This commit is contained in:
skidoodle 2022-03-29 23:08:44 +02:00 committed by GitHub
parent abfc3e09b9
commit a75285d22a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 31 additions and 27 deletions

View file

@ -1,6 +1,6 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { useLastFM } from 'use-last-fm'
import styles from '../styles/Home.module.scss'
import styles from '@/styles/Home.module.scss'
const Spotify = () => {
const lastFM = useLastFM('albrtadam', 'f6d19bc25ca340225c70c3d386cd4eab');
@ -10,14 +10,14 @@ const Spotify = () => {
{lastFM.status === 'playing'
?
<>
<a href={lastFM.song.url} target='_blank' rel="noopener noreferrer">
<img src={lastFM.song.art} width={50} height={50} className={styles.song} alt=""/>
<a href={lastFM.song.url} target='_blank' rel='noopener noreferrer'>
<img src={lastFM.song.art} width={50} height={50} alt=""/>
<p>Listening to <b>{lastFM.song.name}</b></p>
</a>
</>
:
<>
<img src="https://i.albrt.hu/66e8e4c6.webp" width={50} height={50} className={styles.nosong} alt=""/>
<img src='https://i.albrt.hu/66e8e4c6.webp' width={50} height={50} alt=""/>
<p>Not listening to anything</p>
</>
}