The Image Card component in the MIZ framework is designed to display information alongside an image. It supports multiple layouts with flexible arrangements of images, text, and buttons. Cards can also include headers and footers, as well as a scrolling feature for longer content.
Here’s a basic example of the Image Card:
Title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe maxime aut ipsa voluptate. Molestiae ad omnis quos voluptatem odio aspernatur inventore error mollitia nemo soluta fugit veniam eligendi, tenetur magni! Lorem ipsum, dolor sit amet consectetur adipisicing elit. Accusamus, dolorem? Dolore eos nostrum eveniet possimus, placeat ea provident est, earum, corporis laboriosam quo repellendus hic. Dolorem error laborum atque excepturi! Lorem ipsum dolor sit amet consectetur adipisicing elit. Quis alias aliquam quae consequuntur eaque quod quaerat, molestiae dicta commodi voluptatibus. Labore voluptatibus porro ipsa vitae quis aliquam quam vero blanditiis!
Last update was 3 min ago
<div class="card bg-secondary-color all-border-medium"> <div class="card-image overflow-hidden" style="height: 20rem;"> <img class="w-100" src="path_to_image.jpg" alt=""> </div> <div class="card-body"> <p class="section-title-text-color txt-mid-title">Title</p> <p class="multiply-ellipsis-3 section-title-text-color"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae id eveniet fugiat voluptate. </p> <p class="text-color txt-subtitle">Last update was 3 min ago</p> </div> </div>
Title
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae id eveniet fugiat voluptate.
Last update was 3 min ago
<div class="card bg-secondary-color all-border-medium"> <div class="card-body"> <p class="section-title-text-color txt-mid-title">Title</p> <p class="multiply-ellipsis-3 section-title-text-color"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae id eveniet fugiat voluptate. </p> <p class="text-color txt-subtitle">Last update was 3 min ago</p> </div> <div class="card-image overflow-hidden" style="height: 20rem;"> <img class="w-100" src="path_to_image.jpg" alt=""> </div> </div>
You can add buttons to your card for interactivity. For example:
Card content
<div class="card bg-secondary-color all-border-medium"> <div class="card-image overflow-hidden" style="height: 20rem;"> <img class="w-100" src="path_to_image.jpg" alt=""> </div> <div class="card-body"> <p class="multiply-ellipsis-3 section-title-text-color">Card content</p> <button class="btn btn-primary btn-round section-title-text-color txt-subtitle px-2">Button</button> </div> </div>
The Scrollbar Card component is used when content exceeds the available space. This card includes a vertical scrollbar, making it ideal for content-heavy sections that require scrolling.
Here’s an example of the Scrollbar Card:
<div class="card bg-secondary-color all-border-medium"> <div class="card-image overflow-hidden" style="height: 20rem;"> <img class="w-100" src="path_to_image.jpg" alt=""> </div> <div class="card-body"> <p class="section-title-text-color txt-mid-title">Title</p> <p class="multiply-ellipsis-3 section-title-text-color"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae id eveniet fugiat voluptate. </p> <p class="text-color txt-subtitle">Last update was 3 min ago</p> </div> </div>
You can add long content within the body of the card, which will scroll when it exceeds the maximum height:
<div class="card bg-secondary-color all-border-medium"> <div class="card-image overflow-hidden" style="height: 20rem;"> <img class="w-100" src="path_to_image.jpg" alt=""> </div> <div class="card-body"> <p class="section-title-text-color txt-mid-title">Title</p> <p class="multiply-ellipsis-3 section-title-text-color"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae id eveniet fugiat voluptate. </p> <p class="text-color txt-subtitle">Last update was 3 min ago</p> </div> </div>
Both the Image Card and Scrollbar Card components offer flexibility in layout and design, making them useful for a variety of use cases such as galleries, articles, and content-heavy sections. Use the examples and customization options to fit these components into your projects with ease.