+
)}
diff --git a/apps/core/app/(landing)/become-auther/_components/auther-result.tsx b/apps/core/app/(landing)/become-auther/_components/auther-result.tsx
index db5ee7c3..1ef58137 100644
--- a/apps/core/app/(landing)/become-auther/_components/auther-result.tsx
+++ b/apps/core/app/(landing)/become-auther/_components/auther-result.tsx
@@ -2,12 +2,13 @@ import { Typography } from "@repo/ui/components";
import { AutherLayout } from "./auther-layout";
import Image from "next/image";
import BecomeAnAuthorimage from "../../_assets/become-auther.svg";
+import Vector3d from "./vector3d";
const AutherResult = () => {
return (
<>
-
+
Your Request Will Be Reviewed
@@ -32,16 +33,8 @@ const AutherResult = () => {
patience during this process.
-
-
-
-
+
+
>
);
diff --git a/apps/core/app/(landing)/become-auther/_components/vector3d.tsx b/apps/core/app/(landing)/become-auther/_components/vector3d.tsx
new file mode 100644
index 00000000..108c06e4
--- /dev/null
+++ b/apps/core/app/(landing)/become-auther/_components/vector3d.tsx
@@ -0,0 +1,58 @@
+import Image from "next/image";
+import BecomeAnAuthorimage from "../../_assets/be.svg";
+import logoBrand from "../../_assets/logo-brand.svg";
+import { CardBody, CardContainer, CardItem } from "./3d-card";
+
+
+const Vector3d = () => {
+
+
+
+
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/*
*/}
+
+
+
+
+
+
+
+
+ );
+};
+
+export default Vector3d;
diff --git a/apps/core/app/(landing)/become-auther/layout.tsx b/apps/core/app/(landing)/become-auther/layout.tsx
new file mode 100644
index 00000000..3d683b7a
--- /dev/null
+++ b/apps/core/app/(landing)/become-auther/layout.tsx
@@ -0,0 +1,18 @@
+import { ReactNode } from "react";
+
+export default function BecomeAuthorLayout({
+ children,
+}: {
+ children: ReactNode;
+}) {
+ return (
+
+ );
+}
\ No newline at end of file
diff --git a/apps/core/app/(landing)/become-auther/page.tsx b/apps/core/app/(landing)/become-auther/page.tsx
index f36118f9..f90d528d 100644
--- a/apps/core/app/(landing)/become-auther/page.tsx
+++ b/apps/core/app/(landing)/become-auther/page.tsx
@@ -4,24 +4,28 @@ import {
AccordionContent,
AccordionItem,
AccordionTrigger,
+ Typography,
} from "@repo/ui/components";
import AutherForm from "./_components/auther-form";
+import { CardBody, CardContainer, CardItem } from "./_components/3d-card";
+import BecomeAnAuthorimage from "../_assets/be.svg";
+import logoBrand from "../_assets/logo-brand.svg";
+
+import Image from "next/image";
+import Vector3d from "./_components/vector3d";
const BecomeAuther = () => {
return (
-
-
+
- {/* iteam section */}
-
-
-
Frequently asked Questions!
-
- {/* accordion item */}
-
+
*/}
+
);
};
diff --git a/packages/apis/src/services/core/api/request-author/post/post-request-author.schema.ts b/packages/apis/src/services/core/api/request-author/post/post-request-author.schema.ts
index b0835829..5388b922 100644
--- a/packages/apis/src/services/core/api/request-author/post/post-request-author.schema.ts
+++ b/packages/apis/src/services/core/api/request-author/post/post-request-author.schema.ts
@@ -3,35 +3,31 @@ import { z } from "zod";
// Request
export const postRequestAuthorRequestSchemaTransformed = z
.object({
- // keyPayload: z.string(),
- email : z.string(),
- firstName: z.string(),
- lastName : z.string(),
- link : z.string(),
- file : z.number(),
- information : z.string(),
- portfolioLink : z.string(),
+ email: z.string().email("Invalid email address"),
+ firstName: z.string().min(1, "First name is required"),
+ lastName: z.string().min(1, "Last name is required"),
+ portfolioLink: z.string().url("Invalid portfolio URL"),
+ file: z.any(), // Changed to any to handle File object
+ information: z.string().optional(),
})
.transform((data) => ({
first_name: data.firstName,
- last_name: data.lastName,
- email: data.email,
- link: data.link,
- file: data.file,
- information: data.information,
- portfolioLink: data.portfolioLink
- }));
+ last_name: data.lastName,
+ email: data.email,
+ link: data.portfolioLink,
+ file: data.file ? 1 : 0, // Convert file to number
+ information: data.information || "",
+ }));
// Response
export const postRequestAuthorResponseSchemaTransofrmed = z
.object({
- // keyBody: z.string(),
- firstName : z.string(),
- lastName : z.string(),
- email : z.string(),
- link : z.string(),
- file : z.number(),
- information : z.string(),
+ firstName: z.string(),
+ lastName: z.string(),
+ email: z.string(),
+ link: z.string(),
+ file: z.number(),
+ information: z.string(),
})
.transform((data) => data);
diff --git a/packages/ui/src/components/atoms/textarea.tsx b/packages/ui/src/components/atoms/textarea.tsx
index 7a1371d5..d1334db9 100644
--- a/packages/ui/src/components/atoms/textarea.tsx
+++ b/packages/ui/src/components/atoms/textarea.tsx
@@ -14,10 +14,10 @@ const Textarea = React.forwardRef
(
className={cn(
"flex min-h-[80px] bg-card w-full rounded-md border px-3 py-2 text-sm transition-colors",
"bg-background placeholder:text-muted-foreground",
- "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
+ "focus:outline-primary focus: focus:ring-primary focus:ring-offset-2",
"disabled:cursor-not-allowed disabled:opacity-50",
error
- ? "border-destructive text-destructive focus:ring-destructive"
+ ? "border-primary text-primary focus:ring-primary"
: "border-input text-foreground",
className
)}
diff --git a/packages/ui/src/lib/utils.ts b/packages/ui/src/lib/utils.ts
index d084ccad..bf3b3e79 100644
--- a/packages/ui/src/lib/utils.ts
+++ b/packages/ui/src/lib/utils.ts
@@ -4,3 +4,5 @@ import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
+
+