# Card

### [Interactive demo](https://vision.crimsonlogic.studio/jds/v1.2/components.html#cards-wrapper)

Cards are a useful UI component for grouping several related pieces of information together for providing a linked entry point to further details on that content. Cards work especially well in contexts where they provide summaries of many different kinds of content, rather than when simply used as a modern-looking replacement for a list of content.

### Examples

<div align="left"><img src="https://2758270529-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVPzFJV0KiMDuBMGmVD%2F-MZMe7G_3NuKRSU6oUFL%2F-MZRFbi7ORL08qVMzZQ7%2Fimage.png?alt=media&#x26;token=c7f0d6cb-a553-47f2-badc-58b2d5c2aea4" alt=""></div>

<div align="left"><img src="https://2758270529-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVPzFJV0KiMDuBMGmVD%2F-MZMe7G_3NuKRSU6oUFL%2F-MZRFkvO6PPrfJTuPo5R%2Fimage.png?alt=media&#x26;token=91e24e2c-1f16-49d4-b350-f7bcc6eb7884" alt=""></div>

```
<div class="row">
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-icon">
              <div class="card-header text-left"><span class="jds-tag has-success ">Tag/Badge</span></div>
              <div class="card-body">
                <div class="card-icon"><span><i class="fal fa-briefcase"></i></span></div>
                <h4 class="card-title">Card with icon</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image"> <img class="card-img-top" src="images/img2.jpg" alt="Card image">
              <div class="card-body">
                <h4 class="card-title">Card with image</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-icon">
              <div class="card-header text-left"><span class="jds-tag has-warning ">Tag/Badge</span></div>
              <div class="card-body">
                <div class="card-icon"><span><i class="fal fa-briefcase"></i></span></div>
                <h4 class="card-title">Clickable Card (Stretched Link)</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary stretched-link">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-options">
              <div class="dropdown cards-dropdown"><a href="#" class="dots dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="far fa-ellipsis-v"></i><span class="sr-only">Dropdown</span></a>
                <div class="dropdown-menu" style=""> <a class="dropdown-item" href="#">Item 1</a> <a class="dropdown-item" href="#">Item 2</a> <a class="dropdown-item" href="#">Item 3</a> </div>
              </div>
              <div class="card-body">
                <h6>Date</h6>
                <h5 class="card-title">Card with Menu</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>
              </div>
              <div class="card-footer"> <span class="jds-tag has-warning mr-auto">Tag/Badge</span>
                <button type="button" class="btn btn-link mr-3"><i class="fal fa-arrow-to-bottom"></i></button>
                <button type="button" class="btn btn-link"><i class="fal fa-calendar-alt"></i></button>
              </div>
            </div>
          </div>
</div>
```

### Cards with image

<div align="left"><img src="https://2758270529-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVPzFJV0KiMDuBMGmVD%2F-MZMe7G_3NuKRSU6oUFL%2F-MZRFqttOselv7C4FJwH%2Fimage.png?alt=media&#x26;token=abc7748e-040f-4d4c-a30f-5ef17682ac1f" alt=""></div>

```
<div class="row">
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top  img-fluid" src="images/img1.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top  img-fluid" src="images/img2.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top img-fluid" src="images/img3.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top img-fluid" src="images/img4.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <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>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
        </div>
```

### Horizontal Card

<div align="left"><img src="https://2758270529-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVPzFJV0KiMDuBMGmVD%2F-MZpD-l6Db4wELyqBizy%2F-MZpNBxzPlBChB0AEGe-%2Fimage.png?alt=media&#x26;token=c7eeba26-8e52-4692-bd0b-75a4173860ad" alt=""></div>

```
<div class="card">
          <div class="card-horizontal">
            <div class="img-circle-wrapper"> <i class="fal fa-briefcase"></i> </div>
            <div class="card-body"> <span class="jds-tag has-warning">Pending</span>
              <h4 class="card-title">Card title</h4>
              <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>
              <button type="button" class="btn btn-primary">Action</button>
            </div>
          </div>
</div>
```
