Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- Website title-->
- <title>Bootstrap Site</title>
- <!-- Importing Bootstrap into our website -->
- <!-- Introduction: -->
- <!-- Bootstrap CSS -->
- <link href="..." rel="stylesheet"
- integrity="..." crossorigin="anonymous">
- <!-- Bootstrap CheatSheet: -->
- <!-- To use Bootstrap elements and components use snippets of code and apply classes -->
- <!-- FOLDER STRUCTURE
- lesson-6
- ∟ css
- ∟ main.css
- ∟ elephant.html
- ∟ index.html
- ∟ lion.html
- ∟ rhino.html
- -->
- <!-- My personal CSS external file. -->
- <link rel="stylesheet" href="...">
- </head>
- <body>
- <!-- Header -->
- <!-- .container, which sets a max-width at each responsive breakpoint OR
- .container-fluid, which is width: 100% at all breakpoints -->
- <div class="container-fluid">
- <!-- Grid system with row and columns (up to 12 columns) -->
- <div class="row bg-green">
- <!-- Margin & Padding
- Where property is one of:
- m - for classes that set margin
- p - for classes that set padding
- Where sides is one of:
- t - for classes that set margin-top or padding-top
- b - for classes that set margin-bottom or padding-bottom
- s - (start) for classes that set margin-left or padding-left in LTR, margin-right or padding-right in RTL
- e - (end) for classes that set margin-right or padding-right in LTR, margin-left or padding-left in RTL
- x - for classes that set both *-left and *-right
- y - for classes that set both *-top and *-bottom
- blank - for classes that set a margin or padding on all 4 sides of the element
- Where size is one of:
- 0 - for classes that eliminate the margin or padding by setting it to 0
- 1 - (by default) for classes that set the margin or padding to $spacer * .25
- 2 - (by default) for classes that set the margin or padding to $spacer * .5
- 3 - (by default) for classes that set the margin or padding to $spacer
- 4 - (by default) for classes that set the margin or padding to $spacer * 1.5
- 5 - (by default) for classes that set the margin or padding to $spacer * 3
- auto - for classes that set the margin to auto -->
- <!-- Align items vertically: d-flex align-items-center -->
- <!-- Layout > Grid: -->
- <div class="col-sm-2 p-3 d-flex align-items-center">
- <img src="..." alt="logo"
- height="100px">
- </div>
- <div class="col-sm-10 p-3 align-self-center">
- <h1 class="white">ZOO</h1>
- <h2 class="white">Located in London</h2>
- </div>
- </div>
- </div>
- <!-- Navigation -->
- <!-- Navs & tabs: -->
- <div class="container-fluid p-3 bg-gray">
- <ul class="nav justify-content-center">
- <li class="nav-item">
- <a class="nav-link active" aria-current="page" href="index.html#main">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#animals">Animals</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#contact">Contact</a>
- </li>
- <li class="nav-item">
- <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Workshops</a>
- </li>
- </ul>
- </div>
- <!-- Carousel: -->
- <div class="container-fluid p-0">
- <div id="carouselExampleInterval" class="carousel slide" data-bs-ride="carousel">
- <div class="carousel-inner">
- <div class="carousel-item active" data-bs-interval="10000">
- <img src="..."
- class="d-block w-100" alt="elephant">
- </div>
- <div class="carousel-item" data-bs-interval="2000">
- <img src="..."
- class="d-block w-100" alt="rhino">
- </div>
- <div class="carousel-item">
- <img src="..."
- class="d-block w-100" alt="lion">
- </div>
- </div>
- <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleInterval"
- data-bs-slide="prev">
- <span class="carousel-control-prev-icon" aria-hidden="true"></span>
- <span class="visually-hidden">Previous</span>
- </button>
- <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleInterval"
- data-bs-slide="next">
- <span class="carousel-control-next-icon" aria-hidden="true"></span>
- <span class="visually-hidden">Next</span>
- </button>
- </div>
- </div>
- <!-- Main -->
- <!-- Info about ZOO -->
- <div id="main">
- <!-- .container, which sets a max-width at each responsive breakpoint OR
- .container-fluid, which is width: 100% at all breakpoints -->
- <div class="container pt-5 pb-5 bg-gray">
- <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Harum beatae iure, a amet ex sunt mollitia,
- natus cum iusto eligendi sapiente ipsam minima molestiae itaque expedita obcaecati facere fuga voluptate
- aliquam. Nulla delectus harum, ipsum nesciunt tempora mollitia optio architecto accusamus quas illo
- tenetur quis voluptatibus sunt, voluptate ea corporis in culpa! Recusandae similique ea quam non atque
- cumque ab a illo ut minus aspernatur amet qui nam rem, perspiciatis suscipit dolor ad, vero alias. Eum
- maiores minus quos soluta ex provident fugit dicta, animi repellat, nesciunt tempora? Optio eveniet quam
- fugiat fugit quisquam ullam est soluta repudiandae unde dolorum.</p>
- </div>
- </div>
- <div id="animals">
- <!-- Card: -->
- <!-- Align item horizontally: d-flex justify-content-center pb-5 -->
- <div class="container d-flex justify-content-center pb-5 bg-gray">
- <div class="row">
- <div class="col-lg-4 mb-5">
- <div class="card" style="width: 18rem;">
- <img src="..."
- class="card-img-top" alt="elephant">
- <div class="card-body">
- <h5 class="card-title">Card title</h5>
- <p class="card-text">Some quick example text to build on the card title and make up the bulk
- of
- the card's content.</p>
- <a href="elephant.html" class="btn btn-primary">Go somewhere</a>
- </div>
- </div>
- </div>
- <div class="col-lg-4 mb-5">
- <div class="card" style="width: 18rem;">
- <img src="..."
- class="card-img-top" alt="rhino">
- <div class="card-body">
- <h5 class="card-title">Card title</h5>
- <p class="card-text">Some quick example text to build on the card title and make up the bulk
- of
- the card's content.</p>
- <a href="rhino.html" class="btn btn-primary">Go somewhere</a>
- </div>
- </div>
- </div>
- <div class="col-lg-4 mb-5">
- <div class="card" style="width: 18rem;">
- <img src="..."
- class="card-img-top" alt="lion">
- <div class="card-body">
- <h5 class="card-title">Card title</h5>
- <p class="card-text">Some quick example text to build on the card title and make up the bulk
- of
- the card's content.</p>
- <a href="lion.html" class="btn btn-primary">Go somewhere</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Contact -->
- <div id="contact">
- <div class="container d-flex justify-content-center pb-5 bg-green">
- <div class="row">
- <div class="col-md-4 pt-5 pb-5">
- <h3 class="white">Address</h3>
- <address class="white">Zoo<br>1st Street<br>London<br>SE16 4AB</address>
- <p class="white">Tel: +44 0123456789<br>email: zoo@london.com</p>
- </div>
- <div class="col-md-4 pt-5 pb-5">
- <h3 class="white">Follow</h3>
- <p class="white">Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti qui provident
- reprehenderit ut aliquid quas aut eos fugit sunt hic?</p>
- </div>
- <div class="col-md-4 pt-5 pb-5">
- <h3 class="white">About Workshops</h3>
- <p class="white">Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius, debitis! Officia ex
- doloribus pariatur fugiat tenetur perspiciatis accusamus! Perferendis, iste.</p>
- </div>
- </div>
- </div>
- </div>
- <!-- Footer -->
- <div id="footer">
- <div class="container-fluid d-flex justify-content-center pt-1 pb-1 bg-gray">
- 2022 ZOO | All rights reserved.
- </div>
- </div>
- <!-- Bootstrap JS -->
- <script src="..."
- integrity="..."
- crossorigin="anonymous"></script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment