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>
<br>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="main-timeline">
<div class="timeline">
<a id="hancie" href="#" class="timeline-content">
<div class="timeline-year">2021</div>
<div class="timeline-icon"><i class="bi bi-map"></i></div>
<h3 class="title">Web Designing</h3>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer males uada tellus lorem, et condimentum neque
commodo Integer males uada tellus lorem, et condimentum
neque commodo
</p>
</a>
</div>
<div class="timeline">
<a id="hancie" href="#" class="timeline-content">
<div class="timeline-year">2019</div>
<div class="timeline-icon"><i class="bi bi-map"></i></div>
<h3 class="title">Java Script</h3>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer males uada tellus lorem, et condimentum neque
commodo Integer males uada tellus lorem, et condimentum
neque commodo
</p>
</a>
</div>
<div class="timeline">
<a id="hancie" href="#" class="timeline-content">
<div class="timeline-year">2020</div>
<div class="timeline-icon"><i class="bi bi-map"></i></div>
<h3 class="title">Web Development</h3>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Integer males uada tellus lorem, et condimentum
neque commodo Integer males uada tellus lorem, et
condimentum neque commodo
</p>
</a>
</div>
</div>
</div>
</div>
</div>
<style>
#hancie {
text-decoration:none;
}
:root{ --main-color: #003833; }
.main-timeline{ font-family: 'Poppins', sans-serif; }
.main-timeline:after{
content: '';
display: block;
clear: both;
}
.main-timeline .timeline{
width: 50%;
margin: 0 5px 35px 0;
float: left;
}
.main-timeline .timeline-content{
text-align: right;
display: block;
}
.main-timeline .timeline-content:hover{ text-decoration: none; }
.main-timeline .timeline-icon{
color: #fff;
background: var(--main-color);
font-size: 30px;
text-align: center;
line-height: 60px;
width: 60px;
height: 60px;
border-radius: 50% 50% 0 50%;
transform: rotate(45deg);
display: inline-block;
}
.main-timeline .timeline-icon i{ transform: rotate(-45deg); }
.main-timeline .timeline-year{
color: var(--main-color);
font-size: 40px;
font-weight: 600;
line-height: 72px;
margin: 0 0 0 10px;
display: inline-block;
vertical-align: top;
}
.main-timeline .title{
color: #fff;
background-color: var(--main-color);
font-size: 22px;
font-weight: 600;
text-transform: uppercase;
text-align: left;
padding: 10px 15px 9px;
margin: 0 0 10px;
}
.main-timeline .description{
color: #666;
font-size: 14px;
line-height: 20px;
letter-spacing: .5px;
text-align: left;
margin: 0;
}
.main-timeline .timeline:nth-child(even){
margin: 0 0 35px 5px;
float: right;
}
.main-timeline .timeline:nth-child(even) .timeline-content
{ text-align: left; }
.main-timeline .timeline:nth-child(4n+2){ --main-color: #ff741e; }
.main-timeline .timeline:nth-child(4n+3){ --main-color: #004098; }
.main-timeline .timeline:nth-child(4n+4){ --main-color: #FF0721; }
@media screen and (max-width:767px){
.main-timeline .timeline,
.main-timeline .timeline:nth-child(even){
width: 100%;
}
}
@media screen and (max-width:479px){
.main-timeline .timeline-content,
.main-timeline .timeline:nth-child(even) .timeline-content{
text-align: left;
}
}
</style>
</body>
</html>