chore: Remove favicon and enhance global styles
- Delete unused favicon.ico file to clean up project assets - Add smooth scrolling behavior to html element for improved user experience - Refactor box-shadow property in Toastify styles for better readability - Update button states in Contact Us and Inquiries forms to include hcaptchaToken validation
This commit is contained in:
@@ -132,7 +132,7 @@ const ContactUsForm = ({
|
|||||||
<div className={`${colSpanClass} flex justify-end`}>
|
<div className={`${colSpanClass} flex justify-end`}>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={!isValid || isLoading}
|
disabled={!isValid || isLoading || !hcaptchaToken}
|
||||||
className="bg-(--primary) cursor-pointer w-fit text-white rounded-full py-4 px-6 flex justify-center items-center text-center disabled:opacity-60 disabled:cursor-not-allowed">
|
className="bg-(--primary) cursor-pointer w-fit text-white rounded-full py-4 px-6 flex justify-center items-center text-center disabled:opacity-60 disabled:cursor-not-allowed">
|
||||||
{isLoading ? <Loading /> : buttonText}
|
{isLoading ? <Loading /> : buttonText}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -90,9 +90,13 @@ const InquiresForm = ({
|
|||||||
}
|
}
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = (await api.post("inquiries", { ...data })).data;
|
const response = (
|
||||||
|
await api.post("inquiries", { ...data, hcaptcha_token: hcaptchaToken })
|
||||||
|
).data;
|
||||||
toast.success(response.message);
|
toast.success(response.message);
|
||||||
reset();
|
reset();
|
||||||
|
setHcaptchaToken(null);
|
||||||
|
captchaRef.current?.resetCaptcha();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleApiError(error, setError, toast.error, formFieldNames);
|
handleApiError(error, setError, toast.error, formFieldNames);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -219,7 +223,7 @@ const InquiresForm = ({
|
|||||||
<div className={`${colSpanClass} flex justify-end`}>
|
<div className={`${colSpanClass} flex justify-end`}>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={!isValid || isLoading}
|
disabled={!isValid || isLoading || !hcaptchaToken}
|
||||||
className="bg-(--primary) cursor-pointer w-fit text-white rounded-full py-4 px-6 disabled:opacity-60 disabled:cursor-not-allowed">
|
className="bg-(--primary) cursor-pointer w-fit text-white rounded-full py-4 px-6 disabled:opacity-60 disabled:cursor-not-allowed">
|
||||||
{isLoading ? <Loading /> : submitText}
|
{isLoading ? <Loading /> : submitText}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB |
+6
-1
@@ -9,6 +9,10 @@
|
|||||||
body {
|
body {
|
||||||
font-family: "Inter", sans-serif;
|
font-family: "Inter", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
@theme {
|
@theme {
|
||||||
--background: #171717;
|
--background: #171717;
|
||||||
--foreground: #ffffff;
|
--foreground: #ffffff;
|
||||||
@@ -31,7 +35,8 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dark .Toastify__toast {
|
.dark .Toastify__toast {
|
||||||
box-shadow: 0 20px 25px -5px rgb(255 255 255 / 0.07),
|
box-shadow:
|
||||||
|
0 20px 25px -5px rgb(255 255 255 / 0.07),
|
||||||
0 8px 10px -6px rgb(255 255 255 / 0.05) !important;
|
0 8px 10px -6px rgb(255 255 255 / 0.05) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Geist, Geist_Mono } from "next/font/google";
|
import { Geist, Geist_Mono } from "next/font/google";
|
||||||
import { ToastContainer, Zoom } from "react-toastify";
|
|
||||||
import "../globals.css";
|
|
||||||
import { Suspense } from "react";
|
import { Suspense } from "react";
|
||||||
|
import { ToastContainer, Zoom } from "react-toastify";
|
||||||
import GoogleAnalytics from "../_components/GoogleAnalytics";
|
import GoogleAnalytics from "../_components/GoogleAnalytics";
|
||||||
|
import "../globals.css";
|
||||||
const geistSans = Geist({
|
const geistSans = Geist({
|
||||||
variable: "--font-geist-sans",
|
variable: "--font-geist-sans",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
|
|||||||
@@ -142,11 +142,11 @@ export default function Home() {
|
|||||||
</p>
|
</p>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<div className="flex justify-start text-white">
|
<div className="flex justify-start text-white">
|
||||||
<button
|
<Link
|
||||||
type="button"
|
href={"#footer"}
|
||||||
className="w-2/3 lg:w-fit capitalize bg-(--primary) rounded-4xl py-4 px-6">
|
className="w-2/3 lg:w-fit capitalize bg-(--primary) rounded-4xl py-4 px-6 cursor-pointer">
|
||||||
Get early access
|
Get early access
|
||||||
</button>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div className="m-auto w-xs lg:m-0 lg:w-auto -z-20 relative flex justify-center h-[650px] lg:h-[750px] lg:mr-28">
|
<div className="m-auto w-xs lg:m-0 lg:w-auto -z-20 relative flex justify-center h-[650px] lg:h-[750px] lg:mr-28">
|
||||||
@@ -295,7 +295,9 @@ export default function Home() {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<footer className="relative h-full bg-[url('/footer-bg.svg')] bg-cover bg-no-repeat mt-96">
|
<footer
|
||||||
|
className="relative h-full bg-[url('/footer-bg.svg')] bg-cover bg-no-repeat mt-96"
|
||||||
|
id="footer">
|
||||||
<div
|
<div
|
||||||
className="absolute w-full -top-[355px] lg:-top-72 h-[600px] z-[-10] bg-[url('/bottom-bg.svg')] bg-contain bg-no-repeat bg-right"
|
className="absolute w-full -top-[355px] lg:-top-72 h-[600px] z-[-10] bg-[url('/bottom-bg.svg')] bg-contain bg-no-repeat bg-right"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user