Responsive Optimization Exercise

Final HTML

<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Squada+One&display=swap" rel="stylesheet">
    <link href="css/custom.css" rel="stylesheet">

    <title>Paris, France</title>
  </head>
  <body>
    <header>
        <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
            <div class="container-fluid">
            <a class="navbar-brand" href="#">
                <img src="img/paris-logo.png" alt="Paris Logo" height="24"> 
            </a>
              <button class="navbar-toggler" 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" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="#">Home</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Link</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                    Dropdown
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                    <li><a class="dropdown-item" href="#">Action</a></li>
                    <li><a class="dropdown-item" href="#">Another action</a></li>
                    <li><hr class="dropdown-divider"></li>
                    <li><a class="dropdown-item" href="#">Something else here</a></li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
                </li>
                </ul>
                <form class="d-flex">
                <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success" type="submit">Search</button>
                </form>
            </div>
            </div>
        </nav>
    </header>
    <main>
        <div class="jumbotron jumbotron-fluid">
            <div class="container">
              <h1 class="display-4">Paris, France</h1>
              <p class="lead">Paris is always a good idea.</p>
            </div>
          </div>

          <div class="container">
              <div class="row">
                  <div class="col-sm-4 mar-bottom">
                    <img src="img/paris-dawn.jpg" alt="Paris at dawn" class="img-fluid rounded-circle">
                  </div>

                  <div class="col-sm-8">
                    <p>For Paris is a total. Paris is the ceiling of the human race. The whole of this prodigious city is a foreshortening of dead manners and living manners. He who sees Paris thinks he sees the bottom of all history with heaven and constellations in the intervals. Paris has a capital, the Town-Hall, a Parthenon, Notre-Dame, a Mount Aventine, the Faubourg Saint-Antoine, an Asinarium, the Sorbonne, a Pantheon, the Pantheon, a Via Sacra, the Boulevard des Italiens, a temple of the winds, opinion; and it replaces the Gemoniæ by ridicule. Its majo is called “faraud,” its Transteverin is the man of the faubourgs, its hammal is the market-porter, its lazzarone is the pègre, its cockney is the native of Ghent. Everything that exists elsewhere exists at Paris. </p>
                </div>

              </div>

              <div class="row">
                <div class="col-sm-8 order-2 order-sm-1">
                    <p>For Paris is a total. Paris is the ceiling of the human race. The whole of this prodigious city is a foreshortening of dead manners and living manners. He who sees Paris thinks he sees the bottom of all history with heaven and constellations in the intervals. Paris has a capital, the Town-Hall, a Parthenon, Notre-Dame, a Mount Aventine, the Faubourg Saint-Antoine, an Asinarium, the Sorbonne, a Pantheon, the Pantheon, a Via Sacra, the Boulevard des Italiens, a temple of the winds, opinion; and it replaces the Gemoniæ by ridicule. Its majo is called “faraud,” its Transteverin is the man of the faubourgs, its hammal is the market-porter, its lazzarone is the pègre, its cockney is the native of Ghent. Everything that exists elsewhere exists at Paris.</p>
                </div>

                <div class="col-sm-4 order-1 order-sm-2 mar-bottom">
                    <img src="img/paris-night.jpg" alt="Paris at night" class="img-fluid rounded-circle">
                </div>
            </div>

            <div class="row">
                <div class="col-sm-8 offset-sm-2">
                    <p>For Paris is a total. Paris is the ceiling of the human race. The whole of this prodigious city is a foreshortening of dead manners and living manners. He who sees Paris thinks he sees the bottom of all history with heaven and constellations in the intervals. Paris has a capital, the Town-Hall, a Parthenon, Notre-Dame, a Mount Aventine, the Faubourg Saint-Antoine, an Asinarium, the Sorbonne, a Pantheon, the Pantheon, a Via Sacra, the Boulevard des Italiens, a temple of the winds, opinion; and it replaces the Gemoniæ by ridicule. Its majo is called “faraud,” its Transteverin is the man of the faubourgs, its hammal is the market-porter, its lazzarone is the pègre, its cockney is the native of Ghent. Everything that exists elsewhere exists at Paris.</p>
                </div>
            </div>
          </div>
    </main>

    <!-- Optional JavaScript; choose one of the two! -->

    <!-- Option 1: Bootstrap Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>

    <!-- Option 2: Separate Popper and Bootstrap JS -->
    <!--
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
    -->
  </body>
</html>

Final Custom CSS

h1 {
    font-family: 'Squada One', cursive;
}

p {
    font-size: 1.2rem;
}

.btn-outline-success {
    color: #ffdd5c;
    border-color: #ffdd5c;
}

.btn-outline-success:hover {
    color: #0d6efd;
    background-color: #ffdd5c;
    border-color: #ffdd5c;
}

.row {
    margin-bottom: 2rem;
}

@media (max-width: 575.98px) {
    p{
        font-size: 1rem;
    }

    .mar-bottom {
        margin-bottom: 1.5rem;
    }
}