Login.tsx 1.57 KB
Newer Older
Lee SeoYeon's avatar
0704    
Lee SeoYeon committed
1
2
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
Jiwon Yoon's avatar
Jiwon Yoon committed
3

4
// type LoginProps = {
Jiwon Yoon's avatar
Jiwon Yoon committed
5

6
7
// };

Lee SeoYeon's avatar
0704    
Lee SeoYeon committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export const Login = () => {
  // interface IUSER {
  //   email: string;
  //   password: string;
  // }

  // const [error, setError] = useState("");
  // const [disabled, setDisabled] = useState(false);
  // const [success, setSuccess] = useState(false);
  // const navigate = useNavigate();

  // function handleChange(event: type) {}

  // function handleSubmit(params: type) {}

  // if (success) {
  //   alert("회원가입 되었습니다");
  //   navigate(`../`);
  // }

  return (
    <div className="flex justify-center mt-3">
      <div className="flex flex-col space-y-4 mt-5 text-xl font-bold">
        <label className="block text-gray-700 text-sm font-bold mb-2 mt-3">
          이메일
        </label>
        <input
          className="shadow appearance-none border rounded  py-2 px-3 text-gray-70"
          id="email"
          type="email"
          placeholder="이메일을 입력하세요"
        />

        <label className="block text-gray-700 text-sm font-bold mb-2 mt-3">
          비밀번호
        </label>
        <input
          className="shadow appearance-none border rounded py-2 px-3 text-gray-70"
          id="username"
          type="password"
          placeholder="비밀번호를 입력하세요"
        />
        <div className="text-center">
          <button className="bg-themeColor text-white border rounded w-100 py-2 px-3 mt-3">
            로그인
          </button>
        </div>
Lee SeoYeon's avatar
Lee SeoYeon committed
55
      </div>
Jiwon Yoon's avatar
Jiwon Yoon committed
56
    </div>
Lee SeoYeon's avatar
0704    
Lee SeoYeon committed
57
58
  );
};