import React, { useState } from 'react' import '../App.css' import { Form, Button, Row, Col, Card, Alert } from 'react-bootstrap'; import { LoginWithKakao } from '../utils/Oauth'; function SignupComp() { const cardstyled = { margin: 'auto', padding: '1em', display: 'flex', justifyContent: 'center', width: '100%', borderWidth: '3px', borderRadius: '20px', borderColor: 'rgb(110, 189, 142)', color: '#04AB70' } const inboxstyled = { display: 'flex', flexDirection: 'column', maxWidth: '80%', justifyContent: 'center', margin: 'auto', padding: '1rem' } const initValues = { email: '', name: '' } const [formValues, setFormValues] = useState(initValues) const [validated, setValidated] = useState(false) function handleChange(event) { const { name, value } = event.target setFormValues({ ...formValues, [name]: value }) } function handleSubmit(event) { const form = event.currentTarget; console.log('formValues', formValues); console.log('formValues.values', Object.values(formValues)[0].length); // console.log(form) // if (Object.values(formValues)[0].length !== 0) { //form.checkValidity() === false // event.preventDefault(); // event.stopPropagation(); // } console.log(validated) setValidated(true); // const form = event.current // setFormError(validate(formValues)) // setIsSubmit(true) } const [emailSubm, setEmailSubm] = useState(false) function handleClickSubm() { // setEmailSubm(true); const subm = document.getElementById("subm-mailSent"); subm.style.visibility = 'visible' // const aftermail = document.getElementById('AftermailSent'); // aftermail.style.display = '' } const [userExist, setUserExist] = useState(false) const [alertShow, setAlertShow] = useState(true) function CheckUserExist() { setUserExist(!userExist) } return ( Create an Account Sign up with your social media account or email address
{!userExist ? ๐Ÿ˜Š ๊ณ„์ • ์ƒ์„ฑ์ด ์™„๋ฃŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋กœ๊ทธ์ธ ํ•˜๋Ÿฌ๊ฐ€๊ธฐ โžž : ๐Ÿค” ์ด๋ฏธ ์กด์žฌํ•˜๋Š” ๊ณ„์ •์ž…๋‹ˆ๋‹ค. ๋กœ๊ทธ์ธ ํ•˜๋Ÿฌ๊ฐ€๊ธฐ โžž }


OR
KAKAO
) } export default SignupComp;