From 8fe8a5c5b2ccaa01e9b9528dd67c5d2bdd89ec67 Mon Sep 17 00:00:00 2001 From: Adamu Jethro Date: Fri, 24 Jan 2025 16:05:14 +0100 Subject: [PATCH] tutor-page-screen --- src/app/account/onboarding/tutor/layout.tsx | 16 ++-- src/app/account/onboarding/tutor/page.tsx | 3 +- src/app/account/onboarding/tutor/tutor.tsx | 86 +++++++++++++++++++-- src/app/globals.css | 32 ++++++++ src/app/layout.tsx | 4 - src/app/page.tsx | 4 + src/components/Forms/Button.tsx | 22 ++++++ src/components/Forms/Checkbox.tsx | 64 +++++++++++++++ src/components/Forms/Input.tsx | 36 +++++++++ src/components/Forms/Selector.tsx | 52 +++++++++++++ src/components/Forms/TextArea.tsx | 33 ++++++++ src/public/img/hexagon.svg | 8 ++ tailwind.config.ts | 2 + 13 files changed, 345 insertions(+), 17 deletions(-) create mode 100644 src/components/Forms/Button.tsx create mode 100644 src/components/Forms/Checkbox.tsx create mode 100644 src/components/Forms/Input.tsx create mode 100644 src/components/Forms/Selector.tsx create mode 100644 src/components/Forms/TextArea.tsx create mode 100644 src/public/img/hexagon.svg diff --git a/src/app/account/onboarding/tutor/layout.tsx b/src/app/account/onboarding/tutor/layout.tsx index ebefd6b..1fd018a 100644 --- a/src/app/account/onboarding/tutor/layout.tsx +++ b/src/app/account/onboarding/tutor/layout.tsx @@ -1,7 +1,9 @@ -export default function Layout({ children }: { children: React.ReactNode }) { - return ( -
- {children} -
- ); - } \ No newline at end of file +const Layout = ({ children }: { children: React.ReactNode }) => { + return ( + <> +
{children}
+ + ); +}; + +export default Layout; diff --git a/src/app/account/onboarding/tutor/page.tsx b/src/app/account/onboarding/tutor/page.tsx index 232788d..b980007 100644 --- a/src/app/account/onboarding/tutor/page.tsx +++ b/src/app/account/onboarding/tutor/page.tsx @@ -1,9 +1,10 @@ import React from 'react' +import Tutor from './tutor' function Page() { return (
- +
) } diff --git a/src/app/account/onboarding/tutor/tutor.tsx b/src/app/account/onboarding/tutor/tutor.tsx index 32bae09..8e36d90 100644 --- a/src/app/account/onboarding/tutor/tutor.tsx +++ b/src/app/account/onboarding/tutor/tutor.tsx @@ -1,11 +1,87 @@ -import React from 'react' +"use client"; +import Input from "@/components/Forms/Input"; +import React from "react"; +import TextArea from "@/components/Forms/TextArea"; +import Selector from "@/components/Forms/Selector"; +import Checkbox from "@/components/Forms/Checkbox"; +import Button from "@/components/Forms/Button"; + +const skills = [ + "UI/UX", + "Solidity", + "TypeScript", + "Cairo", + "Rust", + "React.js", + "Tailwind CSS", + "Node JS", +]; function Tutor() { + const handleSkillSelection = (selectedSkills: string[]) => {}; + const handleContinue = () => {}; + return ( -
- +
+
+
+
+
+

+ Build your profile as tutor +

+

+ Enter your professional details +

+
+
+
+ +
+
+