HTML/CSS 실습

박종호·2024년 1월 10일
1

FrontEnd

목록 보기
12/17

우당탕탕 로그인 페이지 만들기

🤔목표과제

똑같이 만들어보자!

코드는 진짜 너무 개판이라 수정하는 시간을 가져보기로,,,,

<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>loginPage</title>
</head>
<style>
  div {
    width: 350px;
    height: 140px;
    border-radius: 5px;
    border: 1px solid;
    border-color: #DBDBDB;
    color: #DBDBDB;
    background-color: #FFFFFF;
  }

  p {
    margin: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0em;
    text-align: left;
    color: #000000;
  }

  .log_in {
    margin: 10px;
    width: 318px;
    height: 40px;
    top: 50px;
    left: 16px;
    border-radius: 4px;
    background: #711BFF;

  }

  .login {
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0em;
    text-align: center;
    color: #FFFFFF;
  }
  .id_password{
    margin: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0em;
    text-align: left;
    color: #767676;
    border:1px;
    color: #767676;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
  }
  .sign_up{
    margin: 10px;
    margin-left: 80px;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0em;
    text-align: left;
    border:1px;
    color: #767676;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
  }

</style>
<body>
<div>

  <p>더 편리해진 위니브에 오신 것을 환영합니다.</p>
  <button type="button"class="log_in">
    <img src="../img/weniv-logo.png" height="18" width="64" alt="로고">
    <label class="login">로그인</label>
  </button>
  <br>
  <button type="button" class="id_password">
    <label>
      <img src="../img/icon-lock.png" height="16" width="16"/>
    아이디 | 비밀번호찾기</label>
  </button>

  <button type="button" class="sign_up">
    <label>
    <img src="../img/icon-user.png" height="16" width="16"/>
      회원가입
    </label>

  </button>

</div>
</body>
</html>

(진짜 길게도 썼다)

우선 테두리를 fieldset으로 만들어보자 생각했다가 와장창 박살나도

div로 만들어보자고 계획을 수정했다.

이후 p태그의 “더 편리해진 위니브에 오신 것을 환영합니다.”

를 제외한 나머지 부분들은 전부 버튼으로 만들겠다는 계획을 세우고 실행에 옮겼다.

하지만?

스크린샷 2024-01-09 170952.png

아니 얘네 어캐 떨어뜨려;

분명 배웠는데 까먹었다 flex→between…. 그 기억이 잘 안나

그래서 멘토님께 질문, 회원가입 버튼(button3)의 margin-left를 늘려버리면 어찌저찌 완성은 된다는 결론을 내렸고 실행!

우여곡절 끝에 완성!

profile
Hey🖐️

0개의 댓글

관련 채용 정보