diff --git a/src/app/globals.css b/src/app/globals.css index 769ee01..f76e68f 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -26,3 +26,11 @@ body { user-select: none; -webkit-tap-highlight-color: transparent; } + +.scrollbar-none { + -ms-overflow-style: none; + scrollbar-width: none; +} +.scrollbar-none::-webkit-scrollbar { + display: none; +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 411bfd4..8d519eb 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,7 +3,7 @@ import { useState, useRef, useEffect, useCallback } from "react"; import { useRouter } from "next/navigation"; import { motion, AnimatePresence } from "framer-motion"; -import { Plus, LogIn, Utensils, Loader2, MapPin, Navigation, X, Users, Heart, Sparkles, ChevronRight } from "lucide-react"; +import { Plus, LogIn, Utensils, Loader2, MapPin, Navigation, X, Users, Heart, Sparkles, ChevronRight, Flame } from "lucide-react"; import { getUserId } from "@/lib/userId"; interface LocationSuggestion { @@ -30,7 +30,7 @@ const PRICE_OPTIONS = [ { label: "¥100+", value: "over100" }, ] as const; -const CUISINE_OPTIONS = ["不限", "火锅", "日料", "烧烤", "西餐", "川菜", "粤菜", "东南亚"] as const; +const HOT_CUISINES = ["火锅", "日料", "烧烤", "西餐", "川菜", "咖啡甜品", "小吃快餐"] as const; function getLocation(): Promise<{ lat: number; lng: number }> { if (process.env.NODE_ENV === "development") { @@ -66,7 +66,7 @@ export default function LandingPage() { const [fetchingSuggestions, setFetchingSuggestions] = useState(false); const [radius, setRadius] = useState(3000); const [priceRange, setPriceRange] = useState("any"); - const [cuisine, setCuisine] = useState("不限"); + const [cuisine, setCuisine] = useState(""); const suggestRef = useRef(null); const debounceRef = useRef>(null); @@ -198,11 +198,7 @@ export default function LandingPage() { animate={{ y: 0, opacity: 1 }} transition={{ duration: 0.5 }} > -
- -
- -

+

NoWhatever

@@ -324,6 +320,50 @@ export default function LandingPage() {

+
+ 美食 +
+ setCuisine(e.target.value)} + disabled={loading} + className="h-7 w-full rounded-full border-none bg-white pl-3 pr-7 text-xs text-zinc-700 outline-none ring-1 ring-zinc-200 transition-colors placeholder:text-zinc-300 focus:ring-2 focus:ring-emerald-300 disabled:opacity-50" + /> + {cuisine && !loading && ( + + )} +
+
+ +
+ +
+ + {HOT_CUISINES.map((tag) => ( + + ))} +
+
+
距离
@@ -366,26 +406,6 @@ export default function LandingPage() {
-
- 菜系 -
- {CUISINE_OPTIONS.map((opt) => ( - - ))} -
-