Working on inserting metars and cleanup
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
@@ -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>
|
||||
|
||||
3
weather-ui/src/app/profile/page.tsx
Normal file
3
weather-ui/src/app/profile/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export default async function Page() {
|
||||
return <></>;
|
||||
}
|
||||
@@ -141,8 +141,8 @@ function MapTiles() {
|
||||
return (
|
||||
<>
|
||||
<TileLayer
|
||||
attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
url='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
|
||||
attribution='© <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)}>
|
||||
|
||||
Reference in New Issue
Block a user