From 57dd9c23e0821cd0ac7a83ee828ea52512a56b9c Mon Sep 17 00:00:00 2001 From: Loi Phan Date: Sat, 24 Jun 2023 21:45:41 +0700 Subject: [PATCH] Update code HTML/CSS --- css/style.css | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 48 +++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) diff --git a/css/style.css b/css/style.css index 9376f53..42a4ff5 100644 --- a/css/style.css +++ b/css/style.css @@ -272,6 +272,7 @@ header{ color: var(--extra-light); background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px); + -webkit-backdrop-filter: blur(5px); border-radius: 10px; z-index: 1; transition: 0.3s; @@ -291,3 +292,68 @@ header{ 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); +} \ No newline at end of file diff --git a/index.html b/index.html index f00ff34..337c841 100644 --- a/index.html +++ b/index.html @@ -93,5 +93,53 @@ + +
+
+

Best trip package

+

+ Explore your suitable and dream places around the world. Here you can find you right + destination. +

+
+
+ trip +
+

Wasserwerk Frelberg, Germany

+
4.2
+
+
From $300
+ +
+
+
+
+ trip +
+

Patagonia, Argentina and Chile

+
4.5
+
+
From $450
+ +
+
+
+
+ trip +
+

The Dolomites, Italy

+
4.7
+
+
From $400
+ +
+
+
+
+
+ +
+
+
\ No newline at end of file