-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more locations for illustration (#640)
- Loading branch information
1 parent
04ef652
commit 5724d07
Showing
3 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { MapContainer } from '@/components/map-container' | ||
|
||
export default function Home() { | ||
export default async function Home() { | ||
const mapboxToken = process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN | ||
if (!mapboxToken) { | ||
throw new Error('Missing NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN') | ||
} | ||
return ( | ||
<main className="relative w-full h-screen"> | ||
<div className="absolute top-4 left-4 z-10 bg-slate-900/80 px-4 py-2 rounded-lg"> | ||
<h1 className="text-xl font-bold text-white">Find Boba Store</h1> | ||
</div> | ||
<MapContainer /> | ||
<MapContainer token={mapboxToken} /> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters