Working on inserting metars and cleanup

This commit is contained in:
2023-09-12 07:58:12 -04:00
parent f7aaa1dc81
commit e8462665b0
8 changed files with 65327 additions and 19794 deletions

View File

@@ -7,7 +7,7 @@ export default async function Page({ params }: { params: { icao: string } }) {
return (
<>
<div className='border-b border-gray-200 bg-gray-400 px-4 py-5 sm:px-6 flex justify-between'>
<h3 className='text-base font-semibold leading-6 text-gray-900'>{airport?.name}</h3>
<h3 className='text-base font-semibold leading-6 text-gray-900'>{airport.full_name}</h3>
<Link href={'/'}>Back</Link>
</div>
</>

View File

@@ -18,7 +18,9 @@ export default function RootLayout({ children }: { children: React.ReactNode })
</head>
<body className='bg-gray-600'>
<div className='flex justify-between bg-gray-700 px-4 py-1 sm:px-6 select-none'>
<h3 className='text-lg font-bold leading-6 text-gray-200'>Aviation Weather</h3>
<Link href={'/'}>
<h3 className='text-lg font-bold leading-6 text-gray-200'>Aviation Weather</h3>
</Link>
<Link className='text-base text-gray-200' href={'/profile'}>
Profile
</Link>

View File

@@ -0,0 +1,3 @@
export default async function Page() {
return <></>;
}

View File

@@ -141,8 +141,8 @@ function MapTiles() {
return (
<>
<TileLayer
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
attribution='&copy; <a href="https://www.osm.org/copyright">OpenStreetMap</a> contributors'
url='http://{s}.tile.osm.org/{z}/{x}/{y}.png'
/>
{airports.map((airport) => (
<Marker key={airport.icao} position={[airport.point.y, airport.point.x]} icon={icon(airport)}>