PageSourceSearch

https://brandjitsu.com/assets/FreeChapterLanding-Cxu5KCmz.js

js brandjitsu.com collected 2026-10-04 06:18:51 UTC 5,422 bytes, 1 lines download raw bytes

1import{r as e,j as a,L as s,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:a,value:s}=e.target;u((e=>({...e,[a]:s})))};return a.jsxs("div",{className:"min-h-screen bg-gray-50",children:[a.jsx("div",{className:"container mx-auto px-4 pt-6",children:a.jsxs(s,{to:"/",className:"text-brand-orange hover:text-brand-orange/80 inline-flex items-center",children:[a.jsx(l,{className:"h-4 w-4 mr-1"}),"Back to Home"]})}),a.jsx("div",{className:"container mx-auto px-4 py-10 md:py-16",children:a.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden max-w-6xl mx-auto",children:a.jsxs("div",{className:"flex flex-col md:flex-row",children:[a.jsxs("div",{className:"md:w-1/2 p-8 bg-gradient-to-br from-gray-50 to-gray-100",children:[a.jsx("div",{className:"flex justify-center mb-10",children:a.jsx("img",{src:"/images/BrandJitsu_MPG_Square.jpg",alt:"BrandJitsu Book Cover",className:"max-w-xs mx-auto transform rotate-6 hover:rotate-0 transition-all duration-500 shadow-xl"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-3xl font-bold mb-6",children:"What You'll Learn"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"mt-1 mr-3 flex-shrink-0 rounded-full bg-brand-orange/10 p-1",children:a.jsx("div",{className:"h-5 w-5 rounded-full bg-brand-orange text-white flex items-center justify-center",children:a.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5",children:a.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"})})})}),a.jsx("p",{className:"text-lg text-gray-800",children:"Learn what makes a brand truly memorable."})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"mt-1 mr-3 flex-shrink-0 rounded-full bg-brand-orange/10 p-1",children:a.jsx("div",{className:"h-5 w-5 rounded-full bg-brand-orange text-white flex items-center justify-center",children:a.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5",children:a.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"})})})}),a.jsx("p",{className:"text-lg text-gray-800",children:"Get a simple, actionable framework you can use right away."})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"mt-1 mr-3 flex-shrink-0 rounded-full bg-brand-orange/10 p-1",children:a.jsx("div",{className:"h-5 w-5 rounded-full bg-brand-orange text-white flex items-center justify-center",children:a.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-3.5 h-3.5",children:a.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"})})})}),a.jsx("p",{className:"text-lg text-gray-800",children:"Build a brand that's authentic, clear, and impossible to ignore."})]})]})]})]}),a.jsxs("div",{className:"md:w-1/2 p-8 md:p-12",children:[a.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Get Instant Access"}),a.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:["Free Chapter"]}),f({title:"Success!",description:"An email with your download link for your Free Chapter is on its way to your inbox."}),u({firstName:"",lastName:"",email:""})}catch(a){if(a instanceof m.ZodError){const e=a.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:[a.jsxs("div",{children:[a.jsx("label",{htmlFor:"firstName",className:"block text-sm font-medium mb-1",children:"First Name"}),a.jsx(n,{id:"firstName",name:"firstName",value:h.firstName,onChange:j,required:!0,className:"w-full"})]}),a.jsxs("div",{children:[a.jsx("label",{htmlFor:"lastName",className:"block text-sm font-medium mb-1",children:"Last Name"}),a.jsx(n,{id:"lastName",name:"lastName",value:h.lastName,onChange:j,required:!0,className:"w-full"})]}),a.jsxs("div",{children:[a.jsx("label",{htmlFor:"email",className:"block text-sm font-medium mb-1",children:"Email Address"}),a.jsx(n,{id:"email",name:"email",type:"email",value:h.email,onChange:j,required:!0,className:"w-full"})]}),a.jsxs(i,{type:"submit",className:"w-full bg-brand-orange hover:bg-brand-orange/90 text-white",disabled:c,
1children:[a.jsx(r,{className:"mr-2 h-5 w-5"})," Get Free Chapter"]}),a.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.