From ebda24f072741d11da7dd5e406eb5bce069dbf6a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 15:45:05 +0700 Subject: fix --- src/lib/auth/components/Login.jsx | 5 +- src/lib/auth/components/Register.jsx | 95 ++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 src/lib/auth/components/Register.jsx (limited to 'src/lib/auth') diff --git a/src/lib/auth/components/Login.jsx b/src/lib/auth/components/Login.jsx index 971188a2..92d38c11 100644 --- a/src/lib/auth/components/Login.jsx +++ b/src/lib/auth/components/Login.jsx @@ -93,12 +93,13 @@ const Login = () => { {!isLoading ? 'Masuk' : 'Loading...'} -

+ +

Belum punya akun Indoteknik?{' '} Daftar -

+
) } diff --git a/src/lib/auth/components/Register.jsx b/src/lib/auth/components/Register.jsx new file mode 100644 index 00000000..4b8a8053 --- /dev/null +++ b/src/lib/auth/components/Register.jsx @@ -0,0 +1,95 @@ +import Image from 'next/image' +import Link from '@/core/components/elements/Link/Link' +import IndoteknikLogo from '@/images/logo.png' +import { useState } from 'react' + +const Register = () => { + const [fullname, setFullname] = useState('') + const [email, setEmail] = useState('') + const [password, setPassword] = useState('') + const [companyName, setCompanyName] = useState('') + const [isLoading, setIsLoading] = useState('') + + const handleSubmit = (e) => { + e.preventDefault() + } + + return ( +
+ + Logo Indoteknik + + +

Daftar Akun Indoteknik

+

+ Buat akun sekarang lebih mudah dan terverifikasi +

+ +
+
+ + setCompanyName(e.target.value.toUpperCase())} + placeholder='cth: INDOTEKNIK DOTCOM GEMILANG' + autoCapitalize + /> +
+ +
+ + setFullname(e.target.value)} + placeholder='John Doe' + /> +
+
+ + setEmail(e.target.value)} + placeholder='contoh@email.com' + /> +
+
+ + setPassword(e.target.value)} + placeholder='••••••••••••' + /> +
+ + +
+ +
+ Sudah punya akun Indoteknik?{' '} + + Masuk + +
+
+ ) +} + +export default Register -- cgit v1.2.3