웹개발 종합반 1주차 숙제: 팬명록 메인 페이지 만들기

    <!doctype html>
    <html lang="en">
    
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
            integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
            crossorigin="anonymous"></script>
    
        <title>스파르타코딩클럽 | 부트스트랩 연습하기</title>
        <link href="https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap" rel="stylesheet">
        <style>
            *{
                font-family: 'Nanum Pen Script', cursive;
            }
            .mytitle{
                height: 300px; width:100%;
                background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),url("https://i.ytimg.com/vi/je4lTP9xbEs/maxresdefault.jpg");
                background-position: top; 
                color: white;
    
                
                display: flex;
                flex-direction: column; 
                justify-content: center;
                align-items: center;
            }
            .mypost{
                max-width: 500px;
                width: 95%;
                margin: 20px auto 0px auto;
                box-shadow: 0px 0px 3px 0px gray;
                padding:20px;
            }
            .mypost > .mybtn{
                margin-top: 15px;
            }
            .cards{
                max-width: 500px;
                width: 95%;
                margin: auto;
            }
            .cards > .card{
                margin-top: 10px;
            }
        </style>
    </head>
    
    <body>
        <div class="mytitle">
            <h1>빈첸(Vinxen) 팬명록</h1>
        </div>
        <div class="mypost">
            <div class="form-floating mb-3">
                <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
                <label for="floatingInput">닉네임</label>
            </div>
            <div class="form-floating">
                <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea", style="height:100px"></textarea>
                <label for="floatingTextarea"> 응원댓글 </label>
            </div>
            <div class="mybtn">
                <button type="button" class="btn btn-dark">응원 남기기</button>
            </div>
        </div>
        <div class="cards">
            <div class="card">
                <div class="card-body">
                    <blockquote class="blockquote mb-0">
                        <p>앨범 너무 멋져요!</p>
                        <footer class="blockquote-footer">id1 </footer>
                        </footer>
                    </blockquote>
                </div>
            </div>
            <div class="card">
                <div class="card-body">
                    <blockquote class="blockquote mb-0">
                        <p>빈첸 너무 멋져요!</p>
                        <footer class="blockquote-footer">id2 </footer>
                        </footer>
                    </blockquote>
                </div>
            </div>
            <div class="card">
                <div class="card-body">
                    <blockquote class="blockquote mb-0">
                        <p>GOOOOD!!!</p>
                        <footer class="blockquote-footer">id3 </footer>
                        </footer>
                    </blockquote>
                </div>
            </div>
        </div>
    </body>
    
    </html>

     

     

    CSS에서 이미지 자르기

     

    강의에서는 자세히 다루지 않아 이 사이트를 참고해서 원하는 사진의 원하는 부분을 사용하는 방법을 배워야겠다

     

    https://uploadcare.com/blog/how-to-crop-an-image-in-css/

     

    How to crop an image in CSS | Uploadcare Blog

    The article describes all the possibilities to crop images that CSS provides in 2021. You no longer need hacks!

    uploadcare.com

     

     

     

    728x90

    댓글