aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/5.0/examples/playground/index.html
blob: ff0854b840a8b4776f358b8a0e57ef8c824a9a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
layout: examples
title: Playground
extra_css:
  - "playground.css"
---

<div class="list-group my-5 mx-auto">
  <div class="list-group-item d-flex align-items-center">
    <div class="mb-0">Item with switch</div>
    <div class="form-check form-switch ml-auto" style="font-size: 1.25rem;">
      <input class="form-check-input ml-0" type="checkbox" id="playgroundSwitch1" checked>
      <label class="visually-hidden" for="playgroundSwitch1">Switch label</label>
    </div>
  </div>
  <div class="list-group-item d-flex align-items-center">
    <div class="mb-0">Another with switch</div>
    <div class="form-check form-switch ml-auto" style="font-size: 1.25rem;">
      <input class="form-check-input ml-0" type="checkbox" id="playgroundSwitch2">
      <label class="visually-hidden" for="playgroundSwitch2">Another switch label</label>
    </div>
  </div>
  <div class="list-group-item d-flex align-items-center">
    <div class="mb-0">Choose an option</div>
    <div class="d-flex align-items-center ml-auto">
      <span class="text-muted">Selected</span>
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="bi bi-chevron-right" viewBox="0 0 20 20">
        <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16l6-6-6-6"/>
      </svg>
    </div>
  </div>
</div>

<div class="button-group my-5 mx-auto">
  <button type="button" class="button-group-item active">Selected</button>
  <button type="button" class="button-group-item">Second</button>
  <button type="button" class="button-group-item">Third</button>
</div>

<div class="p-5 mx-auto">
  <nav class="btn-group d-flex justify-content-center mb-n3 rounded">
    <button class="btn btn-outline-primary active" type="button">Selected</button>
    <button class="btn btn-outline-primary" type="button">Second</button>
    <button class="btn btn-outline-primary" type="button">Third</button>
  </nav>
  <div class="border rounded p-5 bg-light">
    Example of a well with macOS style segmented nav above.
  </div>
</div>

<div id="carouselExampleIndicators" class="carousel slide mx-auto" data-bs-ride="carousel">
  <ol class="carousel-indicators d-flex justify-content-end mx-0 mb-1">
    <li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active"></li>
    <li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1"></li>
    <li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2"></li>
  </ol>
  <div class="carousel-inner">
    <div class="carousel-item active">
      {{< placeholder width="800" height="400" class="bd-placeholder-img-lg d-block w-100 rounded" color="#555" background="#777" text="First slide" >}}
    </div>
    <div class="carousel-item">
      {{< placeholder width="800" height="400" class="bd-placeholder-img-lg d-block w-100 rounded" color="#444" background="#666" text="Second slide" >}}
    </div>
    <div class="carousel-item">
      {{< placeholder width="800" height="400" class="bd-placeholder-img-lg d-block w-100 rounded" color="#333" background="#555" text="Third slide" >}}
    </div>
  </div>
</div>

<div class="position-relative my-5 mx-auto bg-dark" style="width: 375px; height: 812px; border-radius: 1.5rem;">
  <div class="text-center p-3">
    <button type="button" class="btn btn-lg btn-primary" data-bs-toggle="modal" data-bs-target="#modal">Show</button>
  </div>

  <div class="modal modal-sheet" tabindex="-1" role="dialog" id="modal">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header border-bottom-0">
          <h5 class="modal-title">Modal title</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body py-0">
          <p>This is a modal sheet, a variation of the modal that docs itself to the bottom of the viewport like the newer share sheets in iOS.</p>
        </div>
        <div class="modal-footer flex-column border-top-0">
          <button type="button" class="btn btn-lg btn-primary w-100 mx-0 mb-2">Save changes</button>
          <button type="button" class="btn btn-lg btn-link w-100 mx-0" data-bs-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>
</div>