230426 - bootstrap ๊ธฐ์ดˆ2

๋ฐฑ์Šน์—ฐยท2023๋…„ 4์›” 26์ผ
1

๐Ÿšฉ bootstrap

๋ถ€ํŠธ์ŠคํŠธ๋žฉ์„ ์ด์šฉํ•˜์—ฌ ์‚ฌ์ดํŠธ ์ œ์ž‘

๐Ÿ“ ๋‚ด์šฉ

  • ๋ถ€ํŠธ์ŠคํŠธ๋žฉ์œผ๋กœ ๋งŒ๋“ค ์‚ฌ์ดํŠธ๋ฅผ ํ•˜๋‚˜ ์ •ํ•ด์„œ ์ œ์ž‘ํ•ด๋ณด๊ธฐ


โœ’๏ธ ์‚ฌ์šฉ๋ฒ•

์ž…๋ ฅ

css

@charset"UTF-8";

* { margin: 0; padding: 0; box-sizing: border-box; }
li { list-style: none; }
a { text-decoration: none; }
img { vertical-align: middle; }
body { font-family: "Noto Sans KR", Verdana, Geneva, Tahoma, sans-serif; }
.main_menu > li > a { font-weight: 700; }
.main_menu .dropdowna { color: #666; }
.visual {
}
.visual_in { height: 800px; background: url("../img/main.png") no-repeat center / cover; transition: .3s; }
/* 992px ๋ฏธ๋งŒ */
@media(max-width:991px) {
  .visual_in { height: 400px; }
}

html

<body>
  <header>
    <nav class="navbar navbar-expand-lg bg-dark fixed-top">
      <div class="container-xl">
        <a class="navbar-brand" href="#">
          <img src="./img/logo_patagonia_white_50.svg" alt="">
        </a>
        <button class="navbar-toggler bg-light" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse flex-grow-0" id="navbarSupportedContent">
          <ul class="main_menu navbar-nav me-auto mb-2 mb-lg-0">
            <li class="nav-item dropdown mx-2">
              <a class="nav-link dropdown-toggle text-white" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                Shop
              </a>
              <ul class="dropdown-menu">
                <li><a class="dropdown-item" href="#">Women's</a></li>
                <li><hr class="dropdown-divider"></li>
                <li><a class="dropdown-item" href="#">๋ชจ๋“ ์ƒํ’ˆ</a></li>
                <li><a class="dropdown-item" href="#">์‹ ์ƒํ’ˆ</a></li>
                <li><a class="dropdown-item" href="#">์žฌํ‚ท & ๋ฒ ์ŠคํŠธ</a></li>
                <li><a class="dropdown-item" href="#">ํ”Œ๋ฆฌ์Šค</a></li>
                <li><a class="dropdown-item" href="#">์Šค์›จํŠธ์…”์ธ  & ํ›„๋””</a></li>
                <li><a class="dropdown-item" href="#">ํ‹ฐ์…”์ธ </a></li>
              </ul>
            </li>
            <li class="nav-item mx-2">
              <a class="nav-link disabled text-white">Activism</a>
            </li>
            <li class="nav-item dropdown mx-2">
              <a class="nav-link dropdown-toggle text-white" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                Sports
              </a>
              <ul class="dropdown-menu">
                <li><a class="dropdown-item" href="#">Snow</a></li>
                <li><hr class="dropdown-divider"></li>
                <li><a class="dropdown-item" href="#">Community</a></li>
                <li><a class="dropdown-item" href="#">Shop Men's</a></li>
                <li><a class="dropdown-item" href="#">Shop Women's</a></li>
              </ul>
            </li>
            <li class="nav-item mx-2">
              <a class="nav-link disabled text-white">Stories</a>
            </li>
            <li class="nav-item mx-2">
              <a class="nav-link text-white btn btn-outline-light rounded-pill d-inline">Log In</a>
              <a class="nav-link text-white btn btn-outline-light rounded-pill d-inline">Join</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>
  </header>
  <div class="visual">
    <div class="visual_in">
      <h2>๊ธ€์”จ</h2>
    </div>
    <br><br><br><br><br><br><br><br><br><br><br>
  </div>
</body>

์ถœ๋ ฅ

  • ์ด๋ฏธ์ง€๋กœ ๋Œ€์ฒด


๐Ÿ”— ์ฐธ๊ณ  ๋งํฌ & ๋„์›€์ด ๋˜๋Š” ๋งํฌ






profile
๊ณต๋ถ€ํ•˜๋Š” ๋ฒจ๋กœ๊ทธ

0๊ฐœ์˜ ๋Œ“๊ธ€