commit abfc3e09b98833b4c7550f714f36b58288c7b006 Author: skidoodle Date: Mon Mar 28 23:40:46 2022 +0200 🔥 diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..f0f3abe --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "extends": "next/core-web-vitals", + "rules": { + "@next/next/no-img-element": "off" + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7820ced --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo + +.vercel diff --git a/next-env.d.ts b/next-env.d.ts new file mode 100644 index 0000000..4f11a03 --- /dev/null +++ b/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..a473d32 --- /dev/null +++ b/next.config.js @@ -0,0 +1,13 @@ +const path = require('path') + +module.exports = { + productionBrowserSourceMaps: true, + swcMinify: false, + sassOptions: { + includePaths: [path.join(__dirname, 'styles')] + }, + images: { + domains: ['i.albrt.hu', 'lastfm.freetls.fastly.net'], + formats: ['image/avif', 'image/webp'] + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..8629ff6 --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "portfolio", + "version": "1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.1.1", + "@fortawesome/free-brands-svg-icons": "^6.1.1", + "@fortawesome/free-solid-svg-icons": "^6.1.1", + "@fortawesome/react-fontawesome": "^0.1.18", + "@swc/core": "^1.2.160", + "copy-to-clipboard": "^3.3.1", + "next": "12.1.1", + "react": "17.0.2", + "react-dom": "17.0.2", + "react-hot-toast": "^2.2.0", + "goober": "2.1.8", + "csstype": "^3.0.10", + "sass": "^1.49.9", + "use-last-fm": "^0.6.1" + }, + "devDependencies": { + "@types/node": "17.0.23", + "@types/react": "17.0.43", + "@types/react-dom": "17.0.14", + "eslint": "8.12.0", + "eslint-config-next": "12.1.1", + "typescript": "4.6.3" + } +} diff --git a/pages/_app.tsx b/pages/_app.tsx new file mode 100644 index 0000000..570942a --- /dev/null +++ b/pages/_app.tsx @@ -0,0 +1,17 @@ +import { fas } from '@fortawesome/free-solid-svg-icons'; +import { fab } from '@fortawesome/free-brands-svg-icons'; +import { config, library } from '@fortawesome/fontawesome-svg-core'; + +import type { AppProps } from 'next/app' + +import '../src/styles/globals.scss' +import '@fortawesome/fontawesome-svg-core/styles.css' + +library.add(fab, fas) +config.autoAddCss = false + +const MyApp = ({ Component, pageProps }: AppProps) => { + return +} + +export default MyApp diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 0000000..57fff13 --- /dev/null +++ b/pages/_document.tsx @@ -0,0 +1,26 @@ +import { Html, Head, Main, NextScript } from 'next/document' + +const Document = () => { + return ( + <> + + + + + + + + + + + + + +
+ + + + ) +} + +export default Document diff --git a/pages/index.tsx b/pages/index.tsx new file mode 100644 index 0000000..52d1c17 --- /dev/null +++ b/pages/index.tsx @@ -0,0 +1,45 @@ +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' + +const Home = ({data}: any) => { + return( + <> + + albert + + + + + + + + + + +