Update code HTML/CSS 20230625

This commit is contained in:
Nezumi
2023-06-25 11:04:31 +07:00
parent 57dd9c23e0
commit 2e35febe68
2 changed files with 383 additions and 264 deletions
+82 -10
View File
@@ -1,6 +1,6 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap");
:root{
:root {
--primary-color: #3685fb;
--primary-color-dark: #2f73d9;
--secondary-color: #fafcff;
@@ -10,7 +10,7 @@
--max-width: 1200px;
}
*{
* {
padding: 0;
margin: 0;
box-sizing: border-box;
@@ -45,7 +45,7 @@
}
.btn {
padding: .75rem 2rem;
padding: 0.75rem 2rem;
outline: none;
border: none;
font-size: 1rem;
@@ -53,7 +53,7 @@
background-color: var(--primary-color);
border-radius: 5rem;
cursor: pointer;
transition: .3s;
transition: 0.3s;
}
.btn:hover {
@@ -64,13 +64,13 @@ a {
text-decoration: none;
}
img{
img {
width: 100%;
display: block;
}
body {
font-family: 'Poppins', sans-serif;
font-family: "Poppins", sans-serif;
}
nav {
@@ -110,11 +110,11 @@ nav {
transition: 0.3s;
}
.link a:hover{
.link a:hover {
color: var(--primary-color);
}
header{
header {
background-color: var(--secondary-color);
}
@@ -278,7 +278,7 @@ header{
transition: 0.3s;
}
.destination__card:hover .destination__details{
.destination__card:hover .destination__details {
bottom: 1rem;
}
@@ -357,3 +357,75 @@ header{
color: var(--extra-light);
background-color: var(--primary-color);
}
.gallary__container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}
.image__gallary {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.gallary__col {
display: grid;
place-content: center;
gap: 1rem;
}
.gallary__col img {
border-radius: 1rem;
box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}
.gallary__content {
display: flex;
align-items: center;
/* justify-content: center;
flex-direction: column; */
}
.gallary__content > div {
max-width: 400px;
}
.gallary__content .section__subtitle {
margin-bottom: 2rem;
}
.subscribe {
background-color: var(--secondary-color);
}
.subscribe__container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}
.subscribe__form {
display: flex;
align-items: center;
justify-content: center;
}
.subscribe__form form {
width: 100%;
max-width: 400px;
display: flex;
background-color: var(--extra-light);
box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
border-radius: 5rem;
}
.subscribe__form input {
width: 100%;
padding: 1rem;
outline: none;
border: none;
border-radius: 5rem;
font-size: 1rem;
}
+57 -10
View File
@@ -1,13 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Practice</title>
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.4.0/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<link
href="https://cdn.jsdelivr.net/npm/remixicon@3.4.0/fonts/remixicon.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<nav>
<div class="nav__logo">Pathway<span>.</span></div>
<ul class="nav__links">
@@ -98,8 +101,8 @@
<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.
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">
@@ -141,5 +144,49 @@
</div>
</div>
</section>
</body>
<section class="gallary">
<div class="section__container gallary__container">
<div class="image__gallary">
<div class="gallary__col">
<img src="./assets/gallery-1.jpg" alt="gallary" />
</div>
<div class="gallary__col">
<img src="./assets/gallery-2.jpg" alt="" />
<img src="./assets/gallery-3.jpg" alt="" />
</div>
</div>
<div class="gallary__content">
<div>
<h2 class="section__title">
Out trip gallary that will inspire you
</h2>
<p class="section__subtitle">
Explore your suitable and dream places around the world. Here you
can find your right destination.
</p>
<button class="btn">View All</button>
</div>
</div>
</div>
</section>
<section class="subscribe">
<div class="section__container subscribe__container">
<div class="subscribe__content">
<h2 class="section__title">Subscribe to get special prize</h2>
<p class="section__subtitle">
Explore your suitable and dream places around the world. Here you
can find your right destination.
</p>
</div>
<div class="subscribe__form">
<form action="">
<input type="email" placeholder="Your email here" />
<button class="btn" type="submit">Send</button>
</form>
</div>
</div>
</section>
</body>
</html>