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 Head from 'next/head';
|
||||
import { useContext, MutableRefObject, useRef } from 'react';
|
||||
import { Link } from 'react-daisyui';
|
||||
import Link from 'next/link';
|
||||
import { FaPlus, FaArrowUp } from 'react-icons/fa';
|
||||
import { useInView } from 'react-intersection-observer';
|
||||
import { z } from 'zod';
|
||||
|
||||
@@ -12,6 +12,7 @@ import DBClient from '@/prisma/DBClient';
|
||||
|
||||
import LocationMarker from '@/components/ui/LocationMarker';
|
||||
import Link from 'next/link';
|
||||
import Head from 'next/head';
|
||||
|
||||
type MapStyles = Record<'light' | 'dark', `mapbox://styles/mapbox/${string}`>;
|
||||
|
||||
@@ -69,6 +70,14 @@ const BreweryMapPage: NextPage<BreweryMapPageProps> = ({ breweries }) => {
|
||||
[breweries],
|
||||
);
|
||||
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">
|
||||
<Map
|
||||
initialViewState={{ zoom: 2 }}
|
||||
@@ -107,6 +116,7 @@ const BreweryMapPage: NextPage<BreweryMapPageProps> = ({ breweries }) => {
|
||||
)}
|
||||
</Map>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user