-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd62a41
commit 82829a1
Showing
11 changed files
with
231 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
|
||
export default function Label() { | ||
return <div>Label</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Button } from "@/core/components"; | ||
import React from "react"; | ||
|
||
export default function MobileLayoutSection() { | ||
return ( | ||
<div className="container mx-auto flex flex-col my-3"> | ||
<div className="text-center my-4"> | ||
<h2 className="text-2xl my-2">Level Up With Mobile Management.</h2> | ||
<p className="text-lg"> | ||
Manage your teams on the go! Stay on top of your game with a <br /> | ||
revolutionary mobile platform that gives you control of your team | ||
anywhere, anytime. | ||
</p> | ||
</div> | ||
|
||
{/* */} | ||
<div className="flex flex-col md:flex-row justify-between items-center bg-slate-700 text-white p-12 md:p-28 rounded-lg"> | ||
<div> | ||
<p className="text-xl md:text-3xl my-3"> | ||
500+ companies trust Workpay to <br /> | ||
automate their employee management | ||
</p> | ||
<p>Download the App on Google Play or the App Store.</p> | ||
|
||
<div className="flex gap-4 my-4"> | ||
<Button>GET IT ON Google Play</Button> | ||
<Button>Download on the AppStore</Button> | ||
</div> | ||
</div> | ||
|
||
{/* */} | ||
<div> | ||
MOBILE IMAGE | ||
<img src="" alt="" /> | ||
</div> | ||
{/* */} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,145 @@ | ||
import { useForm } from "react-hook-form"; | ||
import { useNavigate } from "@core/hooks"; | ||
|
||
import { Input } from "@core/components/input/Input"; | ||
import { Button } from "@/core/components"; | ||
|
||
import { useSignUpMutation } from "@api/services/authApi"; | ||
import { ReactNode } from "react"; | ||
import { Link } from "react-router-dom"; | ||
|
||
function RequestDemo() { | ||
const { | ||
register, | ||
handleSubmit, | ||
formState: { errors }, | ||
} = useForm(); | ||
|
||
const signUpMutation = useSignUpMutation(); | ||
const navigate = useNavigate(); // | ||
|
||
const requestDemoHandler = async (data: any) => { | ||
try { | ||
console.log(data); | ||
// await signUpMutation.mutateAsync(data); | ||
|
||
console.log("User registered successfully"); | ||
/*** */ | ||
setTimeout(() => { | ||
navigate("/dashboard"); | ||
}, 2000); | ||
/**** */ | ||
} catch (error) { | ||
console.error("Registration error:", error); | ||
} | ||
}; | ||
|
||
return ( | ||
<section id="request-demo"> | ||
<h2>Request a Demo Today!</h2> | ||
<p> | ||
The modern solution for HR, Payroll, Compliance, and Benefits built for | ||
local and remote teams. | ||
</p> | ||
{/* | ||
Form: FullName | ||
Company Name | ||
Number of Employees | ||
Phone Number(+254:.....) | ||
How did you hear about us? : Search Engine, Social Media, Ads, Blog Post, TV, Events, Referral | ||
|
||
- Terms & privacy checkboc | ||
Submit | ||
*/} | ||
<div className="w-10/12 md:w-8/12 mx-auto"> | ||
<h2 className="font-medium text-3xl">Request a Demo Today!</h2> | ||
<p> | ||
The modern solution for HR, Payroll, Compliance, and Benefits built{" "} | ||
<br /> for local and remote teams. | ||
</p> | ||
<form className="" onSubmit={handleSubmit(requestDemoHandler)}> | ||
<div className="mb-2"> | ||
<Input | ||
label="FullName" | ||
type="text" | ||
placeholder="Full Name" | ||
{...register("fullName", { required: "This field is required" })} | ||
/> | ||
{errors.fullName && ( | ||
<p className="text-red-500 mt-[-10px]"> | ||
{errors.fullName.message as ReactNode} | ||
</p> | ||
)} | ||
</div> | ||
<div className="mb-2"> | ||
<Input | ||
label="Email" | ||
type="email" | ||
placeholder="Email" | ||
{...register("password", { required: "Email is required" })} | ||
/> | ||
{errors.password && ( | ||
<p className="text-red-500 mt-[-10px]"> | ||
{errors.password.message as ReactNode} | ||
</p> | ||
)} | ||
</div> | ||
|
||
<div className="mb-2"> | ||
<Input | ||
label="Company Name" | ||
type="text" | ||
placeholder="Company Name" | ||
{...register("password", { | ||
required: "Company Name is required", | ||
})} | ||
/> | ||
{errors.password && ( | ||
<p className="text-red-500 mt-[-10px]"> | ||
{errors.password.message as ReactNode} | ||
</p> | ||
)} | ||
</div> | ||
|
||
<div className="mb-2"> | ||
<Input | ||
label="Number of Employees" | ||
type="number" | ||
placeholder="Number of Employees" | ||
{...register("password", { required: "Email is required" })} | ||
/> | ||
{errors.password && ( | ||
<p className="text-red-500 mt-[-10px]"> | ||
{errors.password.message as ReactNode} | ||
</p> | ||
)} | ||
</div> | ||
|
||
<div className="mb-2"> | ||
<Input | ||
label="Phone Number" | ||
type="tel" | ||
placeholder="254700652437" | ||
{...register("password", { required: "Phone is required" })} | ||
/> | ||
{errors.password && ( | ||
<p className="text-red-500 mt-[-10px]"> | ||
{errors.password.message as ReactNode} | ||
</p> | ||
)} | ||
</div> | ||
|
||
<div className="mb-2"> | ||
<Input | ||
label="How did You Hear about Us?" | ||
type="text" | ||
placeholder="Type Here..." | ||
{...register("password", { required: "This field is required" })} | ||
/> | ||
{errors.password && ( | ||
<p className="text-red-500 mt-[-10px]"> | ||
{errors.password.message as ReactNode} | ||
</p> | ||
)} | ||
</div> | ||
|
||
<div> | ||
<input type="checkbox" name="" id="" className="my-4" /> | ||
<label className="mx-2"> Accept terms and privacy policy</label> | ||
</div> | ||
|
||
<Button type="submit" className="w-full md:w-4/12"> | ||
{signUpMutation.isLoading ? "..." : "Book Demo"} | ||
</Button> | ||
</form> | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
export default RequestDemo | ||
export default RequestDemo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.