0530

벨로그용·2022년 5월 30일
0

ai스쿨

목록 보기
6/60

1)학습한 내용

부트스트랩을 이용하여 웹페이지 만들기
*HTml

<!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>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" 
    rel="stylesheet">
    <style>
        header{
            background-image: url(./images/bg-top.jpg);
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center top;
        }
    </style>
</head>
<body>
<header>
    <nav class="navbar navbar-expand-sm navbar-dark bg-dark fixed-top">
        <div class="container-fluid">
            <a class="navbar-brand" href="">
            <img src="https://getbootstrap.kr/docs/5.1/assets/brand/bootstrap-logo.svg" width="30" height="24">
        </a>
            <button class="navbar-toggler" type="button"
            data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarCollapse">
            <ul class="navbar-nav">
                <li class="nav-item"><a href="#" class="nav-link">Home</a></li>
                <li class="nav-item"><a href="#" class="nav-link">Features</a></li>
                <li class="nav-item"><a href="#" class="nav-link">Freebies</a></li>
                <li class="nav-item"><a href="#" class="nav-link">Log in</a></li>
            </ul>
        </div>
         </div>
    </nav>
    <div class="container text-center py-5">
        <h1 class="text-white pt-5"><strong>Desplay your web design</strong>
        <br>in a web brower</h1>
        <p class="h4 text-secondary mb-3">Fastest way to present your design and get
            feedback from your clients!</p>
            <div class="btn btn-primary btn-lg py-3">Upoload project</div>
            <div class="text-secondary mt-5 d-none d-sm-block d-inline-flex
            flex-row">
                <img class="align-top pt-0" src="./images/drop-icon.png">
                <span class="d-inline-block ms-3">Drop here or select your project<br>prepared in the png
                or jpg format</span>
            </div>
    </div>
</header>
<section class="bg-light">
    <div class="container">
        <div class="row py-5">
            <div class="col-md-5">
                <h2>Fastest way to<br> <strong> your design</strong></h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                     Perspiciatis dicta eos iste? Ipsum, eveniet architecto 
                     molestias veniam quasi magni beatae,
                      et vitae saepe non iste dolores sapiente doloremque est
                       distinctio.</p>
            </div>
            <div class="col-md-7">
                <img class="img-fluid" src="./images/symu-panel-1.png">
            </div>
        </div>
    </div>
</section>
<section>
    <div class="container ">
        <div class="row py-5">
            <div class="col-md-7">
                <img class="img-fluid" src="./images/symu-panel-2.png">
                </div>
                <div class="col-md-5">
                <h2>Fastest way to<br> <strong> your design</strong></h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.<br>
                     Perspiciatis dicta eos iste?< Ipsum, eveniet architecto 
                     molestias veniam quasi magni beatae,
                      et vitae saepe non iste dolores sapiente doloremque est
                       distinctio.</p>
                    </div>
            </div>
        </div>
</section>
<section class="bg-light">
    <div class="container">
        <div class="row py-5">
            <div class="col-md-5">
                <h2>Fastest way to<br> <strong> your design</strong></h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                     Perspiciatis dicta eos iste? Ipsum, eveniet architecto 
                     molestias veniam quasi magni beatae,
                      et vitae saepe non iste dolores sapiente doloremque est
                       distinctio.</p>
            </div>
            <div class="col-md-7">
                <img class="img-fluid" src="./images/home-panel-3.jpg">
            </div>
        </div>
    </div>
</section>
<section>
    <div class="container py-5 d-none d-md-block">
        <div class="row">
            <div class="col-md-6">
                <img src="./images/envelope-icon.jpg">
                <h2>Email<br><strong>notification</strong></h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                    Perspiciatis dicta eos iste? Ipsum, eveniet architecto 
                    molestias veniam quasi magni beatae,
                     et vitae saepe non iste dolores sapiente doloremque est
                      distinctio.</p>
            </div>
            <div class="col-md-6">
                <img src="./images/lock-icon.jpg">
                <h2>Email<br><strong>notification</strong></h2>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                    Perspiciatis dicta eos iste? Ipsum, eveniet architecto 
                    molestias veniam quasi magni beatae,
                     et vitae saepe non iste dolores sapiente doloremque est
                      distinctio.</p>
            </div>
        </div>
    </div>
</section>
<section class="bg-dark py-5 d-none d-md-block">
    <div class="container">
        <div class="row text-center align-items-center">
            <div class="col-md-2">
                <h3 class="text-white">253</h3>
                <span class="text-white-50">Todays Uploads</span>
            </div>
            <div class="col-md-2">
                <h3 class="text-white">171092</h3>
                <span class="text-white-50">Todays Uploads</span>
            </div>
            <div class="col-md-4">
                <a class="btn btn-danger btn-lg py-3" href="#" role="button">Sign up
                    <strong>now</strong></a>
            </div>
            <div class="col-md-2">
                <h3 class="text-white">253</h3>
                <span class="text-white-50">Todays Uploads</span>
            </div>
            <div class="col-md-2">
                <h3 class="text-white">171092</h3>
                <span class="text-white-50">Todays Uploads</span>
            </div>
        </div>
    </div>
</section>
<footer class="bg-black py-5">
    <div class="container text-white-50 text-center">
        Lorem ipsum dolor sit amet consectetur adipisicing elit.
                    Perspiciatis dicta eos iste? Ipsum, eveniet architecto 
                    molestias veniam quasi magni beatae,
                     et vitae saepe non iste dolores sapiente doloremque est
                      distinctio.
    </div>
</footer>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>

*결과:

2)학습내용 중 어려웠던점

X

3)해결방법

X

4)학습소감

HTML에서 css를 넣지않고 링크와 clss id를통해 css에서 작업할수있는 코드를 HTML에서만 작성할수있는것을 알았다

profile
안녕하세요

0개의 댓글