1import{r as e,j as s,L as a,N as l,D as r}from"./vendor-DKpN-gn6.js";import{u as t,B as i}from"./index-CjqWG2Gu.js";import{I as n}from"./input-BczSeZo5.js";import{z as m}from"./index-Cpv5ucUd.js";import{m as d}from"./mailchimpService-BSr-9f18.js";import"./auth-D0Oxv0aP.js";import"./ui-DbiJ6HOd.js";const o=m.object({firstName:m.string().min(1,"First name is required"),lastName:m.string().min(1,"Last name is required"),email:m.string().email("Invalid email address")}),c=()=>{const[c,x]=e.useState(!1),[h,u]=e.useState({firstName:"",lastName:"",email:""}),{toast:f}=t(),j=e=>{const{name:s,value:a}=e.target;u((e=>({...e,[s]:a})))};return s.jsxs("div",{className:"min-h-screen bg-gray-50",children:[s.jsx("div",{className:"container mx-auto px-4 pt-6",children:s.jsxs(a,{to:"/",className:"text-brand-orange hover:text-brand-orange/80 inline-flex items-center",children:[s.jsx(l,{className:"h-4 w-4 mr-1"}),"Back to Home"]})}),s.jsx("div",{className:"container mx-auto px-4 py-10 md:py-16",children:s.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden max-w-6xl mx-auto",children:s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsxs("div",{className:"md:w-1/2 p-8 bg-gradient-to-br from-gray-50 to-gray-100",children:[s.jsx("div",{className:"flex justify-center mb-10 relative",children:s.jsx("img",{src:"/images/frontCover-workSheets.jpg",alt:"BrandJitsu Worksheets Preview",className:"relative w-full max-w-sm rounded-lg transform transition-all duration-500 \n hover:scale-[1.02] hover:-translate-y-1 \n shadow-[0_10px_40px_-15px_rgba(0,0,0,0.2)] hover:shadow-[0_20px_40px_-15px_rgba(0,0,0,0.3)]"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-bold mb-6",children:"What You'll Get"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mt-1 mr-3 flex-shrink-0 rounded-full bg-brand-orange/10 p-1",children:s.jsx("div",{className:"h-5 w-5 rounded-full bg-brand-orange text-white flex items-center justify-center",children:s.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5",children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})}),s.jsx("p",{className:"text-lg text-gray-800",children:"A great companion to the BrandJitsu book"})]}),s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mt-1 mr-3 flex-shrink-0 rounded-full bg-brand-orange/10 p-1",children:s.jsx("div",{className:"h-5 w-5 rounded-full bg-brand-orange text-white flex items-center justify-center",children:s.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5",children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})}),s.jsx("p",{className:"text-lg text-gray-800",children:"All the worksheets we use to build memorable brands"})]}),s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mt-1 mr-3 flex-shrink-0 rounded-full bg-brand-orange/10 p-1",children:s.jsx("div",{className:"h-5 w-5 rounded-full bg-brand-orange text-white flex items-center justify-center",children:s.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5",children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})}),s.jsx("p",{className:"text-lg text-gray-800",children:"All presented in scaleable PDF so you can print at any size"})]})]})]})]}),s.jsxs("div",{className:"md:w-1/2 p-8 md:p-12",children:[s.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Get Your Free Worksheets"}),s.jsxs("form",{onSubmit:async e=>{e.preventDefault(),x(!0);try{const e=o.parse(h);await d.subscribe({firstName:e.firstName,lastName:e.lastName,email:e.email,tags:["Worksheets"]}),f({title:"Success!",description:"An email with your download link for your worksheets is on its way to your inbox."}),u({firstName:"",lastName:"",email:""})}catch(s){if(s instanceof m.ZodError){const e=s.errors.map((e=>e.message)).join(", ");f({title:"Form validation error",description:e,variant:"destructive"})}else f({title:"Something went wrong",description:"Please try again later",variant:"destructive"})}finally{x(!1)}},className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"firstName",className:"block text-sm font-medium mb-1",children:"First Name"}),s.jsx(n,{id:"firstName",name:"firstName",value:h.firstName,onChange:j,required:!0,className:"w-full"})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"lastName",className:"block text-sm font-medium mb-1",children:"Last Name"}),s.jsx(n,{id:"lastName",name:"lastName",value:h.lastName,onChange:j,required:!0,className:"w-full"})]}),s.jsxs("div",{children:[s.jsx("label",{htmlFor:"email",className:"block text-sm font-medium mb-1",children:"Email Address"}),s.jsx(n,{id:"email",name:"email",type:"email",value:h.email,onChange:j,required:!0,className:"w-full"})]}),s.jsxs(i,{type:"submit",className:"w-full bg-brand-orange hover:bg-brand-orange/90 text-white",disabled:c,
1children:[s.jsx(r,{className:"mr-2 h-5 w-5"})," Get Worksheets"]}),s.jsx("p",{className:"text-center text-sm text-gray-500 mt-4",children:"We respect your privacy. Your email will never be shared or sold."})]})]})]})})})]})};export{c as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.