content logo

Bootstrap Cards:

Bootstrap Event Card Single Day

Appearance is one of the most critical elements in all websites and if you want to attract more people, you need to have a beautiful page. We are going to introduce you to a code with the name Bootstrap Event Card Single Day. This Simple Card Code is designed for a website with different parts. If you have a website and want to add multiple items to your page, use this HTML Card Code and interest your audiences. By using this code, you can add different information and pictures to your website and save physical space.

As the below preview shows, this code has a gradient theme that you can use on colorful websites. So, you can use this Bootstrap Gradient Card if you have a pink website. This code has a white background with some pink rhombus in the middle of the page. You can write texts in the middle of these shapes with white color. In this Rhomboid Card Code, we have prepared the time of events. Then, there is a white field at the bottom of the rhombus that contains the event. These rhombuses are connected to each other and look so beautiful.

#

Simple Card Code

#

Bootstrap Gradient Card

#

HTML Card Code

#

Rhomboid Card Code

<!-- This script got from frontendfreecode.com -->
<div class="container p-5">
    <div class="row text-center">
        <div class="col-md-12">
            <div class="d-flex justify-content-center align-items-center flex-wrap">
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Morning Session</h2>
                            <div class="the-day">10:00 AM <span>To</span>12:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Afternoon Session</h2>
                            <div class="the-day">12:00 AM <span>To</span>02:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Evening Session 2</h2>
                            <div class="the-day">02:00 AM <span>To</span>04:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Evening Fall Session</h2>
                            <div class="the-day">04:00 AM <span>To</span>06:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
