Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add deck page

Marc Seitzaa88114e9409
diff --git a/app/(static)/deck/components/BudgetCounter.tsx b/app/(static)/deck/components/BudgetCounter.tsx
new file mode 100644
index 00000000..721f34d3
--- /dev/null
+++ b/app/(static)/deck/components/BudgetCounter.tsx
@@ -0,0 +1,72 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface BudgetCounterProps {
+ budget: number;
+ setBudget: Dispatch<SetStateAction<number>>;
+}
+
+export const BudgetCounter = ({ budget, setBudget }: BudgetCounterProps) => {
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
+ setBudget(Number(event.target.value));
+ };
+
+ const filledPercentage = (budget / 50000) * 100;
+
+ const styles = `
+ .slider-container {
+ position: relative;
+ width: 100%;
+ }
+ .slider-label {
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ top: -20px; /* adjust as needed */
+ font-size: 0.75rem; /* example size */
+ color: #374151; /* example color */
+ }
+ input[type=range].budget-counter {
+ -webkit-appearance: none;
+ width: 100%;
+ height: 10px;
+ border-radius: 5px;
+ outline: none;
+ background: #D1D5DB; /* Unfilled part remains light grey */
+ background: linear-gradient(to right, #374151 0%, #374151 ${filledPercentage}%, #D1D5DB ${filledPercentage}%, #D1D5DB 100%);
+ }
+ input[type=range].budget-counter::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ height: 15px;
+ width: 15px;
+ border-radius: 50%;
+ background: #111111; /* Thumb color */
+ cursor: pointer;
+ }
+ input[type=range].budget-counter::-moz-range-thumb {
+ appearance: none;
+ height: 15px;
+ width: 15px;
+ border-radius: 50%;
+ background: #c10573; /* Thumb color */
+ cursor: pointer;
+ }
+ `;
+
+ return (
+ <div className="slider-container">
+ <style dangerouslySetInnerHTML={{ __html: styles }} />
+ <input
+ className="budget-counter"
+ type="range"
+ min="100"
+ max="50000"
+ step="100"
+ value={budget}
+ onChange={handleChange}
+ />
+ <div className="text-gray-500 text-xs absolute right-0 top-0 mt-[-1rem]">
+ ${budget}
+ </div>
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Community.tsx b/app/(static)/deck/components/Community.tsx
new file mode 100644
index 00000000..3f096f2b
--- /dev/null
+++ b/app/(static)/deck/components/Community.tsx
@@ -0,0 +1,26 @@
+import { Dispatch, SetStateAction } from "react";
+import DropdownProto from "./DropdownProto";
+
+interface CommunityProps {
+ community: string;
+ setCommunity: Dispatch<SetStateAction<string>>;
+}
+
+const options = [
+ "GitHub stars",
+ "Community",
+ "Slack community",
+ "Discord community",
+ "Contributors",
+ "Advisors",
+];
+
+export const Community = ({ community, setCommunity }: CommunityProps) => {
+ return (
+ <DropdownProto
+ options={options}
+ option={community || "Community"}
+ setOption={setCommunity}
+ />
+ );
+};
diff --git a/app/(static)/deck/components/Community1.tsx b/app/(static)/deck/components/Community1.tsx
new file mode 100644
index 00000000..46517fab
--- /dev/null
+++ b/app/(static)/deck/components/Community1.tsx
@@ -0,0 +1,72 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface Community1Props {
+ community1: number;
+ setCommunity1: Dispatch<SetStateAction<number>>;
+}
+
+export const Community1 = ({ community1, setCommunity1 }: Community1Props) => {
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
+ setCommunity1(Number(event.target.value));
+ };
+
+ const filledPercentage = (community1 / 50000) * 100;
+
+ const styles = `
+ .slider-container {
+ position: relative;
+ width: 100%;
+ }
+ .slider-label {
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ top: -20px; /* adjust as needed */
+ font-size: 0.75rem; /* example size */
+ color: #374151; /* example color */
+ }
+ input[type=range].community-counter {
+ -webkit-appearance: none;
+ width: 100%;
+ height: 10px;
+ border-radius: 5px;
+ outline: none;
+ background: #D1D5DB; /* Unfilled part remains light grey */
+ background: linear-gradient(to right, #374151 0%, #374151 ${filledPercentage}%, #D1D5DB ${filledPercentage}%, #D1D5DB 100%);
+ }
+ input[type=range].community-counter::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ height: 15px;
+ width: 15px;
+ border-radius: 50%;
+ background: #111111; /* Thumb color */
+ cursor: pointer;
+ }
+ input[type=range].community-counter::-moz-range-thumb {
+ appearance: none;
+ height: 15px;
+ width: 15px;
+ border-radius: 50%;
+ background: #c10573; /* Thumb color */
+ cursor: pointer;
+ }
+ `;
+
+ return (
+ <div className="slider-container">
+ <style dangerouslySetInnerHTML={{ __html: styles }} />
+ <input
+ className="community-counter"
+ type="range"
+ min="100"
+ max="50000"
+ step="100"
+ value={community1}
+ onChange={handleChange}
+ />
+ <div className="text-gray-500 text-xs absolute right-0 top-0 mt-[-1rem]">
+ {community1} people
+ </div>
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Company.tsx b/app/(static)/deck/components/Company.tsx
new file mode 100644
index 00000000..8c2a8b76
--- /dev/null
+++ b/app/(static)/deck/components/Company.tsx
@@ -0,0 +1,21 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface CompanyProps {
+ company: string;
+ setCompany: Dispatch<SetStateAction<string>>;
+}
+
+export const Company = ({ company, setCompany }: CompanyProps) => {
+ return (
+ <div className="w-full">
+ <input
+ type="text"
+ maxLength={20}
+ value={company}
+ onChange={(e) => setCompany(e.target.value)}
+ placeholder="Papermark"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Description.tsx b/app/(static)/deck/components/Description.tsx
new file mode 100644
index 00000000..829fb028
--- /dev/null
+++ b/app/(static)/deck/components/Description.tsx
@@ -0,0 +1,23 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface DescriptionProps {
+ description: string;
+ setDescription: Dispatch<SetStateAction<string>>;
+}
+
+export const Description = ({
+ description,
+ setDescription,
+}: DescriptionProps) => {
+ return (
+ <div className="w-full">
+ <input
+ maxLength={50}
+ onChange={(e) => setDescription(e.target.value)}
+ value={description}
+ placeholder="An open source docsend alternative"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/DropdownProto.tsx b/app/(static)/deck/components/DropdownProto.tsx
new file mode 100644
index 00000000..7c43c213
--- /dev/null
+++ b/app/(static)/deck/components/DropdownProto.tsx
@@ -0,0 +1,74 @@
+import { Menu, Transition } from "@headlessui/react";
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
+import { Fragment, Dispatch, SetStateAction } from "react";
+
+function classNames(...classes: string[]) {
+ return classes.filter(Boolean).join(" ");
+}
+
+interface DropDownProps {
+ options: string[];
+ option: string;
+ setOption: Dispatch<SetStateAction<string>>;
+}
+
+export default function DropDown({
+ options,
+ option,
+ setOption,
+}: DropDownProps) {
+ return (
+ <Menu as="div" className="relative block text-left w-full">
+ <div>
+ <Menu.Button className="inline-flex w-full justify-between items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-gray-400 font-light shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue">
+ {option}
+ <ChevronDownIcon
+ className="-mr-1 ml-2 h-5 w-5 ui-open:hidden"
+ aria-hidden="true"
+ />
+ <ChevronUpIcon
+ className="-mr-1 ml-2 h-5 w-5 hidden ui-open:block"
+ aria-hidden="true"
+ />
+ </Menu.Button>
+ </div>
+
+ <Transition
+ as={Fragment}
+ enter="transition ease-out duration-100"
+ enterFrom="transform opacity-0 scale-95"
+ enterTo="transform opacity-100 scale-100"
+ leave="transition ease-in duration-75"
+ leaveFrom="transform opacity-100 scale-100"
+ leaveTo="transform opacity-0 scale-95"
+ >
+ <Menu.Items
+ className="absolute left-0 z-10 mt-2 w-full origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
+ key={option}
+ >
+ <div className="">
+ {options.map((optionItem) => (
+ <Menu.Item key={optionItem}>
+ {({ active }) => (
+ <button
+ onClick={() => setOption(optionItem)}
+ className={classNames(
+ active ? "bg-gray-100 text-gray-900" : "text-gray-700",
+ option === optionItem ? "bg-gray-200" : "",
+ "px-4 py-2 text-sm w-full text-left flex items-center space-x-2 justify-between",
+ )}
+ >
+ <span>{optionItem}</span>
+ {option === optionItem ? (
+ <CheckIcon className="w-4 h-4 text-bold" />
+ ) : null}
+ </button>
+ )}
+ </Menu.Item>
+ ))}
+ </div>
+ </Menu.Items>
+ </Transition>
+ </Menu>
+ );
+}
diff --git a/app/(static)/deck/components/Email.tsx b/app/(static)/deck/components/Email.tsx
new file mode 100644
index 00000000..68e6f4b1
--- /dev/null
+++ b/app/(static)/deck/components/Email.tsx
@@ -0,0 +1,21 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface EmailProps {
+ email: string;
+ setEmail: Dispatch<SetStateAction<string>>;
+}
+
+export const Email = ({ email, setEmail }: EmailProps) => {
+ return (
+ <div className="w-full">
+ <input
+ type="text"
+ maxLength={20}
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ placeholder="[email protected]"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Metric2.tsx b/app/(static)/deck/components/Metric2.tsx
new file mode 100644
index 00000000..9f559560
--- /dev/null
+++ b/app/(static)/deck/components/Metric2.tsx
@@ -0,0 +1,60 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface Metric2Props {
+ metric2: number;
+ setMetric2: Dispatch<SetStateAction<number>>;
+}
+
+export const Metric2 = ({ metric2, setMetric2 }: Metric2Props) => {
+ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
+ setMetric2(Number(event.target.value));
+ };
+
+ const styles = `
+ input[type=range].guest-counter{
+ appearance: none;
+ width: 100%;
+ height: 10px;
+ border-radius: 5px;
+ outline: none;
+ transition: background 0.5s;
+ background: linear-gradient(to right, #374151 0%, #374151 ${
+ (metric2 / 50000) * 100
+ }%, #D1D5DB ${(metric2 / 50000) * 100}%, #D1D5DB 100%);
+ }
+ input[type=range].guest-counter::-webkit-slider-thumb {
+ appearance: none;
+ height: 15px;
+ width: 15px;
+ border-radius: 50%;
+ background: #111111; /* Thumb color */
+ cursor: pointer;
+ }
+ input[type=range].guest-counter::-moz-range-thumb {
+ appearance: none;
+ height: 15px;
+ width: 15px;
+ border-radius: 50%;
+ background: #c10573;
+ cursor: pointer;
+ }
+ `;
+
+ return (
+ <div className="slider-container">
+ <style dangerouslySetInnerHTML={{ __html: styles }} />
+ <input
+ className="guest-counter"
+ type="range"
+ min="100"
+ max="50000"
+ step="100"
+ value={metric2}
+ onChange={handleChange}
+ />
+ <div className="text-gray-500 text-xs absolute right-0 top-0 mt-[-1rem]">
+ {metric2} users{" "}
+ </div>
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Mrr.tsx b/app/(static)/deck/components/Mrr.tsx
new file mode 100644
index 00000000..12a29427
--- /dev/null
+++ b/app/(static)/deck/components/Mrr.tsx
@@ -0,0 +1,28 @@
+import { Dispatch, SetStateAction } from "react";
+import DropdownProto from "./DropdownProto";
+
+interface MrrProps {
+ mrr: string;
+ setMrr: Dispatch<SetStateAction<string>>;
+}
+
+const options = [
+ "MRR",
+ "ARR",
+ "Total Revenue",
+ "Transactions",
+ "Signed revenue",
+ "Net Volume",
+ "Customers",
+ "Expected revenue",
+];
+
+export const Mrr = ({ mrr, setMrr }: MrrProps) => {
+ return (
+ <DropdownProto
+ options={options}
+ option={mrr || "Type of revenue"}
+ setOption={setMrr}
+ />
+ );
+};
diff --git a/app/(static)/deck/components/Problem.tsx b/app/(static)/deck/components/Problem.tsx
new file mode 100644
index 00000000..4d0cc1ca
--- /dev/null
+++ b/app/(static)/deck/components/Problem.tsx
@@ -0,0 +1,21 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface ProblemProps {
+ problem: string;
+ setProblem: Dispatch<SetStateAction<string>>;
+}
+
+export const Problem = ({ problem, setProblem }: ProblemProps) => {
+ return (
+ <div className="w-full">
+ <input
+ type="text"
+ maxLength={70}
+ value={problem}
+ onChange={(e) => setProblem(e.target.value)}
+ placeholder="Turn documents and data rooms intro trackable links"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Solution.tsx b/app/(static)/deck/components/Solution.tsx
new file mode 100644
index 00000000..d9f203f0
--- /dev/null
+++ b/app/(static)/deck/components/Solution.tsx
@@ -0,0 +1,21 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface SolutionProps {
+ solution: string;
+ setSolution: Dispatch<SetStateAction<string>>;
+}
+
+export const Solution = ({ solution, setSolution }: SolutionProps) => {
+ return (
+ <div className="w-full">
+ <input
+ type="text"
+ maxLength={70}
+ value={solution}
+ onChange={(e) => setSolution(e.target.value)}
+ placeholder="Modern document infrastructure with built-in analytics"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Special1.tsx b/app/(static)/deck/components/Special1.tsx
new file mode 100644
index 00000000..1f3f4a7c
--- /dev/null
+++ b/app/(static)/deck/components/Special1.tsx
@@ -0,0 +1,21 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface Special1Props {
+ special1: string;
+ setSpecial1: Dispatch<SetStateAction<string>>;
+}
+
+export const Special1 = ({ special1, setSpecial1 }: Special1Props) => {
+ return (
+ <div className="w-full">
+ <input
+ type="text"
+ maxLength={20}
+ value={special1}
+ onChange={(e) => setSpecial1(e.target.value)}
+ placeholder="Documents shared"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Special2.tsx b/app/(static)/deck/components/Special2.tsx
new file mode 100644
index 00000000..9675e2a3
--- /dev/null
+++ b/app/(static)/deck/components/Special2.tsx
@@ -0,0 +1,21 @@
+import { Dispatch, SetStateAction } from "react";
+
+interface Special1Props {
+ special2: string;
+ setSpecial2: Dispatch<SetStateAction<string>>;
+}
+
+export const Special2 = ({ special2, setSpecial2 }: Special1Props) => {
+ return (
+ <div className="w-full">
+ <input
+ type="text"
+ maxLength={20}
+ value={special2}
+ onChange={(e) => setSpecial2(e.target.value)}
+ placeholder="100k"
+ className="text-black w-full p-2 text-s bg-white border border-gray-300 rounded-md font-light"
+ />
+ </div>
+ );
+};
diff --git a/app/(static)/deck/components/Users.tsx b/app/(static)/deck/components/Users.tsx
new file mode 100644
index 00000000..d7053fb6
--- /dev/null
+++ b/app/(static)/deck/components/Users.tsx
@@ -0,0 +1,25 @@
+import { Dispatch, SetStateAction } from "react";
+import DropdownProto from "./DropdownProto";
+
+interface UsersProps {
+ users: string;
+ setUsers: Dispatch<SetStateAction<string>>;
+}
+
+const options = [
+ "Users",
+ "Monthly Active Users",
+ "Customers",
+ "Sign Ups",
+ "Waitlist signus",
+];
+
+export const Users = ({ users, setUsers }: UsersProps) => {
+ return (
+ <DropdownProto
+ options={options}
+ option={users || "Type of users"}
+ setOption={setUsers}
+ />
+ );
+};
diff --git a/app/(static)/deck/page.tsx b/app/(static)/deck/page.tsx
index 606f4e13..add61511 100644
--- a/app/(static)/deck/page.tsx
+++ b/app/(static)/deck/page.tsx
@@ -1,10 +1,57 @@
"use client"; // Ensures this component is rendered on the client side
-import { useEffect, useRef } from "react";
+import { useEffect, useRef, useState } from "react";
+import { Company } from "./components/Company";
+import { Description } from "./components/Description";
+import { Problem } from "./components/Problem";
+import { Solution } from "./components/Solution";
+import { BudgetCounter } from "./components/BudgetCounter";
+import { Mrr } from "./components/Mrr";
+import { Metric2 } from "./components/Metric2";
+import { Users } from "./components/Users";
+import { Community1 } from "./components/Community1";
+import { Community } from "./components/Community";
+import { Special2 } from "./components/Special2";
+import { Special1 } from "./components/Special1";
+import { Email } from "./components/Email";
+import LoadingDots from "@/components/ui/loading-dots";
const DeckPage = () => {
const iframeRef = useRef<HTMLIFrameElement>(null);
+ const [loading, setLoading] = useState(false);
+ const [description, setDescription] = useState<string>("");
+ const [media, setMedia] = useState<boolean>(false);
+ const [name, setName] = useState<string>("");
+ const [budget, setBudget] = useState<number>(100);
+ const [solution, setSolution] = useState<string>("");
+ const [company, setCompany] = useState<string>("");
+ const [email, setEmail] = useState<string>("");
+ const [problem, setProblem] = useState<string>("");
+ const [users, setUsers] = useState<string>("");
+ const [mrr, setMrr] = useState<string>("");
+ const [metric2, setMetric2] = useState(100);
+ const [community1, setCommunity1] = useState(100);
+ const [community, setCommunity] = useState<string>("");
+ const [special1, setSpecial1] = useState<string>("");
+ const [special2, setSpecial2] = useState<string>("");
+
+ // State to control the step of the form
+ const [step, setStep] = useState(1);
+
+ // Function to handle the Next button click
+ const handleNextClick = () => {
+ if (step < 5) {
+ setStep(step + 1);
+ }
+ };
+
+ const handlePreviousClick = () => {
+ if (step > 1) {
+ setStep(step - 1);
+ }
+ };
+
const setItem = (key: string, value: string) => {
iframeRef.current?.contentWindow?.postMessage(
{ type: "set", key, value },
@@ -12,28 +59,56 @@ const DeckPage = () => {
);
};
- useEffect(() => {
- // Example usage
- const exampleData = JSON.stringify({
- company: "Papermark",
- email: "[email protected]",
- description:
- "Papermark is a platform that helps you create and share beautiful pitch decks.",
- problem:
- "Creating pitch decks is time-consuming and requires design skills.",
- solution:
- "Papermark provides a simple drag-and-drop interface to create beautiful pitch decks.",
- mrr: "10,000",
- users: "100",
- metric2: "10",
- budget: "10,000",
- community: "Papermark Community",
- community1: "Papermark Community",
- special1: "Special 1",
- special2: "Special 2",
- });
- setItem("sharedKey", exampleData);
- }, []);
+ const saveData = () => {
+ setLoading(true);
+ setItem(
+ "sharedKey",
+ JSON.stringify({
+ company,
+ email,
+ description,
+ problem,
+ solution,
+ mrr,
+ users,
+ metric2,
+ budget,
+ community,
+ community1,
+ special1,
+ special2,
+ }),
+ );
+
+ setTimeout(() => {
+ setLoading(false);
+
+ window.location.href = "https://deck.papermark.io/loading";
+ }, 2000);
+ };
+
+ // useEffect(() => {
+ // // Example usage
+ // const exampleData = JSON.stringify({
+ // company: "Papermark",
+ // email: "[email protected]",
+ // description:
+ // "Papermark is a platform that helps you create and share beautiful pitch decks.",
+ // problem:
+ // "Creating pitch decks is time-consuming and requires design skills.",
+ // solution:
+ // "Papermark provides a simple drag-and-drop interface to create beautiful pitch decks.",
+ // mrr: "10,000",
+ // users: "100",
+ // metric2: "10",
+ // budget: "10,000",
+ // community: "Papermark Community",
+ // community1: "Papermark Community",
+ // special1: "Special 1",
+ // special2: "Special 2",
+ // });
+ // setItem("sharedKey", exampleData);
+ // }, []);
return (
<>
@@ -48,8 +123,297 @@ const DeckPage = () => {
}}
/>
<div>
- <h1>Deck Page</h1>
- <p>This page sets a localStorage value in the shared iframe.</p>
+ <section className="py-10 lg:py-36 bg-white">
+ {/* bg-[url('/image1.svg')] */}
+ <div className="px-4 0">
+ <div className="max-w-5xl mx-auto ">
+ <div className="w-full mx-auto ">
+ <div className="flex flex-col md:flex-row w-full md:space-x-20 ">
+ <div className="flex flex-col w-full md:w-1/2 mt-4 md:mt-0 ">
+ <h1 className="text-5xl md:text-7xl text-balance">
+ Pitch Deck AI Generator
+ </h1>
+
+ <p className="text-2xl mt-2 text-balance max-w-3xl">
+ Instantly create pitch deck and share via trackable link
+ </p>
+
+ <p className="text-sm mt-2 text-balance max-w-3xl text-gray-500">
+ Inspired by the coolest
+ <button
+ className="ml-2 bg-gray-100 text-black px-2 py-1 rounded-3xl hover:bg-gray-200"
+ onClick={() =>
+ window.open(
+ "https://midday.ai/pitch",
+ "_blank",
+ "noopener,noreferrer",
+ )
+ }
+ >
+ Midday Deck
+ </button>
+ </p>
+
+ {/* <h2 className="text-lg font-normal mt-3 mb-4 text-pink-600">
+ Deck example link
+ <br />
+ </h2> */}
+
+ {/* <Accordion sections={sections} /> */}
+ {/* <div className="my-4">
+ <Link
+ href={"/"}
+ className="bg-pink-600 font-medium text-xs rounded-md w-full text-pink-700 px-4 py-2 hover:bg-purple-400 disabled:bg-purple-500 bg-opacity-20"
+ >
+ See wedding plan example
+ </Link>
+ </div> */}
+ </div>
+
+ <div className="flex flex-col w-full md:w-1/2 mt-4 md:mt-0 ">
+ <div className="bg-white p-4 md:p-6 shadow rounded-lg">
+ <p className="text-sm my-2 mx-1 font-normal text-balance max-w-3xl">
+ Fill quick steps in 1 minute
+ </p>
+ {/* Fields and buttons based on the step */}
+ <div className="flex justify-between w-full">
+ {Array.from({ length: 5 }).map((_, index) => (
+ <div
+ key={index}
+ className={`w-1/4 h-2 mx-1 rounded-full overflow-hidden ${
+ index < step ? "bg-orange-500" : "bg-gray-300"
+ }`}
+ />
+ ))}
+ </div>
+ {step === 1 && (
+ <>
+ <h3 className="mt-6 font-semibold text-gray-700 text-base">
+ What is your startup name?
+ </h3>
+
+ <div className="w-full my-1 mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Company
+ company={company}
+ setCompany={setCompany}
+ />
+ </div>
+ </div>
+ </div>
+ <h3 className="mt-4 py-1 font-semibold text-gray-700 text-base">
+ What is one line description?
+ </h3>
+ <div className="w-full my-1 mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Description
+ description={description}
+ setDescription={setDescription}
+ />
+ </div>
+ </div>
+ </div>
+
+ <div className="my-4">
+ <button
+ onClick={handleNextClick}
+ className="bg-black text-base rounded-md w-full text-white px-4 py-2 hover:bg-orange-600"
+ >
+ To step 2 →
+ </button>
+ </div>
+ </>
+ )}
+ {step === 2 && (
+ <>
+ <div className="w-full mt-6 mx-auto">
+ <h3 className="text-sm my-1 font-semibold text-gray-700">
+ What problem you solve?
+ </h3>
+
+ <div className="w-full my-1 mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Problem
+ problem={problem}
+ setProblem={setProblem}
+ />
+ </div>
+ </div>
+ </div>
+
+ <h3 className="text-sm mt-4 py-1 font-semibold text-gray-700">
+ How this solutions helps to solve the problem?
+ </h3>
+
+ <Solution
+ solution={solution}
+ setSolution={setSolution}
+ />
+ </div>
+
+ <div className="my-4">
+ <button
+ onClick={handleNextClick}
+ className="bg-black text-base rounded-md w-full text-white px-4 py-2 hover:bg-orange-600"
+ >
+ To step 3
+ </button>
+ </div>
+ </>
+ )}
+ {step === 3 && (
+ <>
+ <h3 className="text-sm mt-4 py-1 font-semibold text-gray-700">
+ What are your current metrics?
+ </h3>
+ <h3 className="text-xs mt-1 py-1 font-normal text-gray-500">
+ Revenue/MRR
+ </h3>
+ <div className="w-full mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <BudgetCounter
+ budget={budget}
+ setBudget={setBudget}
+ />
+ </div>
+ </div>
+ </div>
+ <div className=" ">
+ {" "}
+ <Mrr mrr={mrr} setMrr={setMrr} />
+ </div>
+
+ <h3 className="text-xs mt-4 py-1 font-normal text-gray-500">
+ Users
+ </h3>
+ <div className="w-full mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Metric2
+ metric2={metric2}
+ setMetric2={setMetric2}
+ />
+ </div>
+ </div>
+ </div>
+
+ <div className="w-full mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Users users={users} setUsers={setUsers} />
+ </div>
+ </div>
+ </div>
+ <div className="my-4">
+ <button
+ onClick={handleNextClick}
+ className="bg-black text-base rounded-md w-full text-white px-4 py-2 hover:bg-orange-600"
+ >
+ To step 3 →
+ </button>
+ </div>
+ </>
+ )}
+ {step === 4 && (
+ <>
+ <h3 className="text-sm mt-4 py-1 font-semibold text-gray-700">
+ Two more please
+ </h3>
+ <h3 className="text-xs mt-1 py-1 font-normal text-gray-500">
+ Community
+ </h3>
+
+ <div className="w-full mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Community1
+ community1={community1}
+ setCommunity1={setCommunity1}
+ />
+ </div>
+ </div>
+ </div>
+ <div>
+ {" "}
+ <Community
+ community={community}
+ setCommunity={setCommunity}
+ />
+ </div>
+
+ <h3 className="text-xs mt-4 py-1 font-normal text-gray-500">
+ Your core metric specific to your businness
+ </h3>
+ <div className="w-full mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="w-1/3 pr-2">
+ {/* This div takes 1/3 of the space */}
+ <Special2
+ special2={special2}
+ setSpecial2={setSpecial2}
+ />
+ </div>
+ <div className="w-2/3 ">
+ {" "}
+ {/* This div takes 2/3 of the space */}
+ <Special1
+ special1={special1}
+ setSpecial1={setSpecial1}
+ />
+ </div>
+ </div>
+ </div>
+
+ <div className="my-4">
+ <button
+ onClick={handleNextClick}
+ className="bg-black text-base rounded-md w-full text-white px-4 py-2 hover:bg-orange-600"
+ >
+ To last step →
+ </button>
+ </div>
+ </>
+ )}
+ {step === 5 && (
+ <>
+ <h3 className="mt-6 font-semibold text-gray-700 text-base">
+ What email to contact on the deck? (we not saving
+ your email)
+ </h3>
+
+ <div className="w-full my-1 mx-auto">
+ <div className="flex justify-between space-x-2">
+ <div className="grow">
+ <Email email={email} setEmail={setEmail} />
+ </div>
+ </div>
+ </div>
+ {/* <button onClick={handlePreviousClick} className="...">
+ Previous
+ </button> */}
+ <div className="my-4">
+ <button
+ disabled={loading}
+ onClick={saveData}
+ className="bg-black text-base rounded-md w-full text-white px-4 py-2 hover:bg-orange-600"
+ >
+ {loading && <LoadingDots color="white" />}
+ {!loading && `Get my pitch deck`}
+ </button>
+ </div>
+ </>
+ )}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
</div>
</>
);