Fixes for Homepage
This commit is contained in:
@@ -71,4 +71,15 @@ function CareerNav() {
|
||||
</Menu>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
export function FallbackHeader() {
|
||||
return (
|
||||
<div className="bg-slate-900 w-[98%] h-[400px] ml-[1%] mr-[1%] mb-5 pt-5 w-1/1 flex">
|
||||
<div className="self-end pb-5 w-full">
|
||||
<div className="pl-5 self-end text-[50px]">Nicholas Pease</div>
|
||||
<div className="pl-5 self-end text-[15px]">My portfolio and project place.</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -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: () => <FallbackHeader/> })
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
|
||||
@@ -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? `<span class="text-[20px] relative bottom-[30px] bg-slate-900 rounded-xl p-5">${plane.manufacturer} ${plane.model} (<a href="https://www.flightaware.com/live/flight/${plane.reg}" target="_blank">${plane.reg}</a>) - ${plane.location} (${plane.date})</span>`: '<span class="text-[20px] relative bottom-[30px] bg-slate-900 rounded-xl p-5">No Data Found</span>'
|
||||
return <Item key={plane.src} original={plane.src} width={plane.width} height={plane.height} caption={caption}>
|
||||
{({ ref, open }) => (
|
||||
<img ref={ref} onClick={open} src={plane.src} className='inline-block m-5 w-[22%] cursor-pointer'/>
|
||||
)}
|
||||
</Item>
|
||||
})
|
||||
return (
|
||||
<div className="p-5 h-[100%]">
|
||||
<title>Plane Spotting | nicholaspease.com</title>
|
||||
<span className="text-[30px]">Plane Spotting</span>
|
||||
<div>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.</div>
|
||||
<Gallery withCaption>
|
||||
{images}
|
||||
</Gallery>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -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 (
|
||||
<div className="w-[96%] h-[400px] ml-[2%] mr-[2%] mb-5 pt-5 w-1/1 flex justify-center">
|
||||
<div className='bg-slate-900 w-[98%] ml-[2%] mr-[2%] h-[400px] z-0 absolute brightness-[75%] flex items-center'>
|
||||
<img className="w-full h-[400px] object-cover rounded-lg" src={image.src}/>
|
||||
</div>
|
||||
|
||||
<div className="shadow-lg w-[98%] ml-[2%] mr-[2%] fixed absolute rounded-lg h-[400px] flex">
|
||||
<div className="self-end pb-5 w-full">
|
||||
<div className="pl-5 self-end text-[50px]">Nicholas Pease</div>
|
||||
<div className="pl-5 self-end text-[15px]">My portfolio and project place.</div>
|
||||
</div>
|
||||
<div className='place-self-end w-fit mr-5 mb-5'>
|
||||
<a href="/personal/plane-spotting" className='max-md:hidden text-nowrap'>{image.manufacturer} {image.model} [{image.date}]</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Header;
|
||||
Reference in New Issue
Block a user