mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Update: Add html head to brewery map page
This commit is contained in:
@@ -7,7 +7,7 @@ import BreweryPostQueryResult from '@/services/BreweryPost/types/BreweryPostQuer
|
|||||||
import { NextPage } from 'next';
|
import { NextPage } from 'next';
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import { useContext, MutableRefObject, useRef } from 'react';
|
import { useContext, MutableRefObject, useRef } from 'react';
|
||||||
import { Link } from 'react-daisyui';
|
import Link from 'next/link';
|
||||||
import { FaPlus, FaArrowUp } from 'react-icons/fa';
|
import { FaPlus, FaArrowUp } from 'react-icons/fa';
|
||||||
import { useInView } from 'react-intersection-observer';
|
import { useInView } from 'react-intersection-observer';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import DBClient from '@/prisma/DBClient';
|
|||||||
|
|
||||||
import LocationMarker from '@/components/ui/LocationMarker';
|
import LocationMarker from '@/components/ui/LocationMarker';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import Head from 'next/head';
|
||||||
|
|
||||||
type MapStyles = Record<'light' | 'dark', `mapbox://styles/mapbox/${string}`>;
|
type MapStyles = Record<'light' | 'dark', `mapbox://styles/mapbox/${string}`>;
|
||||||
|
|
||||||
@@ -69,6 +70,14 @@ const BreweryMapPage: NextPage<BreweryMapPageProps> = ({ breweries }) => {
|
|||||||
[breweries],
|
[breweries],
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Head>
|
||||||
|
<title>Brewery Map | The Biergarten App</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Find breweries near you and around the world."
|
||||||
|
/>
|
||||||
|
</Head>
|
||||||
<div className="h-full">
|
<div className="h-full">
|
||||||
<Map
|
<Map
|
||||||
initialViewState={{ zoom: 2 }}
|
initialViewState={{ zoom: 2 }}
|
||||||
@@ -107,6 +116,7 @@ const BreweryMapPage: NextPage<BreweryMapPageProps> = ({ breweries }) => {
|
|||||||
)}
|
)}
|
||||||
</Map>
|
</Map>
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user