Skip to content

Commit

Permalink
Merge pull request #522 from kiran1901/liveCounting
Browse files Browse the repository at this point in the history
Live counting feature addition
  • Loading branch information
PriyaGhosal authored Oct 15, 2024
2 parents 62876f5 + 9758983 commit 220ebf1
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
50 changes: 50 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,56 @@ button:hover {
font-family: var(--ff-gilroy);
}

.livecounting {
margin-top: 100px;
}


.livecounting-container {
display: flex;
gap: 30px;
padding: 20px;
flex-wrap: wrap;
justify-content: center;
}

.live-count {
min-width: 200px;
height: 150px;
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
}

.live-count-emoji {
font-size: 30px;
color: black;
}

.live-count-text-count {
font-size: 20px;
font-weight: bold;
color: black;
}

.live-count-text-wrapper {
font-size: 14px;
color: gray;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
gap: 20px;
}
}
.cta .btn {
margin-inline: auto;
color: var(--white);
Expand Down
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,32 @@ <h2 class="headline-md section-title" id="cta-label" data-aos="zoom-in">
</div>
</section>

<!-- Live Counting -->

<div class="container livecounting">
<div class="livecounting-container">
<div class="live-count">
<ion-icon name="person-outline" class="live-count-emoji"></ion-icon>
<div class="live-count-text-count">1000+</div>
<div class="live-count-text-wrapper">students</div>
</div>
<div class="live-count">
<ion-icon name="laptop-outline" class="live-count-emoji"></ion-icon>
<div class="live-count-text-count">100+</div>
<div class="live-count-text-wrapper">courses</div>
</div>
<div class="live-count">
<ion-icon name="time-outline" class="live-count-emoji"></ion-icon>
<div class="live-count-text-count">150000+</div>
<div class="live-count-text-wrapper">Learning hours</div>
</div>
<div class="live-count">
<ion-icon name="people-outline" class="live-count-emoji"></ion-icon>
<div class="live-count-text-count">2000+</div>
<div class="live-count-text-wrapper">Visitors</div>
</div>
</div>
</div>


<div class="parent">
Expand Down

0 comments on commit 220ebf1

Please sign in to comment.