mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
🔥
This commit is contained in:
parent
452f8a4e16
commit
e1fd388272
15 changed files with 1926 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
||||||
import styles from '@/styles/Home.module.scss'
|
import styles from 'styles/Home.module.scss'
|
||||||
|
|
||||||
const Body = ({children}: {children: any}) => {
|
const Body = ({children}: {children: any}) => {
|
||||||
return(
|
return(
|
|
@ -1,4 +1,4 @@
|
||||||
import styles from '@/styles/Home.module.scss'
|
import styles from 'styles/Home.module.scss'
|
||||||
|
|
||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
return(
|
return(
|
|
@ -1,4 +1,4 @@
|
||||||
import styles from '@/styles/Home.module.scss'
|
import styles from 'styles/Home.module.scss'
|
||||||
|
|
||||||
const IconLayout = ({children}: {children: any}) => {
|
const IconLayout = ({children}: {children: any}) => {
|
||||||
return(
|
return(
|
|
@ -1,4 +1,4 @@
|
||||||
import styles from '@/styles/Home.module.scss'
|
import styles from 'styles/Home.module.scss'
|
||||||
|
|
||||||
const MainLayout = () => {
|
const MainLayout = () => {
|
||||||
return(
|
return(
|
|
@ -1,6 +1,6 @@
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { useLastFM } from 'use-last-fm'
|
import { useLastFM } from 'use-last-fm'
|
||||||
import styles from '@/styles/Home.module.scss'
|
import styles from 'styles/Home.module.scss'
|
||||||
|
|
||||||
const Spotify = () => {
|
const Spotify = () => {
|
||||||
const lastFM = useLastFM('albrtadam', 'f6d19bc25ca340225c70c3d386cd4eab');
|
const lastFM = useLastFM('albrtadam', 'f6d19bc25ca340225c70c3d386cd4eab');
|
|
@ -1,6 +1,6 @@
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import styles from '@/styles/Home.module.scss'
|
import styles from 'styles/Home.module.scss'
|
||||||
|
|
||||||
const Timer = () => {
|
const Timer = () => {
|
||||||
const [date, setDate] = useState(new Date())
|
const [date, setDate] = useState(new Date())
|
|
@ -1,5 +1,5 @@
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
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 Weather = ({data}: {data: any}) => {
|
||||||
const { temp: temperature } = data.main
|
const { temp: temperature } = data.main
|
|
@ -4,7 +4,7 @@ import { config, library } from '@fortawesome/fontawesome-svg-core';
|
||||||
|
|
||||||
import type { AppProps } from 'next/app'
|
import type { AppProps } from 'next/app'
|
||||||
|
|
||||||
import '@/styles/globals.scss'
|
import 'styles/globals.scss'
|
||||||
import '@fortawesome/fontawesome-svg-core/styles.css'
|
import '@fortawesome/fontawesome-svg-core/styles.css'
|
||||||
|
|
||||||
library.add(fab, fas)
|
library.add(fab, fas)
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { GetServerSideProps } from 'next'
|
import { GetServerSideProps } from 'next'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import Body from '@/components/Body'
|
import Body from 'components/Body'
|
||||||
import Footer from '@/components/Footer'
|
import Footer from 'components/Footer'
|
||||||
import Icon from '@/components/Icon'
|
import Icon from 'components/Icon'
|
||||||
import IconLayout from '@/components/IconLayout'
|
import IconLayout from 'components/IconLayout'
|
||||||
import MainLayout from '@/components/MainLayout'
|
import MainLayout from 'components/MainLayout'
|
||||||
import Spotify from '@/components/Spotify'
|
import Spotify from 'components/Spotify'
|
||||||
import Time from '@/components/Time'
|
import Time from 'components/Time'
|
||||||
import Weather from '@/components/Weather'
|
import Weather from 'components/Weather'
|
||||||
|
|
||||||
const Home = ({data}: any) => {
|
const Home = ({data}: any) => {
|
||||||
return(
|
return(
|
||||||
|
|
|
@ -14,10 +14,7 @@
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": "."
|
||||||
"paths": {
|
|
||||||
"@/src/*": ["components/*", "styles/*"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue