Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Div's in about us section were adjusted now in center with hover effect and appropriate color is given to icons and divs #527

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ <h1 class="about-us-heading">About Us</h1>

<div class="col-lg-3 col-md-6 d-md-flex align-items-md-stretch">
<div class="count-box">
<i class="fas fa-user-md"></i>
<div class="icon1">
<i class="fas fa-user-md"></i>
</div>
<span data-purecounter-start="0" data-purecounter-end="95" data-purecounter-duration="1"
class="purecounter"></span>
<p><strong>Doctors Available</strong> <br><br>Doctors listed on our website.</p><br>
Expand All @@ -447,17 +449,20 @@ <h1 class="about-us-heading">About Us</h1>

<div class="col-lg-3 col-md-6 d-md-flex align-items-md-stretch">
<div class="count-box">
<i class="fas fa-bed"></i>
<div class="icon2">
<i class="fas fa-bed"></i>
</div>
<span data-purecounter-start="0" data-purecounter-end="36" data-purecounter-duration="1"
class="purecounter"></span>
<p><strong>Beds Available</strong> <br><br>Nearby emergency beds available.</p><br>
<a href="">Find out more &raquo;</a>
</div>
</div>

<div class="col-lg-3 col-md-6 d-md-flex align-items-md-stretch">
<div class="count-box">
<i class="fas fa-flask-vial"></i>
<div class="icon3">
<i class="fas fa-flask-vial"></i>
</div>
<span data-purecounter-start="0" data-purecounter-end="23" data-purecounter-duration="1"
class="purecounter"></span>
<p><strong>Nearest Labs</strong> <br><br>Test labs and clinics near you.</p><br>
Expand All @@ -467,7 +472,10 @@ <h1 class="about-us-heading">About Us</h1>

<div class="col-lg-3 col-md-6 d-md-flex align-items-md-stretch">
<div class="count-box">
<i class="fas fa-trophy"></i>
<div class="icon4">
<i class="fas fa-trophy"></i>
</div>

<span data-purecounter-start="0" data-purecounter-end="1250" data-purecounter-duration="1"
class="purecounter"></span>
<p><strong>User Reviews</strong><br> <br>Over 1K positive reviews.</p><br>
Expand Down
111 changes: 108 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ section {
#home .container {
position: relative;
margin-top: 150px;
justify-content: center;
}

#home h1 {
Expand Down Expand Up @@ -498,6 +499,55 @@ section {
border-radius: 50px;
}



.count-box {
z-index: -1;
width: 290px;
height: 327px;
margin-left: 15px;
margin-right: 15px;
margin-bottom: 2rem;
padding: 30px;
position: relative;
overflow: hidden;
background: #111111;
box-shadow: 0 0 29px 0 rgba(68, 88, 144, 0.12);
transition: all 0.3s ease-in-out;
border-radius: 50px;
z-index: 1;
transform: translateY(0);
transition: transform 0.5s ease;
}

.count-box::before {
z-index: -1;
content: "";
position: absolute;
background: #000;
right: 0;
left: 0;
bottom: 0;
top: 100%;
transition: all 0.5s;
z-index: -1;
}

.count-box:hover::before {
z-index: -1;
background: #3fbcc051;
top: 0px;
border-radius: 50px;
}









.featured-services .icon1 {
z-index: -1;
margin-bottom: 15px;
Expand Down Expand Up @@ -584,9 +634,64 @@ section {
}

.featured-services .icon-box:hover .icon4 i {
color: greenyellow;
color:green;
}






.count-box:hover .icon1 i {
color: green;
}

.count-box:hover .icon2 i {
color: orangered;
}

.count-box:hover .icon3 i {
color: yellow;
}

.count-box:hover .icon4 i {
color: goldenrod;
}





.count-box .icon1 i {
color: blue;
}

.count-box .icon2 i {
color: orangered;
}

.count-box .icon3 i {
color: yellow;
}

.count-box .icon4 i {
color: goldenrod;
}















/*################----About----################*/
.about .icon-boxes h4 {
z-index: -1;
Expand Down Expand Up @@ -779,7 +884,7 @@ section {
margin: 30px;
}

.counts .count-box {
/* .counts .count-box {
margin-top: 17px;
flex: 15%;
z-index: -1;
Expand All @@ -793,7 +898,7 @@ section {
background: #1c413b;
box-shadow: 0 0 29px 0 rgba(68, 88, 144, 0.12);
border-radius: 50px;
}
} */

.row {
padding-left: 33px;
Expand Down