화면 꾸며보기

유요한·2022년 11월 22일
0
	<!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>Full Screen Lading Page</title>
        <link rel="preconnect" href="https://fonts.googleapis.com" />
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
        <link
            href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Questrial&display=swap"
            rel="stylesheet"
        />
        <style>
            * {
                padding: 0;
                margin: 0;
                box-sizing: border-box;
            }
            a {
                /*  부모 값을 상속을 받으라는 말*/
                color: inherit;
                text-decoration: none;
            }
            #main {
                background: url(/study03/XWXZpgV\ -\ Imgur.jpg) no-repeat;
                background-position: center;
                background-size: cover;
                width: 100vw;
                height: 100vh;
                font-family: "Questrial", sans-serif;
            }
            #contents {
                color: #fff;
                text-align: center;
                position: absolute;
                width: 100%;
                top: 50%;
                transform: translateY(-50%);
            }
            #contents h1 {
                font-family: "Dancing Script", cursive;
                font-size: 70px;
                margin-bottom: 16px;
            }
            #contents p {
                font-size: 23px;
                margin-bottom: 16px;
            }
            #contents a {
                display: inline-block;
                border: 2px solid white;
                padding: 10px 20px;
                border-radius: 20px;
                font-size: 17px;
                font-weight: bold;
            }
            #contents a:hover {
                background-color: black;
                /* opacity: 3; */
            }
            @media (max-width: 769px) {
                #contents h1 {
                    font-size: 50px;
                }
                #contents p {
                    font-size: 20px;
                }
                #contents a {
                    font-size: 14px;
                }
            }
        </style>
    </head>
    <body>
        <div id="main">
            <div id="contents">
                <h1>Simple, One Page Design</h1>
                <p>A free landing theme with video background</p>
                <a href="#">Get Started</a>
            </div>
        </div>
    </body>
</html>

profile
발전하기 위한 공부

0개의 댓글