index.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. ---
  2. layout: examples
  3. title: Carousel Template
  4. extra_css:
  5. - "carousel.css"
  6. ---
  7. <header>
  8. <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
  9. <div class="container-fluid">
  10. <a class="navbar-brand" href="#">Carousel</a>
  11. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  12. <span class="navbar-toggler-icon"></span>
  13. </button>
  14. <div class="collapse navbar-collapse" id="navbarCollapse">
  15. <ul class="navbar-nav me-auto mb-2 mb-md-0">
  16. <li class="nav-item">
  17. <a class="nav-link active" aria-current="page" href="#">Home</a>
  18. </li>
  19. <li class="nav-item">
  20. <a class="nav-link" href="#">Link</a>
  21. </li>
  22. <li class="nav-item">
  23. <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
  24. </li>
  25. </ul>
  26. <form class="d-flex">
  27. <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
  28. <button class="btn btn-outline-success" type="submit">Search</button>
  29. </form>
  30. </div>
  31. </div>
  32. </nav>
  33. </header>
  34. <main>
  35. <div id="myCarousel" class="carousel slide" data-bs-ride="carousel">
  36. <div class="carousel-indicators">
  37. <button type="button" data-bs-target="#myCarousel" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
  38. <button type="button" data-bs-target="#myCarousel" data-bs-slide-to="1" aria-label="Slide 2"></button>
  39. <button type="button" data-bs-target="#myCarousel" data-bs-slide-to="2" aria-label="Slide 3"></button>
  40. </div>
  41. <div class="carousel-inner">
  42. <div class="carousel-item active">
  43. {{< placeholder width="100%" height="100%" background="#777" color="#777" text="false" title="false" >}}
  44. <div class="container">
  45. <div class="carousel-caption text-start">
  46. <h1>Example headline.</h1>
  47. <p>Some representative placeholder content for the first slide of the carousel.</p>
  48. <p><a class="btn btn-lg btn-primary" href="#">Sign up today</a></p>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="carousel-item">
  53. {{< placeholder width="100%" height="100%" background="#777" color="#777" text="false" title="false" >}}
  54. <div class="container">
  55. <div class="carousel-caption">
  56. <h1>Another example headline.</h1>
  57. <p>Some representative placeholder content for the second slide of the carousel.</p>
  58. <p><a class="btn btn-lg btn-primary" href="#">Learn more</a></p>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="carousel-item">
  63. {{< placeholder width="100%" height="100%" background="#777" color="#777" text="false" title="false" >}}
  64. <div class="container">
  65. <div class="carousel-caption text-end">
  66. <h1>One more for good measure.</h1>
  67. <p>Some representative placeholder content for the third slide of this carousel.</p>
  68. <p><a class="btn btn-lg btn-primary" href="#">Browse gallery</a></p>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <button class="carousel-control-prev" type="button" data-bs-target="#myCarousel" data-bs-slide="prev">
  74. <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  75. <span class="visually-hidden">Previous</span>
  76. </button>
  77. <button class="carousel-control-next" type="button" data-bs-target="#myCarousel" data-bs-slide="next">
  78. <span class="carousel-control-next-icon" aria-hidden="true"></span>
  79. <span class="visually-hidden">Next</span>
  80. </button>
  81. </div>
  82. <!-- Marketing messaging and featurettes
  83. ================================================== -->
  84. <!-- Wrap the rest of the page in another container to center all the content. -->
  85. <div class="container marketing">
  86. <!-- Three columns of text below the carousel -->
  87. <div class="row">
  88. <div class="col-lg-4">
  89. {{< placeholder width="140" height="140" background="#777" color="#777" class="rounded-circle" >}}
  90. <h2>Heading</h2>
  91. <p>Some representative placeholder content for the three columns of text below the carousel. This is the first column.</p>
  92. <p><a class="btn btn-secondary" href="#">View details &raquo;</a></p>
  93. </div><!-- /.col-lg-4 -->
  94. <div class="col-lg-4">
  95. {{< placeholder width="140" height="140" background="#777" color="#777" class="rounded-circle" >}}
  96. <h2>Heading</h2>
  97. <p>Another exciting bit of representative placeholder content. This time, we've moved on to the second column.</p>
  98. <p><a class="btn btn-secondary" href="#">View details &raquo;</a></p>
  99. </div><!-- /.col-lg-4 -->
  100. <div class="col-lg-4">
  101. {{< placeholder width="140" height="140" background="#777" color="#777" class="rounded-circle" >}}
  102. <h2>Heading</h2>
  103. <p>And lastly this, the third column of representative placeholder content.</p>
  104. <p><a class="btn btn-secondary" href="#">View details &raquo;</a></p>
  105. </div><!-- /.col-lg-4 -->
  106. </div><!-- /.row -->
  107. <!-- START THE FEATURETTES -->
  108. <hr class="featurette-divider">
  109. <div class="row featurette">
  110. <div class="col-md-7">
  111. <h2 class="featurette-heading">First featurette heading. <span class="text-muted">It’ll blow your mind.</span></h2>
  112. <p class="lead">Some great placeholder content for the first featurette here. Imagine some exciting prose here.</p>
  113. </div>
  114. <div class="col-md-5">
  115. {{< placeholder width="500" height="500" background="#eee" color="#aaa" class="bd-placeholder-img-lg featurette-image img-fluid mx-auto" >}}
  116. </div>
  117. </div>
  118. <hr class="featurette-divider">
  119. <div class="row featurette">
  120. <div class="col-md-7 order-md-2">
  121. <h2 class="featurette-heading">Oh yeah, it’s that good. <span class="text-muted">See for yourself.</span></h2>
  122. <p class="lead">Another featurette? Of course. More placeholder content here to give you an idea of how this layout would work with some actual real-world content in place.</p>
  123. </div>
  124. <div class="col-md-5 order-md-1">
  125. {{< placeholder width="500" height="500" background="#eee" color="#aaa" class="bd-placeholder-img-lg featurette-image img-fluid mx-auto" >}}
  126. </div>
  127. </div>
  128. <hr class="featurette-divider">
  129. <div class="row featurette">
  130. <div class="col-md-7">
  131. <h2 class="featurette-heading">And lastly, this one. <span class="text-muted">Checkmate.</span></h2>
  132. <p class="lead">And yes, this is the last block of representative placeholder content. Again, not really intended to be actually read, simply here to give you a better view of what this would look like with some actual content. Your content.</p>
  133. </div>
  134. <div class="col-md-5">
  135. {{< placeholder width="500" height="500" background="#eee" color="#aaa" class="bd-placeholder-img-lg featurette-image img-fluid mx-auto" >}}
  136. </div>
  137. </div>
  138. <hr class="featurette-divider">
  139. <!-- /END THE FEATURETTES -->
  140. </div><!-- /.container -->
  141. <!-- FOOTER -->
  142. <footer class="container">
  143. <p class="float-end"><a href="#">Back to top</a></p>
  144. <p>&copy; 2017–{{< year >}} Company, Inc. &middot; <a href="#">Privacy</a> &middot; <a href="#">Terms</a></p>
  145. </footer>
  146. </main>