index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hancie e-Learning Studio</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/
css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/
js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/
bootstrap-icons@1.9.1/font/bootstrap-icons.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox">
<div class="service-icon">
<span><i class="bi bi-cpu"></i></span>
</div>
<h3 class="title">Web Design</h3>
<p class="description">Lorem ipsum dolor sit amet conse
ctetur adipisicing elit. Qui quaerat fugit quas veniam
perferendis repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox orange">
<div class="service-icon">
<span><i class="bi bi-cpu"></i></span>
</div>
<h3 class="title">Web Development</h3>
<p class="description">Lorem ipsum dolor sit amet conse
ctetur adipisicing elit. Qui quaerat fugit quas veniam
perferendis repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox pink">
<div class="service-icon">
<span><i class="bi bi-cpu"></i></span>
</div>
<h3 class="title">Web Development</h3>
<p class="description">Lorem ipsum dolor sit amet
conse ctetur adipisicing elit. Qui quaerat fugit quas
veniam perferendis repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox blue">
<div class="service-icon">
<span><i class="bi bi-cpu"></i></span>
</div>
<h3 class="title">Web Development</h3>
<p class="description">Lorem ipsum dolor sit amet conse
ctetur adipisicing elit. Qui quaerat fugit quas veniam
perferendis repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
</div>
</div>
<style>
:root{ --main-color: #05AFF9; }
.serviceBox{
color: var(--main-color);
font-family: 'Raleway', sans-serif;
text-align: center;
padding: 25px 20px 25px 80px;
position: relative;
z-index: 1;
}
.serviceBox:before,
.serviceBox:after{
content: '';
border: 4px solid var(--main-color);
position: absolute;
left: 28px;
top: 0;
right: 0;
bottom: 0;
clip-path: polygon(0 0, 65% 0%, 50% 100%, 0% 100%);
}
.serviceBox:after{ clip-path: polygon(95% 15%, 100% 15%,
100% 100%, 95% 100%); }
.serviceBox .service-icon{
color: #fff;
background-color: var(--main-color);
font-size: 30px;
line-height: 60px;
height: 60px;
width: 60px;
margin: 0 0 15px;
transform: translateY(-50%);
position: absolute;
left: 0;
top: 50%;
}
.serviceBox .title{
font-size: 20px;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: capitalize;
margin: 0 0 10px;
}
.serviceBox .description{
font-size: 14px;
line-height: 25px;
margin: 0;
}
.serviceBox.orange{ --main-color: #F97406; }
.serviceBox.pink{ --main-color: #FF0748; }
@media only screen and (max-width: 1199px){
.serviceBox{ margin: 0 0 40px; }
}
</style>
</body>
</html>