-
-
+
+
Lewisburg Coffee Map
-
- Explore the best coffee spots in Lewisburg, PA.
- Curated for coffee enthusiasts.
+
+ Discover the best coffee spots in Lewisburg, PA. Click on any marker to learn more about each location,
+ or use the discovery panel to browse and search all available shops.
-
+
-
-
Map Data © OpenStreetMap contributors
-
Tiles © CARTO
-
Built with Next.js, Tailwind, and Leaflet
+
+
Features:
+
+ - Interactive map with coffee shop locations
+ - Search and filter coffee shops
+ - Detailed information for each location
+ - Get directions to any shop
+ - Light/Dark theme support
+
+
diff --git a/src/components/WelcomeModal.tsx b/src/components/WelcomeModal.tsx
index 661593e..fd5d124 100644
--- a/src/components/WelcomeModal.tsx
+++ b/src/components/WelcomeModal.tsx
@@ -9,7 +9,7 @@ import {
DialogTitle,
} from "~/components/ui/dialog";
import { Button } from "~/components/ui/button";
-import { Coffee, MapPin } from "lucide-react";
+import { Coffee, MapPin, Search, Navigation } from "lucide-react";
export function WelcomeModal() {
const [open, setOpen] = useState(false);
@@ -20,7 +20,7 @@ export function WelcomeModal() {
setOpen(true);
}
- const handleShowWelcome = () => setOpen(true);
+ const handleShowWelcome = () => setOpen(prev => !prev);
window.addEventListener("show-welcome-modal", handleShowWelcome);
return () => window.removeEventListener("show-welcome-modal", handleShowWelcome);
}, []);
@@ -30,8 +30,15 @@ export function WelcomeModal() {
localStorage.setItem("hasSeenWelcome", "true");
};
+ const handleOpenChange = (newOpen: boolean) => {
+ setOpen(newOpen);
+ if (!newOpen) {
+ localStorage.setItem("hasSeenWelcome", "true");
+ }
+ };
+
return (
-