mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
path and single quotes
This commit is contained in:
parent
abfc3e09b9
commit
a75285d22a
12 changed files with 31 additions and 27 deletions
|
@ -4,7 +4,7 @@ import { config, library } from '@fortawesome/fontawesome-svg-core';
|
|||
|
||||
import type { AppProps } from 'next/app'
|
||||
|
||||
import '../src/styles/globals.scss'
|
||||
import '@/styles/globals.scss'
|
||||
import '@fortawesome/fontawesome-svg-core/styles.css'
|
||||
|
||||
library.add(fab, fas)
|
||||
|
|
|
@ -5,10 +5,10 @@ const Document = () => {
|
|||
<>
|
||||
<Html lang='en'>
|
||||
<Head>
|
||||
<link rel="preconnect" href="https://vitals.vercel-insights.com" />
|
||||
<link rel="preconnect" href="https://ws.audioscrobbler.com" />
|
||||
<meta property="og:url" content="https://albrt.hu" />
|
||||
<meta property="og:site_name" content="albrt.hu" />
|
||||
<link rel='preconnect' href='https://vitals.vercel-insights.com' />
|
||||
<link rel='preconnect' href='https://ws.audioscrobbler.com' />
|
||||
<meta property='og:url' content='https://albrt.hu' />
|
||||
<meta property='og:site_name' content='albrt.hu' />
|
||||
<meta name='title' content='albert' />
|
||||
<meta name='og:title' content='albert' />
|
||||
<meta name='description' content='system administrator' />
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { GetServerSideProps } from 'next'
|
||||
import Head from 'next/head'
|
||||
import Body from '../src/components/Body'
|
||||
import Footer from '../src/components/Footer'
|
||||
import Icon from '../src/components/Icon'
|
||||
import IconLayout from '../src/components/IconLayout'
|
||||
import MainLayout from '../src/components/MainLayout'
|
||||
import Spotify from '../src/components/Spotify'
|
||||
import Time from '../src/components/Time'
|
||||
import Weather from '../src/components/Weather'
|
||||
import Body from '@/components/Body'
|
||||
import Footer from '@/components/Footer'
|
||||
import Icon from '@/components/Icon'
|
||||
import IconLayout from '@/components/IconLayout'
|
||||
import MainLayout from '@/components/MainLayout'
|
||||
import Spotify from '@/components/Spotify'
|
||||
import Time from '@/components/Time'
|
||||
import Weather from '@/components/Weather'
|
||||
|
||||
const Home = ({data}: any) => {
|
||||
return(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import styles from '../styles/Home.module.scss'
|
||||
import styles from '@/styles/Home.module.scss'
|
||||
|
||||
const Body = ({children}: {children: any}) => {
|
||||
return(
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import styles from '../styles/Home.module.scss'
|
||||
import styles from '@/styles/Home.module.scss'
|
||||
|
||||
const Footer = () => {
|
||||
return(
|
||||
<div className={styles.footerLayout}>
|
||||
<a href='https://cigany.ninja' target="_blank" rel='noopener noreferrer'>?</a>
|
||||
<a href='https://cigany.ninja' target='_blank' rel='noopener noreferrer'>?</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const Icon = ({icon, reference, copy = false} : {icon: any, reference: any, copy
|
|||
<FontAwesomeIcon icon={icon} />
|
||||
</a>
|
||||
) : (
|
||||
<a href={reference} target='_blank' rel="noopener noreferrer" aria-label="Icon">
|
||||
<a href={reference} target='_blank' rel='noopener noreferrer' aria-label="Icon">
|
||||
<FontAwesomeIcon icon={icon} />
|
||||
</a>
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import styles from '../styles/Home.module.scss'
|
||||
import styles from '@/styles/Home.module.scss'
|
||||
|
||||
const IconLayout = ({children}: {children: any}) => {
|
||||
return(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import styles from '../styles/Home.module.scss'
|
||||
import styles from '@/styles/Home.module.scss'
|
||||
|
||||
const MainLayout = () => {
|
||||
return(
|
||||
|
|
|
@ -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>
|
||||
</>
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
import styles from '../styles/Home.module.scss'
|
||||
import styles from '@/styles/Home.module.scss'
|
||||
|
||||
const Timer = () => {
|
||||
const [date, setDate] = useState(new Date())
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import styles from '../styles/Home.module.scss'
|
||||
import styles from '@/styles/Home.module.scss'
|
||||
|
||||
const Weather = ({data}: {data: any}) => {
|
||||
const { temp: temperature } = data.main
|
||||
|
|
|
@ -13,7 +13,12 @@
|
|||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true
|
||||
"incremental": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/styles/*": ["styles/*"],
|
||||
"@/components/*": ["components/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue