Skip to content

Commit

Permalink
Merge pull request #120 from YooAshu/carousel
Browse files Browse the repository at this point in the history
added carousel at top
  • Loading branch information
tushargupta1504 authored Oct 3, 2024
2 parents c6f819f + 7cc91ea commit 460ef11
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 11 deletions.
Binary file added img/HD-wallpaper-medical-hospital.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/medicine-healthcare-people-conce.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/surgery-1822458_640.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 32 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,38 @@ <h3>Your Health, Our Priority</h3>
<a href="#" class="btn">EXPLORE</a>
</div>

<div style="height: 100vh; filter: brightness(0.7);">

<div id="carouselExampleFade" class="carousel slide carousel-fade" data-bs-ride="carousel" style="height: 100%;">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner" style="height: 100%;">
<div class="carousel-item active">
<img src="./img/HD-wallpaper-medical-hospital.png" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="./img/medicine-healthcare-people-conce.png" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="./img/surgery-1822458_640.png" class="d-block w-100" alt="...">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>

</section>


<!-- home section ends-->

Expand Down Expand Up @@ -267,7 +298,7 @@ <h6 class="card-text">Specializes in the medical care of infants, children</h5>

<div class="bg-mavi py-5">
<div class="container">
<div class="col d-flex flex-column">
<div class="col d-flex flex-column " id="bottom-carousel">
<div class="d-flex justify-content-center mb-5">
<div class="card-body text-center text-white w-50 d-flex flex-column">
<h1 class="card-title">''</h1>
Expand Down
28 changes: 18 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,33 +140,41 @@ header .fa-bars{
}

.home{
display: flex;
align-items: center;
/* display: flex; */
/* align-items: center; */
min-height: 100vh;
background: url(img/bg-home.png)no-repeat;
background-size: cover;
background-position: center;
/* background: url(img/bg-home.png)no-repeat; */
/* background-size: cover; */
/* background-position: center; */
padding: 0;
}

.home .content{
max-width: 50rem;
position: absolute;
z-index: 1;
top: 50%;
transform: translateY(-50%);
left: 10%;
}

.home .content h3{
font-size: 5rem;
color: #333;
color: #ffffff;
font-weight: bold;
text-shadow: 0 0 4px #ffffff;
}

.home .content span{
font-size: 3.5rem;
color: var(--blue);
color: #a7e0ff;
padding: 1rem 0;
line-height: 1.5;
}

.home .content p{
font-size: 1.5rem;
color: #000000;
color: #ffffff;
padding: 1rem 0;
line-height: 1.5;
}
Expand Down Expand Up @@ -325,13 +333,13 @@ ul li .nav-link:hover{
height: 200px;
}

.carousel-indicators button {
#bottom-carousel .carousel-indicators button {
width: 45px !important;
height: 45px !important;
border-radius: 50%;
}

.carousel-indicators button.active {
#bottom-carousel .carousel-indicators button.active {
width: 50px !important;
height: 50px !important;
}
Expand Down

0 comments on commit 460ef11

Please sign in to comment.