cleanup on some old stuff
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
export default function EducationPage() {
|
|
||||||
return <>Education Page</>
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
import Link from 'next/link';
|
|
||||||
|
|
||||||
export default function MusicPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<Link href="/about/music/projects">
|
|
||||||
<p>Projects</p>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link href="/about/music/works">
|
|
||||||
<p>Works</p>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link href="/about/music/stream">
|
|
||||||
<p>Stream</p>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
export default function MusicProjectPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1>Music Project Page</h1>
|
|
||||||
|
|
||||||
<p>This is where I'll keep a running list of my projects</p>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
export default function MusicStreamingPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1>Music Streaming Page</h1>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
export default function MusicalWorkPage({ params }: { params: { id: string }}) {
|
|
||||||
if (Number.isNaN(parseInt(params.id))) {
|
|
||||||
return <div>Fail</div>
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1>Music Works Page</h1>
|
|
||||||
<p>Work No. {params.id}</p>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<p>This page is coming soon!</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import Link from 'next/link';
|
|
||||||
|
|
||||||
export default function MusicWorksPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1>Music Works Page</h1>
|
|
||||||
|
|
||||||
<Link href="/about/music/works/1">
|
|
||||||
<p>First</p>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link href="/about/music/works/2">
|
|
||||||
<p>Second</p>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link href="/about/music/works/3">
|
|
||||||
<p>Third</p>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
'use client';
|
|
||||||
import { usePathname } from "next/navigation";
|
|
||||||
|
|
||||||
export default function ExperiencePage() {
|
|
||||||
const path = usePathname();
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<div id="spacer" className='h-[6rem] w-full' />
|
|
||||||
<h1>Work Page</h1>
|
|
||||||
<p>Employer: {path.split('/').at(-1)}</p>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<p>This section is coming soon!</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
const WorkHistory = () => {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1>Work History</h1>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default WorkHistory;
|
|
||||||
@@ -1,56 +1,14 @@
|
|||||||
'use client'
|
|
||||||
|
|
||||||
import './globals.css'
|
import './globals.css'
|
||||||
|
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import Navbar from '@/components/Navbar'
|
import Navbar from '@/components/Navbar'
|
||||||
import SiteTree from '@/components/SiteTree'
|
|
||||||
import { Inter, Besley, Cabin } from 'next/font/google'
|
import { Inter, Besley, Cabin } from 'next/font/google'
|
||||||
import { usePathname } from 'next/navigation'
|
|
||||||
import { IconContext } from 'react-icons'
|
|
||||||
import { useEffect, useState } from 'react'
|
|
||||||
|
|
||||||
export const inter = Inter({ subsets: ['latin'] })
|
export const inter = Inter({ subsets: ['latin'] })
|
||||||
export const besley = Besley({ subsets: ['latin'] })
|
export const besley = Besley({ subsets: ['latin'] })
|
||||||
export const cabin = Cabin({ subsets: ['latin'] })
|
export const cabin = Cabin({ subsets: ['latin'] })
|
||||||
|
|
||||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||||
const pathname = usePathname();
|
|
||||||
const [bg, setBg] = useState('bg-slate-400 dark:bg-slate-900');
|
|
||||||
const [overlay, setOverlay] = useState(false);
|
|
||||||
|
|
||||||
const [pageIsScrolled, setPageIsScrolled] = useState(false);
|
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// if (pathname === '/contact') setOverlay(true);
|
|
||||||
|
|
||||||
// switch (pathname) {
|
|
||||||
// case '/contact':
|
|
||||||
// setBg('bg-purple-300 dark:bg-darkPlum');
|
|
||||||
// break;
|
|
||||||
// case '/about':
|
|
||||||
// setBg("bg-blue-100 dark:bg-slate-900");
|
|
||||||
// break;
|
|
||||||
// case "/links":
|
|
||||||
// setBg("bg-sky-100 dark:bg-slate-900");
|
|
||||||
// break;
|
|
||||||
// case '/':
|
|
||||||
// default:
|
|
||||||
// setBg('bg-slate-400 dark:bg-slate-900');
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }, [pathname])
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
document.addEventListener('scroll', () => {
|
|
||||||
if (window.scrollY > 0) {
|
|
||||||
setPageIsScrolled(true);
|
|
||||||
} else {
|
|
||||||
setPageIsScrolled(false);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<Head>
|
<Head>
|
||||||
@@ -60,14 +18,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
</Head>
|
</Head>
|
||||||
<body className={inter.className}>
|
<body className={inter.className}>
|
||||||
<Navbar pageIsScrolled={pageIsScrolled} />
|
<Navbar />
|
||||||
<SiteTree />
|
|
||||||
<IconContext.Provider value={{}}>
|
|
||||||
<div>
|
<div>
|
||||||
<div id="navbar-spacer" className="h-[6rem] w-full bg-slate-300 dark:bg-black " />
|
<div id="navbar-spacer" className="h-[6rem] w-full bg-slate-300 dark:bg-black " />
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</IconContext.Provider>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
export default function ListenByCollectionID() {
|
import InProgress from "@/components/InProgress";
|
||||||
return <div>ListenByCollectionID</div>;
|
|
||||||
|
export default async function ListenByCollectionID() {
|
||||||
|
return <></>
|
||||||
|
// // @ts-ignore server component
|
||||||
|
// return <InProgress />
|
||||||
}
|
}
|
||||||
|
|||||||
7
app/listen/layout.tsx
Normal file
7
app/listen/layout.tsx
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export default function ListenLayout({ children }: { children: React.ReactNode}) {
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen bg-gradient-to-b from-slate-300 to-cyan-800 dark:from-black dark:to-cyan-900">
|
||||||
|
{ children }
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
export default function ListenIndex() {
|
import InProgress from "@/components/InProgress";
|
||||||
return <div>ListenIndex</div>;
|
|
||||||
|
export default async function ListenIndex() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h1>Listen</h1>
|
||||||
|
{/* @ts-ignore server component */}
|
||||||
|
{/* <InProgress /> */}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
import InProgress from "@/components/InProgress";
|
||||||
|
|
||||||
export default async function ProjectsPage() {
|
export default async function ProjectsPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>Learn more about my work</h1>
|
<h1>Learn more about my work</h1>
|
||||||
|
{/* @ts-ignore server component */}
|
||||||
<p>Contents of this page coming soon!</p>
|
{/* <InProgress /> */}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
3
components/InProgress.tsx
Normal file
3
components/InProgress.tsx
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default function InProgress() {
|
||||||
|
return <div>Under construction! Come back soon.</div>;
|
||||||
|
}
|
||||||
@@ -1,14 +1,26 @@
|
|||||||
|
'use client';
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { InlineLogo, useColorShift } from './logo'
|
import { InlineLogo, useColorShift } from './logo'
|
||||||
import { useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { RxActivityLog } from "react-icons/rx";
|
import { RxActivityLog } from "react-icons/rx";
|
||||||
import { NavbarButton } from '../ui/Button';
|
import { NavbarButton } from '../ui/Button';
|
||||||
|
|
||||||
const SHIFT_INTERVAL = 3000;
|
const SHIFT_INTERVAL = 3000;
|
||||||
|
|
||||||
export default function Navbar({ pageIsScrolled = false }) {
|
export default function Navbar() {
|
||||||
const navbarColorShift = useColorShift(SHIFT_INTERVAL);
|
const navbarColorShift = useColorShift(SHIFT_INTERVAL);
|
||||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||||
|
const [pageIsScrolled, setPageIsScrolled] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
document.addEventListener('scroll', () => {
|
||||||
|
if (window.scrollY > 0) {
|
||||||
|
setPageIsScrolled(true);
|
||||||
|
} else {
|
||||||
|
setPageIsScrolled(false);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user