diff --git a/website/src/assets/images/Carousel/huaban.jpg b/website/src/assets/images/Carousel/huaban.jpg new file mode 100644 index 0000000..b4aa7ad Binary files /dev/null and b/website/src/assets/images/Carousel/huaban.jpg differ diff --git a/website/src/assets/images/Carousel/ky.png b/website/src/assets/images/Carousel/ky.png new file mode 100644 index 0000000..9765ebd Binary files /dev/null and b/website/src/assets/images/Carousel/ky.png differ diff --git a/website/src/assets/images/Carousel/sk.png b/website/src/assets/images/Carousel/sk.png new file mode 100644 index 0000000..6141f76 Binary files /dev/null and b/website/src/assets/images/Carousel/sk.png differ diff --git a/website/src/assets/images/Carousel/xq.png b/website/src/assets/images/Carousel/xq.png new file mode 100644 index 0000000..6285fc3 Binary files /dev/null and b/website/src/assets/images/Carousel/xq.png differ diff --git a/website/src/assets/images/Carousel/zh.png b/website/src/assets/images/Carousel/zh.png new file mode 100644 index 0000000..a01763f Binary files /dev/null and b/website/src/assets/images/Carousel/zh.png differ diff --git a/website/src/components/ContactForm.jsx b/website/src/components/ContactForm.jsx index e955181..fe17906 100644 --- a/website/src/components/ContactForm.jsx +++ b/website/src/components/ContactForm.jsx @@ -1,4 +1,5 @@ import { useState } from 'react'; +import { CheckCircle, X } from 'lucide-react'; const productOptions = [ '校企益邦', @@ -17,6 +18,7 @@ const initialFormState = { export default function ContactForm() { const [form, setForm] = useState(initialFormState); + const [showModal, setShowModal] = useState(false); function handleChange(e) { const { name, value } = e.target; @@ -25,82 +27,127 @@ export default function ContactForm() { function handleSubmit(e) { e.preventDefault(); - alert( - '感谢您的咨询!\n\n' + - '姓名:' + form.name + '\n' + - '联系电话:' + form.phone + '\n' + - '单位名称:' + form.company + '\n' + - '关注产品:' + form.product + '\n' + - '留言内容:' + form.message + '\n\n' + - '我们将在1个工作日内与您联系!' - ); + setShowModal(true); + console.log('提交表单', form); + setForm(initialFormState); } - const inputClass = 'w-full px-4 py-2.5 border border-gray-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-[#004ec4]/20 focus:border-[#004ec4]/40 transition-shadow placeholder-[#94a3b8] bg-white text-[#334155]'; + function closeModal() { + setShowModal(false); + } + + const inputClass = 'w-full px-4 py-3 border border-gray-200 rounded-xl text-base focus:outline-none focus:ring-2 focus:ring-[#043b8f]/20 focus:border-[#043b8f]/40 transition-shadow placeholder-[#94a3b8] bg-white text-[#334155]'; return ( -
-
-
-

Inquiry

-

在线咨询

-

填写表单,我们将在 1 个工作日内与您联系

+ <> +
+
+
+
+
+ + Inquiry +
+

+ 在线咨询 +

+

填写表单,我们将在 1 个工作日内与您联系

+
+
+ +
+
+
+
+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +