Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oh-x-accounts #65

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 34 additions & 17 deletions src/components/CreateAccount.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
import React from "react";
import {useState} from "react";

function FinancialLiteracyForm(props: any) {
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")

const [showPassword, setShowPassword] = useState(false);

const togglePasswordVisibility = () => {
setShowPassword(!showPassword);
};

return (
<section className="bg-white">
<header className="flex flex-row items-stretch max-md:flex-col max-md:items-stretch max-md:gap-0">
<div className="flex flex-col items-stretch w-[64%] max-md:w-full max-md:ml-0">
<section className="bg-white h-screen w-screen">
<header className="flex">
<div className="grow flex flex-col items-stretch">
<div className="flex flex-col items-stretch max-md:max-w-full">
<div className="bg-neutral-100 flex w-full items-stretch justify-between gap-5 pl-9 pr-16 py-8 max-md:max-w-full max-md:flex-wrap max-md:px-5">
<div className="items-stretch flex justify-between gap-4">
<div className="flex w-14 shrink-0 h-14 flex-col rounded-[50%]" />
<div className="text-black text-2xl font-extrabold leading-9 self-center grow whitespace-nowrap my-auto">
<div className="bg-neutral-100 flex w-full items-center justify-between py-8 p-10">
<div className="flex justify-between items-center gap-4">
<div className="flex w-14 shrink-0 h-14 flex-col rounded-[50%] bg-neutral-400" />
<div className="text-black text-2xl font-extrabold">
Compound
</div>
</div>
<div className="text-black text-center text-base leading-5 self-center grow whitespace-nowrap my-auto">
<div className="text-black">
Already have an account?{" "}
<a href="" className="text-blue-500">
Sign in
</a>
</div>
</div>
<div className="self-center flex w-[573px] max-w-full flex-col mt-36 px-5 max-md:mt-10">
<h1 className="text-black text-4xl font-extrabold leading-[51px] self-stretch ml-0 mr-0 whitespace-nowrap max-md:max-w-full">
<div className="flex w-full flex-col mt-10 px-5 max-md:mt-10">
<h1 className="text-black text-4xl font-extrabold max-w-48 mb-5 mx-auto">
Your start to financial literacy.
</h1>
<p className="text-black text-base font-medium leading-6 self-stretch -mr-5 mt-7 max-md:max-w-full">
Unlock your adventure to coins, confidence, and a wealth of
<p className="text-black font-medium max-w-48 mx-auto text-center">
Unlock your adventure to coins, <br></br>
confidence, and a wealth of
knowledge.
</p>
<label
Expand All @@ -41,12 +51,15 @@ function FinancialLiteracyForm(props: any) {
className="aspect-square object-contain object-center w-6 overflow-hidden shrink-0 max-w-full"
alt="Email Icon"
/>
<div className="text-zinc-900 text-base leading-6 grow shrink basis-auto">
<div className="text-zinc-900 text-base w-full">
<input
type="email"
id="email"
name="email"
placeholder="Email"
className="w-full"
value={email}
onChange={(e) => setEmail(e.target.value)}
/>
</div>
</div>
Expand All @@ -59,17 +72,21 @@ function FinancialLiteracyForm(props: any) {
<div className="items-stretch self-center border-[color:var(--Medium-gray,#B2B9C0)] bg-white flex w-[408px] max-w-full gap-2.5 mt-2 px-4 py-2 border-2 border-solid">
<div className="text-zinc-900 text-base leading-6 grow shrink basis-auto">
<input
type="password"
type={showPassword ? 'text' : 'password'}
id="password"
name="password"
placeholder="Password"
className="w-full"
value={password}
onChange={(e) => setPassword(e.target.value)}
/>
</div>
<img
loading="lazy"
src="https://cdn.builder.io/api/v1/image/assets/TEMP/78cb4d33-f456-43c6-bd15-c05a56503213?apiKey=af7b8d767d8745b3a433de5edc8cf82c&"
className="aspect-square object-contain object-center w-6 overflow-hidden shrink-0 max-w-full"
alt="Password Icon"
onClick={togglePasswordVisibility}
/>
</div>
<a
Expand All @@ -87,11 +104,11 @@ function FinancialLiteracyForm(props: any) {
</div>
</div>
</div>
<div className="flex flex-col items-stretch w-[36%] ml-5 max-md:w-full max-md:ml-0">
<div className="flex grow-0 flex-col items-stretch">
<img
loading="lazy"
src="https://cdn.builder.io/api/v1/image/assets/TEMP/3b927267-194e-4d7c-833b-e6068dd9aca1?apiKey=af7b8d767d8745b3a433de5edc8cf82c&"
className="aspect-[0.56] object-contain object-center w-full items-start overflow-hidden grow max-md:max-w-full"
className="h-screen"
alt="Financial Literacy Image"
/>
</div>
Expand Down