diff --git a/app/[locale]/ai/page.tsx b/app/[locale]/ai/page.tsx new file mode 100644 index 0000000..16fb45f --- /dev/null +++ b/app/[locale]/ai/page.tsx @@ -0,0 +1,81 @@ +"use client"; + +import { useState } from "react"; +import { useTranslation } from "@/i18n/navigation"; +import Footer from "@/app/components/Footer"; + +export default function AIPage() { + const { t } = useTranslation("ai"); + const [query, setQuery] = useState(""); + const [loading, setLoading] = useState(false); + + const exampleQueries = [ + "我预算每月800刀,想亚洲热带,有稳定网,适合freelance写作,推荐城市+理由", + "帮我写下一站介绍文案", + "生成3月清迈行程计划", + ]; + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + if (!query.trim()) return; + setLoading(true); + setTimeout(() => setLoading(false), 1500); + }; + + return ( +
+
+
+

+ {t("title")} +

+

+ {t("subtitle")} +

+
+ +
+
+