Skip to content

Commit

Permalink
Refactor component and fix page names
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Kwan committed Dec 18, 2023
1 parent 5c1c79e commit c81946e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions components/StarBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const StarBackground = () => {
zIndex: -1,
}}
>
<div id="stars" className="stars m-0 p-0 absolute top-0"></div>
<div id="stars2" className="stars2 m-0 p-0 absolute top-0"></div>
<div id="stars3" className="stars3 m-0 p-0 absolute top-0"></div>
<div id="stars" className="stars m-0 p-0 absolute top-0" />
<div id="stars2" className="stars2 m-0 p-0 absolute top-0" />
<div id="stars3" className="stars3 m-0 p-0 absolute top-0" />
</div>
);
};
Expand Down
6 changes: 2 additions & 4 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import './globals.scss';
import type { AppProps } from 'next/app';
import { Inter } from 'next/font/google';
import { AnimatePresence } from 'framer-motion';
import { useRouter, NextRouter } from 'next/router'; // Import the NextRouter type

const inter = Inter({ subsets: ['latin'] });
import { useRouter, NextRouter } from 'next/router';

function App({ Component, pageProps }: AppProps) {
const router: NextRouter = useRouter(); // Specify the type for the router object
const router: NextRouter = useRouter();

return (
<AnimatePresence mode="wait">
Expand Down
2 changes: 1 addition & 1 deletion pages/contact.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head';
import Layout from '../components/RootLayout';

export default function Home() {
export default function Contact() {
return (
<Layout>
<Head>
Expand Down
2 changes: 1 addition & 1 deletion pages/experience.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head';
import Layout from '../components/RootLayout';

export default function Home() {
export default function Experience() {
return (
<Layout>
<Head>
Expand Down
2 changes: 1 addition & 1 deletion pages/skills.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head';
import Layout from '../components/RootLayout';

export default function Home() {
export default function Skills() {
return (
<Layout>
<Head>
Expand Down

0 comments on commit c81946e

Please sign in to comment.