.event-block {
    background: #9c28b1;
    background-image: linear-gradient(161deg, rgba(117, 117, 117, 0.03) 0%, rgba(117, 117, 117, 0.03) 50%,rgba(8, 8, 8, 0.03) 50%, rgba(8, 8, 8, 0.03) 100%),linear-gradient(59deg, rgba(245, 245, 245, 0.05) 0%, rgba(245, 245, 245, 0.05) 50%,rgba(68, 68, 68, 0.05) 50%, rgba(68, 68, 68, 0.05) 100%),linear-gradient(286deg, rgba(107, 107, 107, 0.07) 0%, rgba(107, 107, 107, 0.07) 50%,rgba(7, 7, 7, 0.07) 50%, rgba(7, 7, 7, 0.07) 100%),linear-gradient(123deg, rgba(9, 9, 9, 0.09) 0%, rgba(9, 9, 9, 0.09) 50%,rgba(120, 120, 120, 0.09) 50%, rgba(120, 120, 120, 0.09) 100%),linear-gradient(170deg, rgba(202, 202, 202, 0.01) 0%, rgba(202, 202, 202, 0.01) 50%,rgba(19, 19, 19, 0.01) 50%, rgba(19, 19, 19, 0.01) 100%),linear-gradient(210deg, rgba(64, 64, 64, 0.04) 0%, rgba(64, 64, 64, 0.04) 50%,rgba(4, 4, 4, 0.04) 50%, rgba(4, 4, 4, 0.04) 100%),linear-gradient(90deg, rgb(249, 17, 190),rgb(100, 28, 213));
    border: 3px solid #9c28b1;
    width: 195px;
    height: 195px;
    overflow: hidden;
    padding: 25px;
    border-radius: 5px;
    margin: 25px auto;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.event-block a {
  font-size: 16px;
  line-height: 1.2;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 30px;
    margin-top: 5px;
    cursor: pointer;       
    background: #ffffff;
    color: #682eb7;
    border: 1px solid #ffffff; 
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
.event-block a:hover {
    background: #fff;
    color: #9c28b1;
    border: 1px solid #9c28b1;
}
.event-block .event-block-container{
  width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    overflow: hidden;
    padding: 18px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.event-block .titular {
    display: block;
    max-width: 100px;
    margin: 0 auto;
    text-align: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
        font-size: 16px;
    background: transparent;
    line-height: 1.4;
    font-weight: 300;
    padding: 0;
    color: #fff;
    text-transform: uppercase;
}
.event-block .the-day {
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 2;
    font-weight: 900;
    letter-spacing: 3px;
    position: relative;
    color: #fff;
}
.event-block .the-day:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translatex(-50%);
    -moz-transform: translatex(-50%);
    -ms-transform: translatex(-50%);
    -o-transform: translatex(-50%);
    transform: translatex(-50%);
    width: 65%;
    height: 1px;
    border-top: 1px solid #fff;
    z-index: 0;
}
.event-block .the-day > span {
    display: block;
    position: absolute;
    padding: 0 0.5rem;
    background-color: #9e2fb3;
    z-index: 1;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css'>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css'>
<style>
.event-block {
    background: #9c28b1;
    background-image: linear-gradient(161deg, rgba(117, 117, 117, 0.03) 0%, rgba(117, 117, 117, 0.03) 50%,rgba(8, 8, 8, 0.03) 50%, rgba(8, 8, 8, 0.03) 100%),linear-gradient(59deg, rgba(245, 245, 245, 0.05) 0%, rgba(245, 245, 245, 0.05) 50%,rgba(68, 68, 68, 0.05) 50%, rgba(68, 68, 68, 0.05) 100%),linear-gradient(286deg, rgba(107, 107, 107, 0.07) 0%, rgba(107, 107, 107, 0.07) 50%,rgba(7, 7, 7, 0.07) 50%, rgba(7, 7, 7, 0.07) 100%),linear-gradient(123deg, rgba(9, 9, 9, 0.09) 0%, rgba(9, 9, 9, 0.09) 50%,rgba(120, 120, 120, 0.09) 50%, rgba(120, 120, 120, 0.09) 100%),linear-gradient(170deg, rgba(202, 202, 202, 0.01) 0%, rgba(202, 202, 202, 0.01) 50%,rgba(19, 19, 19, 0.01) 50%, rgba(19, 19, 19, 0.01) 100%),linear-gradient(210deg, rgba(64, 64, 64, 0.04) 0%, rgba(64, 64, 64, 0.04) 50%,rgba(4, 4, 4, 0.04) 50%, rgba(4, 4, 4, 0.04) 100%),linear-gradient(90deg, rgb(249, 17, 190),rgb(100, 28, 213));
    border: 3px solid #9c28b1;
    width: 195px;
    height: 195px;
    overflow: hidden;
    padding: 25px;
    border-radius: 5px;
    margin: 25px auto;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.event-block a {
  font-size: 16px;
  line-height: 1.2;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 30px;
    margin-top: 5px;
    cursor: pointer;       
    background: #ffffff;
    color: #682eb7;
    border: 1px solid #ffffff; 
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
.event-block a:hover {
    background: #fff;
    color: #9c28b1;
    border: 1px solid #9c28b1;
}
.event-block .event-block-container{
  width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    overflow: hidden;
    padding: 18px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.event-block .titular {
    display: block;
    max-width: 100px;
    margin: 0 auto;
    text-align: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
        font-size: 16px;
    background: transparent;
    line-height: 1.4;
    font-weight: 300;
    padding: 0;
    color: #fff;
    text-transform: uppercase;
}
.event-block .the-day {
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 2;
    font-weight: 900;
    letter-spacing: 3px;
    position: relative;
    color: #fff;
}
.event-block .the-day:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translatex(-50%);
    -moz-transform: translatex(-50%);
    -ms-transform: translatex(-50%);
    -o-transform: translatex(-50%);
    transform: translatex(-50%);
    width: 65%;
    height: 1px;
    border-top: 1px solid #fff;
    z-index: 0;
}
.event-block .the-day > span {
    display: block;
    position: absolute;
    padding: 0 0.5rem;
    background-color: #9e2fb3;
    z-index: 1;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
</style>

</head>
<body>
<div class="container p-5">
    <div class="row text-center">
        <div class="col-md-12">
            <div class="d-flex justify-content-center align-items-center flex-wrap">
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Morning Session</h2>
                            <div class="the-day">10:00 AM <span>To</span>12:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Afternoon Session</h2>
                            <div class="the-day">12:00 AM <span>To</span>02:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Evening Session 2</h2>
                            <div class="the-day">02:00 AM <span>To</span>04:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="event-block">
                        <div class="circle"></div>
                        <div class="event-block-container">
                            <h2 class="titular">Evening Fall Session</h2>
                            <div class="the-day">04:00 AM <span>To</span>06:00 PM</div>
                            <a  >Event</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview