Layout von Websiten mit Bootstrap und Foundation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Bootstrap shopping list</title>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <link rel="stylesheet" href="../css/custom.css">
  8. </head>
  9. <body>
  10. <!-- navbar -->
  11. <nav class="navbar navbar-expand-sm navbar-light bg-gradient-primary sticky-top">
  12. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  13. <span class="navbar-toggler-icon"></span>
  14. </button>
  15. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  16. <ul class="navbar-nav mr-auto">
  17. <li class="nav-item active dropdown">
  18. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  19. Obst und Gemüse
  20. </a>
  21. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  22. <a class="dropdown-item" href="#">Frühling</a>
  23. <a class="dropdown-item" href="#">Sommer</a>
  24. <a class="dropdown-item" href="#">Herbst</a>
  25. <a class="dropdown-item" href="#">Winter</a>
  26. </div>
  27. </li>
  28. <li class="nav-item dropdown">
  29. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  30. Milchprodukte
  31. </a>
  32. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  33. <a class="dropdown-item" href="#">Milch</a>
  34. <a class="dropdown-item" href="#">Jogurt</a>
  35. <a class="dropdown-item" href="#">Käse</a>
  36. </div>
  37. </li>
  38. <li class="nav-item dropdown">
  39. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  40. Fleisch
  41. </a>
  42. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  43. <a class="dropdown-item" href="#">Grill</a>
  44. <a class="dropdown-item" href="#">Wurst</a>
  45. <a class="dropdown-item" href="#">Braten</a>
  46. </div>
  47. </li>
  48. </ul>
  49. </div>
  50. </nav>
  51. <!-- carousel -->
  52. <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
  53. <div class="carousel-inner">
  54. <div class="carousel-item active">
  55. <img src="./img/veg1.jpg" class="d-block w-100 carousel-img" alt="vegetables">
  56. </div>
  57. <div class="carousel-item">
  58. <img src="./img/veg2.jpg" class="d-block w-100 carousel-img" alt="vegetables">
  59. </div>
  60. <div class="carousel-item">
  61. <img src="./img/veg3.jpg" class="d-block w-100 carousel-img" alt="vegetables">
  62. </div>
  63. </div>
  64. <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
  65. <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  66. <span class="sr-only">Previous</span>
  67. </a>
  68. <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
  69. <span class="carousel-control-next-icon" aria-hidden="true"></span>
  70. <span class="sr-only">Next</span>
  71. </a>
  72. </div>
  73. <!-- shopping list -->
  74. <div class="container-fluid p-3">
  75. <div class="row">
  76. <div class="col-sm-12">
  77. <h1 class="text-center display-4">Frühling</h1>
  78. <hr>
  79. </div>
  80. <div class="col-sm-8">
  81. <table class="table table-striped">
  82. <thead>
  83. <tr>
  84. <th scope="col">Sorte</th>
  85. <th scope="col">Beschreibung</th>
  86. <th scope="col">Eingekauft?</th>
  87. </tr>
  88. </thead>
  89. <tbody>
  90. <tr>
  91. <th scope="row" class="align-middle"> Spargel </th>
  92. <td class="align-middle"> Die besonders schmackhaften Keime der Spargelpflanze landen im Frühling gerne in den Küchen von Spitzenrestaurants. Warum also auch nicht zu Hause zubereiten? </td>
  93. <td class="custom-checkbox align-middle"> <input type="checkbox" aria-label="Checkbox for status shopped"> </td>
  94. </tr>
  95. <tr>
  96. <th scope="row" class="align-middle"> Erdbeeren </th>
  97. <td class="align-middle"> Jeder kennt sie jeder liebt sie - und als Nachtisch nach dem Spargel optimal! </td>
  98. <td class="custom-checkbox align-middle"> <input type="checkbox" aria-label="Checkbox for status shopped"> </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </div>
  103. <div class="col-sm-4">
  104. <div class="card" style="max-width: 18rem;">
  105. <img src="./img/asparagus.jpg" class="card-img-top card-img-dim" alt="Spargel">
  106. <div class="card-body">
  107. <p class="card-text">Spargel ist im Frühling besonders begehrt, weil es ihn nur von etwa Mitte April bis zum 26. Juni gibt.</p>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <!-- scripts -->
  114. <script src="../node_modules/jquery/dist/jquery.js"></script>
  115. <script src="../node_modules/popper.js/dist/popper.js"></script>
  116. <script src="../node_modules/bootstrap/dist/js/bootstrap.js"></script>
  117. </body>
  118. </html>