diff --git a/pease-portfolio/src/app/globals.js b/pease-portfolio/src/app/globals.js index 196820e..e21633a 100644 --- a/pease-portfolio/src/app/globals.js +++ b/pease-portfolio/src/app/globals.js @@ -71,4 +71,15 @@ function CareerNav() { ) +} + +export function FallbackHeader() { + return ( +
+
+
Nicholas Pease
+
My portfolio and project place.
+
+
+ ); } \ No newline at end of file diff --git a/pease-portfolio/src/app/layout.js b/pease-portfolio/src/app/layout.js index 42392fe..7d496a9 100644 --- a/pease-portfolio/src/app/layout.js +++ b/pease-portfolio/src/app/layout.js @@ -1,6 +1,10 @@ import { Inter } from "next/font/google"; import "./globals.css"; -import {Header, Navigation, Footer} from "./globals" + +import dynamic from 'next/dynamic' +import {Navigation, Footer, FallbackHeader} from "./globals" + +const Header = dynamic(() => import('../components/header'), { ssr: false, loading: () => }) const inter = Inter({ subsets: ["latin"] }); diff --git a/pease-portfolio/src/app/personal/plane-spotting/page.js b/pease-portfolio/src/app/personal/plane-spotting/page.js new file mode 100644 index 0000000..bcebfec --- /dev/null +++ b/pease-portfolio/src/app/personal/plane-spotting/page.js @@ -0,0 +1,192 @@ +"use client" +import { Gallery, Item } from 'react-photoswipe-gallery' +import 'photoswipe/dist/photoswipe.css' + +const PLANES = [ + { + src: "/images/planes/20230402_093722.jpg", + width: 4000, + height: 1868, + date: "01/01/01", + model: "747-412", + manufacturer: "Boeing", + location: "KBGR", + reg: "N756CA" + }, + { + src: "/images/planes/20230402_115859.jpg", + width: 4000, + height: 1868, + date: "04/02/2023", + model: "767-300", + manufacturer: "Boeing", + location: "KBGR", + reg: "N706KW" + }, + { + src: "/images/planes/20230708_134556.jpg", + width: 4000, + height: 1868, + model: "737-800", + manufacturer: "Boeing", + date: "07/08/2023", + location: "KBGR", + reg: "N915NN" + }, + { + src: "/images/planes/20230701_153414.jpg", + width: 4000, + height: 1868, + model: "AN124", + manufacturer: "Antonov", + date: "06/25/2023", + location: "KBGR", + reg: "UR-82008" + }, + { + src: "/images/planes/20230920_181416.jpg", + width: 4000, + height: 1868, + model: "AN124", + manufacturer: "Antonov", + date: "09/20/2023", + location: "KBGR", + reg: "UR-82072" + }, + { + src: "/images/planes/20230920_181428.jpg", + width: 4000, + height: 1868, + model: "AN124", + manufacturer: "Antonov", + date: "09/20/2023", + location: "KBGR", + reg: "UR-82072" + }, + { + src: "/images/planes/20230920_181432.jpg", + width: 4000, + height: 1868, + model: "AN124", + manufacturer: "Antonov", + date: "09/20/2023", + location: "KBGR", + reg: "UR-82072" + }, + { + src: "/images/planes/20230926_144016.jpg", + width: 4000, + height: 1868, + model: "206", + manufacturer: "Cessna", + date: "09/26/2023", + location: "KBGR", + reg: "01970" + }, + { + src: "/images/planes/20231014_151149.jpg", + width: 4000, + height: 1868, + }, + { + src: "/images/planes/20241201_165213.jpg", + width: 4000, + height: 1868, + model: "A300-600ST", + manufacturer: "Airbus", + date: "12/01/2024", + location: "KBGR", + reg: "F-GSTC" + }, + { + src: "/images/planes/20241207_151807.jpg", + width: 4000, + height: 1419, + model: "A300-600ST", + manufacturer: "Airbus", + date: "12/07/2024", + location: "KBGR", + reg: "F-GSTC" + }, + { + src: "/images/planes/20230625_175812.jpg", + width: 1868, + height: 1051, + model: "A10 / F35", + manufacturer: "Various", + date: "06/25/2023", + location: "KBGR", + reg: "Various" + }, + { + src: "/images/planes/20230603_120656.jpg", + width: 4000, + height: 1868, + model: "E145", + manufacturer: "Embraer", + date: "06/03/2023", + location: "KBGR", + reg: "SE-DZA" + }, + { + src: "/images/planes/20230926_135151.jpg", + width: 4000, + height: 1868, + model: "UH-60", + manufacturer: "Sikorsky", + date: "09/26/2023", + location: "KBGR", + reg: "6039" + }, + { + src: "/images/planes/20230728_161709.jpg", + width: 4000, + height: 1514, + model: "MV-22", + manufacturer: "Boeing", + date: "07/28/2023", + location: "KBXM", + reg: "N/A" + }, + { + src: "/images/planes/20230728_160853.jpg", + width: 4000, + height: 1868, + model: "VC-25", + manufacturer: "Boeing", + date: "07/28/2023", + location: "KBXM", + reg: "29000" + }, + { + src: "/images/planes/20230625_180016.jpg", + width: 4000, + height: 1868, + model: "C-130", + manufacturer: "Lockheed", + date: "06/25/2023", + location: "KBGR", + reg: "65849" + } +] + +export default function Page() { + var images = PLANES.map((plane) => { + var caption = plane.date != undefined? `${plane.manufacturer} ${plane.model} (${plane.reg}) - ${plane.location} (${plane.date})`: 'No Data Found' + return + {({ ref, open }) => ( + + )} + + }) + return ( +
+ Plane Spotting | nicholaspease.com + Plane Spotting +
One of my hobbies in my free time is plane spotting at the airports near me. Some of these airports include Bangor International Airport (KBGR) and Brunswick Executive Airport (KBXM). Below is a collection of the images I have captures from these two airports.
+ + {images} + +
+ ) +} \ No newline at end of file diff --git a/pease-portfolio/src/components/header.js b/pease-portfolio/src/components/header.js new file mode 100644 index 0000000..563431d --- /dev/null +++ b/pease-portfolio/src/components/header.js @@ -0,0 +1,97 @@ +"use client" + +var headers = [{ + src: "/images/planes/20230920_181416.jpg", + width: 4000, + height: 1868, + model: "AN124", + manufacturer: "Antonov", + date: "09/20/2023", + location: "KBGR", + reg: "UR-82072" + }, + { + src: "/images/planes/20241207_151807.jpg", + width: 4000, + height: 1419, + model: "A300-600ST", + manufacturer: "Airbus", + date: "12/07/2024", + location: "KBGR", + reg: "F-GSTC" + }, + { + src: "/images/planes/20230926_144016.jpg", + width: 4000, + height: 1868, + model: "206", + manufacturer: "Cessna", + date: "09/26/2023", + location: "KBGR", + reg: "01970" + }, + { + src: "/images/planes/20230926_135151.jpg", + width: 4000, + height: 1868, + model: "UH-60", + manufacturer: "Sikorsky", + date: "09/26/2023", + location: "KBGR", + reg: "6039" + }, + { + src: "/images/planes/20230625_175812.jpg", + width: 1868, + height: 1051, + model: "A10 / F35", + manufacturer: "Various", + date: "06/25/2023", + location: "KBGR", + reg: "Various" + }, + { + src: "/images/planes/20230728_161709.jpg", + width: 4000, + height: 1514, + model: "MV-22", + manufacturer: "Boeing", + date: "07/28/2023", + location: "KBXM", + reg: "N/A" + }, + { + src: "/images/planes/20230625_180016.jpg", + width: 4000, + height: 1868, + model: "C-130", + manufacturer: "Lockheed", + date: "06/25/2023", + location: "KBGR", + reg: "65849" + }] + + +function Header() { + var image = headers[Math.floor(Math.random() * (headers.length))] + return ( +
+
+ +
+ +
+
+
Nicholas Pease
+
My portfolio and project place.
+
+
+ {image.manufacturer} {image.model} [{image.date}] +
+
+ +
+ ); +} + +export default Header; \ No newline at end of file