04ログインページの作成


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>로그인페이지</title>
    <style>
        .mytitle {
            background-color: green;

            width: 300px;
            height: 200px;

            color: white;
            text-align: center;

            background-image: url("https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg");
            background-size: cover;
            background-position: center;

            border-radius: 10px;

            padding-top: 20px;
        }

        .wrap {
            width: 300px;
            margin: auto;
        }

        .mybtn {
            width: 100px;
            margin: auto;
            display: block;
        }

        .red-font {
            color: red;
            font-size: 16px;
        }

    </style>
</head>
<body>
    <div class="wrap">
        <div class="mytitle">
            <h1>로그인페이지</h1>
            <h5>아이디, 패스워드를 입력해주세요</h5>
        </div>

        <p>ID: <input type="text"/></p>
        <p>PW: <input type="text"/></p>
        <button class="mybtn red-font">로그인하기</button>
    </div>

</body>
</html>

アプリケーション
  • フォント
  • <style> 아래의 * 클래스는 전체적으로 적용한다는 의미

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>로그인페이지</title>
        <link href="https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap" rel="stylesheet">
        <style>
            * {
                font-family: 'Do Hyeon', sans-serif;
            }
            .mytitle {
                background-color: green;
    
                width: 300px;
                height: 200px;
    
                color: white;
                text-align: center;
    
                background-image: url("https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg");
                background-size: cover;
                background-position: center;
    
                border-radius: 10px;
    
                padding-top: 20px;
            }
    
            .wrap {
                width: 300px;
                margin: auto;
            }
    
            .mybtn {
                width: 100px;
                margin: auto;
                display: block;
            }
    
            .red-font {
                color: red;
                font-size: 16px;
            }
    
        </style>
    </head>
    <body>
        <div class="wrap">
            <div class="mytitle">
                <h1>로그인페이지</h1>
                <h5>아이디, 패스워드를 입력해주세요</h5>
            </div>
    
            <p>ID: <input type="text"/></p>
            <p>PW: <input type="text"/></p>
            <button class="mybtn red-font">로그인하기</button>
        </div>
    
    </body>
    </html>