mirror of
https://github.com/Nezumi-2711/practice-html-css.git
synced 2026-09-22 13:38:51 +00:00
Update code HTML/CSS
This commit is contained in:
@@ -272,6 +272,7 @@ header{
|
|||||||
color: var(--extra-light);
|
color: var(--extra-light);
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(4px);
|
||||||
|
-webkit-backdrop-filter: blur(5px);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
@@ -291,3 +292,68 @@ header{
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.trip {
|
||||||
|
background-color: var(--secondary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.trip__container :is(.section__title, .section__subtitle, .view__all) {
|
||||||
|
text-align: center;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.trip__grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 2rem;
|
||||||
|
margin: 4rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.trip__card {
|
||||||
|
border-radius: 1rem;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.trip__details {
|
||||||
|
padding: 1rem;
|
||||||
|
display: grid;
|
||||||
|
gap: 0.5rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-dark);
|
||||||
|
background-color: var(--extra-light);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rating {
|
||||||
|
color: goldenrod;
|
||||||
|
}
|
||||||
|
|
||||||
|
.booking__price {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.price span {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--text-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.book__now {
|
||||||
|
padding: 0.5rem 1.5rem;
|
||||||
|
color: var(--primary-color);
|
||||||
|
outline: none;
|
||||||
|
border: 1px solid var(--primary-color);
|
||||||
|
border-radius: 5rem;
|
||||||
|
background-color: transparent;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.book__now:hover {
|
||||||
|
color: var(--extra-light);
|
||||||
|
background-color: var(--primary-color);
|
||||||
|
}
|
||||||
+48
@@ -93,5 +93,53 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="trip">
|
||||||
|
<div class="section__container trip__container">
|
||||||
|
<h2 class="section__title">Best trip package</h2>
|
||||||
|
<p class="section__subtitle">
|
||||||
|
Explore your suitable and dream places around the world. Here you can find you right
|
||||||
|
destination.
|
||||||
|
</p>
|
||||||
|
<div class="trip__grid">
|
||||||
|
<div class="trip__card">
|
||||||
|
<img src="./assets/trip-1.jpg" alt="trip" />
|
||||||
|
<div class="trip__details">
|
||||||
|
<p>Wasserwerk Frelberg, Germany</p>
|
||||||
|
<div class="rating"><i class="ri-star-fill"></i> 4.2</div>
|
||||||
|
<div class="booking__price">
|
||||||
|
<div class="price"><span>From</span> $300</div>
|
||||||
|
<button class="book__now">Book Now</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="trip__card">
|
||||||
|
<img src="./assets/trip-2.jpg" alt="trip" />
|
||||||
|
<div class="trip__details">
|
||||||
|
<p>Patagonia, Argentina and Chile</p>
|
||||||
|
<div class="rating"><i class="ri-star-fill"></i> 4.5</div>
|
||||||
|
<div class="booking__price">
|
||||||
|
<div class="price"><span>From</span> $450</div>
|
||||||
|
<button class="book__now">Book Now</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="trip__card">
|
||||||
|
<img src="./assets/trip-3.jpg" alt="trip" />
|
||||||
|
<div class="trip__details">
|
||||||
|
<p>The Dolomites, Italy</p>
|
||||||
|
<div class="rating"><i class="ri-star-fill"></i> 4.7</div>
|
||||||
|
<div class="booking__price">
|
||||||
|
<div class="price"><span>From</span> $400</div>
|
||||||
|
<button class="book__now">Book Now</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="view__all">
|
||||||
|
<button class="btn">View All</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user