Skip to content

Commit

Permalink
Merge pull request #36 from SYLVIANNORUKA/institution-page
Browse files Browse the repository at this point in the history
feat: Implemented the  institution page
  • Loading branch information
ONEONUORA authored Jan 24, 2025
2 parents 546acb2 + 7257169 commit 95f7a68
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 1 deletion.
70 changes: 70 additions & 0 deletions src/app/account/onboarding/institution/institution.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
"use client";
import Input from "@/components/Forms/Input";
import React from "react";
import TextArea from "@/components/Forms/TextArea";
import Checkbox from "@/components/Forms/Checkbox";
import Button from "@/components/Forms/Button";



function Institution() {
const handleContinue = () => {};

return (
<div className="grid grid-cols-1 md:grid-cols-5 h-screen">
<div className="hidden md:block hexagon-img border-r-2 border-[#1D1E2B] md:col-span-2 h-screen"></div>
<div className="col-span-1 md:col-span-3 h-screen overflow-y-auto py-10 md:py-20 px-5 md:px-8">
<div className="flex flex-col justify-center items-center px-3 md:px-0">
<div className="header-details text-center">
<h2 className="text-white font-UbuntuBold text-[1.5rem] mb-2">
Build your profile as institution
</h2>
<p className="text-grayText text-[0.875rem]">
Enter your professional details
</p>
</div>
<div className="flex flex-col gap-6 w-full max-w-md">
<div className="mt-5 md:mt-10 w-full">
<Input
type="text"
name="Title"
placeholder="Enter name of institution"
label="Name of institution"
onChange={()=>{}}
value=""
/>
</div>
<div className="w-full">
<TextArea
name="bio"
placeholder="Description...."
label="Brief Bio"
onChange={()=>{}}
value=""
/>
</div>
<div className="w-full">
<Input
type="email"
name="email"
placeholder="Enter your email"
label="Email"
onChange={()=>{}}
value=""
/>
</div>

<div className="my-2">
<Checkbox isAgreement={true} privacyUrl="" termsUrl="" />
</div>
<div className="my-2 w-full">
<Button label="CONTINUE" onButtonClick={handleContinue} />
</div>
</div>
</div>
</div>
</div>
);
}

export default Institution;
10 changes: 10 additions & 0 deletions src/app/account/onboarding/institution/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const Layout = ({ children }: { children: React.ReactNode }) => {
return (
<>
<main className="grow">{children}</main>
</>
);
};

export default Layout;

12 changes: 12 additions & 0 deletions src/app/account/onboarding/institution/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import Institution from './institution'

function Page() {
return (
<div>
<Institution />
</div>
)
}

export default Page
2 changes: 1 addition & 1 deletion src/components/Forms/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function TextArea({
placeholder={placeholder}
value={value}
onChange={onChange}
className="bg-transparent border-[1px] outline-none border-[#252625] text-white text-[0.875rem] w-full md:w-[26rem] px-4 py-[0.75rem] rounded-[0.5rem] resize-none"
className="bg-transparent border-[1px] outline-none border-[#252625] text-white text-[0.875rem] w-full md:w-[26rem] px-4 py-[0.75rem] rounded-[0.5rem] resize-none h-[10em]"
/>
</div>
);
Expand Down

0 comments on commit 95f7a68

Please sign in to comment.