Untitled

1주차 숙제는 로그인하기 버튼을 위와같이 꾸미는 것 입니다!

button 클래스로 myBtn으로, width는 위 사진과 동일하게, height는 50px, 배경색은 brown이라는 힌트를 주셨습니다! (힌트가 곧 정답이네요..!)

(참고로 저는 사진width를 튜터님과 다르게 400px로 주었답니다!)

<!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">
  <title>Document</title>
  <style>
    .wrap {
      width: 400px;
      margin: auto;
    }
    .text {
      background-image: url("<https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg>");
      background-size: cover;
      background-position: center;
      width: 400px;
      height: 300px;
      text-align: center;
      border-radius: 10px;
      padding-top: 20px;
    }
    .title,
    .text p {
      color: white;
    }
    .myBtn {
      width: 400px;
      height: 50px;
      background-color: brown;
      color: white;
      border-radius: 10px;
    }
  </style>
</head>
<body>
  <div class="wrap">
    <div class="text">
      <h1 class="title">로그인 페이지</h1>
      <p>아이디, 비밀번호를 입력해주세요</p>
    </div>
    <div class="login">
      <p>ID: <input type="text" class="login-form"> </p>
      <p>Password: <input type="password" class="login-form"></p>
      <button class="myBtn">로그인하기</button>
    </div>
  </div>
</body>
</html>

숙제결과.PNG

힌트를 참고하여 숙제를 해결하였습니다!

숙제를 제출하고 나니 1주차 강의 요약본이 들어있는 노션 링크를 주시네요!