mirror of
https://github.com/Nezumi-2711/practice-html-css.git
synced 2026-09-22 13:38:51 +00:00
Update code HTML/CSS 20230625
This commit is contained in:
+82
-10
@@ -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: #3685fb;
|
||||||
--primary-color-dark: #2f73d9;
|
--primary-color-dark: #2f73d9;
|
||||||
--secondary-color: #fafcff;
|
--secondary-color: #fafcff;
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
--max-width: 1200px;
|
--max-width: 1200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
*{
|
* {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
padding: .75rem 2rem;
|
padding: 0.75rem 2rem;
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
border-radius: 5rem;
|
border-radius: 5rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: .3s;
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover {
|
.btn:hover {
|
||||||
@@ -64,13 +64,13 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
img{
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Poppins', sans-serif;
|
font-family: "Poppins", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
@@ -110,11 +110,11 @@ nav {
|
|||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link a:hover{
|
.link a:hover {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
header{
|
header {
|
||||||
background-color: var(--secondary-color);
|
background-color: var(--secondary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ header{
|
|||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.destination__card:hover .destination__details{
|
.destination__card:hover .destination__details {
|
||||||
bottom: 1rem;
|
bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -357,3 +357,75 @@ header{
|
|||||||
color: var(--extra-light);
|
color: var(--extra-light);
|
||||||
background-color: var(--primary-color);
|
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
@@ -1,13 +1,16 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Practice</title>
|
<title>Practice</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.4.0/fonts/remixicon.css" rel="stylesheet">
|
<link
|
||||||
<link rel="stylesheet" href="./css/style.css">
|
href="https://cdn.jsdelivr.net/npm/remixicon@3.4.0/fonts/remixicon.css"
|
||||||
</head>
|
rel="stylesheet"
|
||||||
<body>
|
/>
|
||||||
|
<link rel="stylesheet" href="./css/style.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<div class="nav__logo">Pathway<span>.</span></div>
|
<div class="nav__logo">Pathway<span>.</span></div>
|
||||||
<ul class="nav__links">
|
<ul class="nav__links">
|
||||||
@@ -98,8 +101,8 @@
|
|||||||
<div class="section__container trip__container">
|
<div class="section__container trip__container">
|
||||||
<h2 class="section__title">Best trip package</h2>
|
<h2 class="section__title">Best trip package</h2>
|
||||||
<p class="section__subtitle">
|
<p class="section__subtitle">
|
||||||
Explore your suitable and dream places around the world. Here you can find you right
|
Explore your suitable and dream places around the world. Here you can
|
||||||
destination.
|
find you right destination.
|
||||||
</p>
|
</p>
|
||||||
<div class="trip__grid">
|
<div class="trip__grid">
|
||||||
<div class="trip__card">
|
<div class="trip__card">
|
||||||
@@ -141,5 +144,49 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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>
|
</html>
|
||||||
Reference in New Issue
Block a user