꿀팁

[꿀팁] 구글 폰트 사용해보기

개발 공주 2023. 5. 17. 23:47
728x90

https://fonts.google.com/?subset=korean (구글폰트)

Document

로그인 페이지

아이디, 비밀번호를 입력하세요

ID :

PW :

<!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>
        @import url('https://fonts.googleapis.com/css2?family=Single+Day&display=swap');/*폰트 임포트*/
        *{
            font-family: 'Single Day', cursive;
        }<!--전체 적용 -->
        .mytitle {
            background-color: green;

            width: 300px;
            height: 200px;

            border-radius: 10px;
            color: white;

            text-align: center;

            padding: 30px 0px 0px 0px;

            background-image: url('https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg');
            background-position: center;
            background-size: cover;
        }
        .wrap {
            width: 300px;
            margin: 20px auto 0px auto;
        }
    </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>로그인하기</button>
    </div>
</body>

</html>

'꿀팁' 카테고리의 다른 글

[꿀팁] Bootstrap  (0) 2023.05.18