login
This commit is contained in:
33
src/app/components/LoginForm.tsx
Normal file
33
src/app/components/LoginForm.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
'use client';
|
||||
|
||||
import axios from "axios";
|
||||
import { useState } from "react";
|
||||
|
||||
const LoginForm = () => {
|
||||
const [id, setId] = useState('') //ID
|
||||
const [pw, setPw] = useState('') //PW
|
||||
const [param, setParam] = useState()
|
||||
|
||||
const login = () => {
|
||||
|
||||
axios.post('login/oauth-kakao', {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<input type="text"
|
||||
placeholder="ID"
|
||||
value={id}
|
||||
onChange={(e) => {setId(e.target.value)}}/>
|
||||
|
||||
<input type="password"
|
||||
placeholder="PW"
|
||||
value={pw}
|
||||
onChange={(e) => {setPw(e.target.value)}}/>
|
||||
|
||||
<button type="button" onClick={login}>로그인하기</button>
|
||||
</>
|
||||
)
|
||||
}
|
||||
2
src/app/login/page.tsx
Normal file
2
src/app/login/page.tsx
Normal file
@@ -0,0 +1,2 @@
|
||||
'use client';
|
||||
|
||||
Reference in New Issue
Block a user