diff --git a/components/Projects/ProjectInfoPanel/SkillList.js b/components/Projects/ProjectInfoPanel/SkillList.js index bdd6909..2868fb1 100644 --- a/components/Projects/ProjectInfoPanel/SkillList.js +++ b/components/Projects/ProjectInfoPanel/SkillList.js @@ -35,7 +35,7 @@ export default function SkillList({ skills, bubbleColor, textColor }) { return ( {!isReady && ( {!playing && ( {[ - ...projects.slice(rollerPos, rollerPos + 3), + ...projects.slice( + rollerPos, + rollerPos + Math.min(3, projects.length) + ), ...projects.slice( 0, - 3 - projects.slice(rollerPos, rollerPos + 3).length + Math.min(3, projects.length) - + projects.slice( + rollerPos, + rollerPos + Math.min(3, projects.length) + ).length ), ].map((project, index) => { return ( diff --git a/components/Skills/SkillScroller.js b/components/Skills/SkillScroller.js index d4a9d3f..6445e7b 100644 --- a/components/Skills/SkillScroller.js +++ b/components/Skills/SkillScroller.js @@ -141,7 +141,7 @@ export default function SkillScroller({ skills }) { return ( {children} diff --git a/pages/_app.js b/pages/_app.js index 9fb23ac..16c6927 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -3,6 +3,7 @@ import { createGlobalStyle } from "styled-components"; import { ThemeControlProvider } from "@/lib/Context/ThemeContext"; import Layout from "@/components/layout"; import Head from "next/head"; +import { Raleway } from "next/font/google"; const GlobalStyle = createGlobalStyle` html { @@ -33,7 +34,6 @@ html { font-size: 1rem; font-weight: 200; font-style: normal; - font-family: 'Raleway', sans-serif; color: hsla(0,0%,28.63%,1); min-height: 100vh; } @@ -102,6 +102,8 @@ function handleExitComplete() { } } +const raleway = Raleway({ subsets: ["latin"] }); + function MyApp({ Component, pageProps, router }) { return ( <> @@ -110,14 +112,13 @@ function MyApp({ Component, pageProps, router }) { - - + handleExitComplete()} diff --git a/pages/_document.js b/pages/_document.js index 5669654..56465ba 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -26,18 +26,7 @@ export default class MyDocument extends Document { render() { return ( - - - - - +