카카오 로그인 화면 구현

sang one leee·2023년 2월 20일
0

Html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="homework.css" />
    <title>카카오 로그인</title>
</head>
<body>
    <section>
        <h1 id="logo">kakao</h1>
        <form id="login-form">
        <div id="input-container">
            <input id="get-id" type="text" placeholder="카카오계정(이메일 또는 전화번호)" />
            <div id="divide"></div>
            <input id="get-pw" type="password" placeholder="비밀번호" />
            <div id="divide2"></div>
        </div>
        <div id="status">
            <input type="checkbox" id="checkbox" name="test"/> 
            <label for="checkbox" id="test-checkbox"></label>
            <span> 로그인 상태유지</span>
        </div>
        <div id="choose-login">
            <button id="login-btn">로그인</button>
            <div id="or-container">
            <span class="or-divider"></span>
            <span id="or">또는</span>
            <span class="or-divider"></span>
            </div>
            <button id="qr-btn">QR코드로 로그인</button>
        </div>
        <div id="setting-container">
            <span id="register">회원가입</span>
            <span id="kakao">카카오 계정</span>
            <span id="set-divider"></span>
            <span id="find-pw">비밀번호 찾기</span>
          </div>    
        </form>
    </section>
</body>
</html>

CSS

#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body {
    margin: 0;
    width: 100vw;
    height: 100vh;
  }


#logo {
    margin-top: 107px;
    font-size: 43px;
    font-weight: 900;
    margin-right: 170px;
}

#input-container {
    display: flex;
    flex-direction: column;
    width: 300px;
    
    overflow: hidden;
    margin-bottom: 22px;
}

#get-id {
  border: none;
  border-radius: none;
  padding: 5px 10px 5px 13px;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  margin-bottom: 10px;
}

#get-pw{
  border: none;
  padding: 5px 10px 5px 13px;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#divide {
  width: 100%;
  height: 1px;
  background-color: #c6c6c6;
}

#divide2 {
  width: 100%;
  height: 1px;
  background-color: #c6c6c6;
}

#status {
  margin-right: 170px;
  display: flex;
  flex-direction: row;
  align-items: center;

}

#checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: none;
}

#choose-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

#login-btn {
  color: black;
  background-color: rgb(242, 242, 12);
  border: 1px solid rgb(242, 242, 12);
  border-radius: 4px;
  padding: 13px ;
  line-height: 24px;
  font-size: 20px;
  width: 310px;
  
}

#or {
  margin: 7px 10px;
  min-width: fit-content;
  
}

#qr-btn {
  color: black;
  background-color: rgb(232, 232, 232);
  border: 1px solid rgb(232, 232, 232);
  border-radius: 4px;
  padding: 13px ;
  line-height: 24px;
  font-size: 20px;
  width: 310px;
}

#test-checkbox {
  border: 1px solid #c6c6c6;
  width: 20px;
  height: 20px; 
  display: block; 
  margin-right: 15px;
  border-radius: 50%;
  
}

#checkbox:checked +#test-checkbox {
  background-color: rgb(242, 242, 12) ;
  
} 

#or-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 15px 0;
}

.or-divider {
  width: 100%;
  height: 1px;
  background-color: #c6c6c6;
}

#setting-container {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
  width: 100%;
}

#register {
  margin-right: auto;
}

#set-divider {
  height: 100%;
  width: 1px;
  background-color: #c6c6c6;
  margin: 0 7px;
}

profile
코린이 화이팅

0개의 댓글