1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[364],{1966:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>c});var s=r(7876),t=r(8139),n=r(4232);function l(){let[e,a]=(0,n.useState)({name:"",email:"",msg:""}),[r,t]=(0,n.useState)("");return(0,s.jsx)("section",{className:"px-6 py-section bg-background",children:(0,s.jsxs)("div",{className:"max-w-screen-sm mx-auto space-y-6",children:[(0,s.jsx)("h2",{className:"text-3xl font-light text-center",children:"联系我们"}),r&&(0,s.jsx)("p",{className:"text-red-500 text-sm",children:r}),(0,s.jsxs)("form",{className:"flex flex-col space-y-4",onSubmit:a=>{if(a.preventDefault(),!e.name||!e.email||!e.msg)return void t("所有字段均为必填")},children:[(0,s.jsx)("input",{type:"text",placeholder:"姓名",className:"border p-3 rounded",value:e.name,onChange:r=>a({...e,name:r.target.value})}),(0,s.jsx)("input",{type:"email",placeholder:"邮箱",className:"border p-3 rounded",value:e.email,onChange:r=>a({...e,email:r.target.value})}),(0,s.jsx)("textarea",{placeholder:"留言",rows:5,className:"border p-3 rounded",value:e.msg,onChange:r=>a({...e,msg:r.target.value})}),(0,s.jsx)("button",{type:"submit",className:"py-3 bg-accent text-white rounded disabled:opacity-50",disabled:!e.name||!e.email||!e.msg,children:"发送"})]})]})})}var i=r(4518);function c(){return(0,s.jsxs)("div",{className:"pt-16 pb-12 bg-background",children:[(0,s.jsx)(t.A,{}),(0,s.jsx)("main",{children:(0,s.jsx)(l,{})}),(0,s.jsx)(i.A,{})]})}},4518:(e,a,r)=>{"use strict";r.d(a,{A:()=>t});var s=r(7876);function t(){return(0,s.jsx)("footer",{className:"fixed bottom-0 left-0 w-full bg-background border-t py-4",children:(0,s.jsxs)("div",{className:"container mx-auto flex justify-between items-center text-sm text-primary",children:[(0,s.jsx)("p",{children:"\xa9 2025 CloudProxy 服务"}),(0,s.jsxs)("div",{className:"space-x-4",children:[(0,s.jsx)("a",{href:"#","aria-label":"Twitter",children:"Twitter"}),(0,s.jsx)("a",{href:"#","aria-label":"GitHub",children:"GitHub"}),(0,s.jsx)("a",{href:"#","aria-label":"LinkedIn",children:"LinkedIn"})]})]})})}},5276:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(1966)}])},8139:(e,a,r)=>{"use strict";r.d(a,{A:()=>o});var s=r(7876),t=r(4232),n=r(8230),l=r.n(n),i=r(8447);function c(e){let{open:a,onClose:r}=e;return(0,s.jsxs)("aside",{className:"fixed inset-y-0 right-0 w-64 bg-background shadow-lg transform transition-transform duration-300 "+(a?"translate-x-0":"translate-x-full"),children:[(0,s.jsx)("button",{onClick:r,className:"p-4 focus:outline-none text-primary",children:"✕ 关闭"}),(0,s.jsxs)("nav",{className:"flex flex-col p-6 gap-6 font-medium",children:[(0,s.jsx)(l(),{href:"/features",legacyBehavior:!0,children:(0,s.jsx)("a",{onClick:r,className:"hover:text-accent",children:"特性"})}),(0,s.jsx)(l(),{href:"/pricing",legacyBehavior:!0,children:(0,s.jsx)("a",{onClick:r,className:"hover:text-accent",children:"定价"})}),(0,s.jsx)(l(),{href:"/contact",legacyBehavior:!0,children:(0,s.jsx)("a",{onClick:r,className:"hover:text-accent",children:"联系我们"})})]})]})}function o(){let[e,a]=(0,t.useState)(!1);return(0,s.jsxs)("header",{className:"fixed top-0 left-0 w-full bg-background shadow-sm z-50",children:[(0,s.jsxs)("div",{className:"container mx-auto flex items-center justify-between h-16 px-4",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsx)("button",{className:"md:hidden p-2 focus:outline-none",onClick:()=>a(!0),children:(0,s.jsx)(i.A,{className:"h-6 w-6 text-primary"})}),(0,s.jsx)(l(),{href:"/",children:(0,s.jsx)("img",{src:"/logo.png",alt:"CloudProxy",className:"h-8 w-8"})}),(0,s.jsxs)("nav",{className:"hidden md:flex items-center space-x-4",children:[(0,s.jsx)(l(),{href:"/",className:"text-primary font-semibold",children:"首页"}),(0,s.jsx)(l(),{href:"/features",className:"text-gray-600 hover:text-primary",children:"产品与服务"}),(0,s.jsx)(l(),{href:"/news",className:"text-gray-600 hover:text-primary",children:"新闻资讯"}),(0,s.jsx)(l(),{href:"/cases",className:"text-gray-600 hover:text-primary",children:"客户案例"}),(0,s.jsx)(l(),{href:"/about",className:"text-gray-600 hover:text-primary",children:"关于我们"})]})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsx)(l(),{href:"/login",className:"px-4 py-1 border border-primary rounded-full text-primary hover:bg-primary hover:text-white transition",children:"Log in"}),(0,s.jsx)("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("i",{className:"fab fa-instagram text-gray-600 hover:text-primary"})}),(0,s.jsx)("a",{href:"https://facebook.com",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("i",{className:"fab fa-facebook text-gray-600 hover:text-primary"})}),(0,s.jsx)("a",{href:"https://twitter.com",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("i",{className:"fab fa-twitter text-gray-600 hover:text-primary"})})]})]}),(0,s.jsx)(c,{open:e,onClose:()=>a(!1)})]})}}},e=>{e.O(0,[752,636,593,792],()=>e(e.s=5276)),_N_E=e.O()}]); |