Files
adnexus/assets/CTVCalculator-5LCRL2hX.js
2026-09-20 08:53:09 -07:00

2 lines
5.1 KiB
JavaScript

import{r as d,j as e,v as x,w as C,x as $,y as S}from"./ui-SA1K2VdO.js";import{e as V}from"./index-BBRaFEzF.js";const m=d.forwardRef(({className:t,...r},n)=>e.jsxs(x,{ref:n,className:V("relative flex w-full touch-none select-none items-center",t),...r,children:[e.jsx(C,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:e.jsx($,{className:"absolute h-full bg-blue-600"})}),e.jsx(S,{className:"block h-5 w-5 rounded-full border-2 border-blue-600 bg-white shadow-lg ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));m.displayName=x.displayName;function _(){const[t,r]=d.useState(5e3),n=15,o=35,l=Math.floor(t/o*1e3),a=Math.floor(t/n*1e3),b=(t/a).toFixed(2),h=(t/l).toFixed(2),u=Math.floor(l/8),f=Math.floor(a/3),p=Math.floor(l*.003),j=Math.floor(a*.015),g=Math.floor(l*.002),v=Math.floor(a*.0065),N=Math.floor(l*6e-4),w=Math.floor(a*.002),k=Math.floor(l*.0011),y=Math.floor(a*.0025),c=s=>s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(0)}K`:s.toString(),i=(s,M)=>`${c(s)}-${c(M)}`;return e.jsxs("div",{className:"w-full max-w-7xl mx-auto",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 items-start",children:[e.jsxs("div",{className:"bg-white rounded-3xl p-12 text-black",children:[e.jsx("h3",{className:"text-3xl font-bold mb-4 text-black",children:"Test your budget"}),e.jsx("p",{className:"text-gray-600 mb-8",children:"Simulate your campaign results by entering your future campaign budgets."}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex items-baseline gap-2 mb-6",children:[e.jsx("span",{className:"text-2xl",children:"$"}),e.jsx("input",{type:"number",value:t,onChange:s=>r(Number(s.target.value)),className:"text-5xl font-normal border-b-2 border-gray-300 focus:border-blue-500 outline-none bg-transparent w-full"}),e.jsx("span",{className:"text-gray-500 text-sm",children:"USD"})]}),e.jsx("div",{className:"relative mb-4",children:e.jsx(m,{value:[t],onValueChange:s=>r(s[0]),min:50,max:1e5,step:50,className:"w-full [&_[role=slider]]:bg-blue-600 [&_[role=slider]]:border-4 [&_[role=slider]]:border-white [&_[role=slider]]:shadow-lg [&_[role=slider]]:w-6 [&_[role=slider]]:h-6"})}),e.jsxs("div",{className:"flex justify-between text-sm text-gray-600",children:[e.jsx("span",{children:"$50"}),e.jsx("span",{children:"$100,000"})]})]})]}),e.jsx("div",{className:"bg-white rounded-3xl p-12 text-black",children:e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"CPM"}),e.jsxs("div",{className:"text-4xl font-bold text-black",children:["$",n,"-$",o]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"Impressions"}),e.jsx("div",{className:"text-4xl font-bold text-black",children:i(l,a)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"Cost per View"}),e.jsxs("div",{className:"text-4xl font-bold text-black",children:["$",b,"-$",h]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"Households"}),e.jsx("div",{className:"text-4xl font-bold text-black",children:i(u,f)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"Web Visits"}),e.jsx("div",{className:"text-4xl font-bold text-black",children:i(p,j)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"App Installs"}),e.jsx("div",{className:"text-4xl font-bold text-black",children:i(g,v)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"Sales"}),e.jsx("div",{className:"text-4xl font-bold text-black",children:i(N,w)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm text-blue-600 font-semibold mb-2 uppercase tracking-wide",children:"Foot Traffic"}),e.jsx("div",{className:"text-4xl font-bold text-black",children:i(k,y)})]})]})})]}),e.jsxs("div",{className:"text-center mt-12",children:[e.jsx("h4",{className:"text-2xl font-bold mb-4 text-white",children:"Start advertising on TV in 5 minutes"}),e.jsx("p",{className:"text-white/70 mb-8",children:"Starts at only $50/d - No Commitment - Credit Card or Wire Payment"}),e.jsxs("div",{className:"flex gap-4 justify-center flex-wrap",children:[e.jsx("a",{href:"https://cal.com/adnexus",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center rounded-full px-8 py-3 text-base font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors",children:"Book a demo"}),e.jsx("span",{className:"text-white/60 self-center",children:"OR"}),e.jsx("a",{href:"/auth",className:"inline-flex items-center justify-center rounded-full px-8 py-3 text-base font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors",children:"Get started"})]})]})]})}export{_ as C};