Init code
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 40 KiB |
@@ -0,0 +1,276 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');
|
||||||
|
|
||||||
|
:root{
|
||||||
|
--primary-color: #3685fb;
|
||||||
|
--primary-color-dark: #2f73d9;
|
||||||
|
--secondary-color: #fafcff;
|
||||||
|
--text-dark: #0d213f;
|
||||||
|
--text-light: #767268;
|
||||||
|
--extra-light: #ffffff;
|
||||||
|
--max-width: 1200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
*{
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__container {
|
||||||
|
max-width: var(--max-width);
|
||||||
|
margin: auto;
|
||||||
|
padding: 5rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 2rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-bottom: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__title {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-dark);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section__subtitle {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--text-dark);
|
||||||
|
max-width: calc(var(--max-width) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
padding: .75rem 2rem;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--extra-light);
|
||||||
|
background-color: var(--primary-color);
|
||||||
|
border-radius: 5rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: .3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
background-color: var(--primary-color-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
padding: 1rem;
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
width: 100%;
|
||||||
|
max-width: var(--max-width);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav__logo {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-dark);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav__logo span {
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav__links {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link a {
|
||||||
|
padding: 0 1rem;
|
||||||
|
color: var(--text-dark);
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link a:hover{
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
header{
|
||||||
|
background-color: var(--secondary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__container {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__image {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__image img {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
border: 0.5rem solid var(--extra-light);
|
||||||
|
border-radius: 2rem;
|
||||||
|
box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__image img:nth-child(1) {
|
||||||
|
max-width: 350px;
|
||||||
|
transform: translate(-75%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__image img:nth-child(2) {
|
||||||
|
max-width: 250px;
|
||||||
|
transform: translate(0%, -25%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__container > div {
|
||||||
|
max-width: 400px;
|
||||||
|
display: grid;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__content .sub__header {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__content h1 {
|
||||||
|
font-size: 3rem;
|
||||||
|
line-height: 4rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header__content .action__btns {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.story {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video__image {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video__image img {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
border-radius: 100%;
|
||||||
|
box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.video__image span {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 100%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.video__image span i {
|
||||||
|
padding: 0.5rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: red;
|
||||||
|
background-color: var(--extra-light);
|
||||||
|
border-radius: 100%;
|
||||||
|
box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.story > span {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__nav {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__nav span {
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
display: grid;
|
||||||
|
place-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__nav span:hover {
|
||||||
|
color: var(--extra-light);
|
||||||
|
background-color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__card {
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
isolation: isolate; /* Note */
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__card img {
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__details {
|
||||||
|
position: absolute;
|
||||||
|
width: calc(100% - 2rem);
|
||||||
|
padding: 1rem;
|
||||||
|
bottom: -6rem;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
text-align: center;
|
||||||
|
color: var(--extra-light);
|
||||||
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
border-radius: 10px;
|
||||||
|
z-index: 1;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destination__card:hover .destination__details{
|
||||||
|
bottom: 1rem;
|
||||||
|
}
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<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>
|
||||||
|
<nav>
|
||||||
|
<div class="nav__logo">Pathway<span>.</span></div>
|
||||||
|
<ul class="nav__links">
|
||||||
|
<li class="link"><a href="#">Home</a></li>
|
||||||
|
<li class="link"><a href="#">Destination</a></li>
|
||||||
|
<li class="link"><a href="#">Pricing</a></li>
|
||||||
|
<li class="link"><a href="#">Reviews</a></li>
|
||||||
|
</ul>
|
||||||
|
<button class="btn">Contact Us</button>
|
||||||
|
</nav>
|
||||||
|
<header>
|
||||||
|
<div class="section__container header__container">
|
||||||
|
<div class="header__image">
|
||||||
|
<img src="assets/header-1.jpg" alt="header" />
|
||||||
|
<img src="assets/header-2.jpg" alt="header" />
|
||||||
|
</div>
|
||||||
|
<div class="header__content">
|
||||||
|
<div>
|
||||||
|
<p class="sub__header">Book Now</p>
|
||||||
|
<h1>The Smiling 😊<br />agent for travel</h1>
|
||||||
|
<p class="section__subtitle">
|
||||||
|
Make your travel more enjoyable with us. We are the best travel
|
||||||
|
agency and we are providing the best travel services for our
|
||||||
|
clients.
|
||||||
|
</p>
|
||||||
|
<div class="action__btns">
|
||||||
|
<button class="btn">Plan a Trip</button>
|
||||||
|
<div class="story">
|
||||||
|
<div class="video__image">
|
||||||
|
<img src="assets/story.jpg" alt="story" />
|
||||||
|
<span><i class="ri-play-fill"></i></span>
|
||||||
|
</div>
|
||||||
|
<span>Watch our story</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="section__container destination__container">
|
||||||
|
<div class="section__header">
|
||||||
|
<div>
|
||||||
|
<h2 class="section__title">Explore top destinations</h2>
|
||||||
|
<p class="section__subtitle">
|
||||||
|
Explore your suitable and dreams places around the world. Here you
|
||||||
|
can find your right destination.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="destination__nav">
|
||||||
|
<span><i class="ri-arrow-left-s-line"></i></span>
|
||||||
|
<span><i class="ri-arrow-right-s-line"></i></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="destination__grid">
|
||||||
|
<div class="destination__card">
|
||||||
|
<img src="./assets/destination-1.jpg" alt="destination" />
|
||||||
|
<div class="destination__details">
|
||||||
|
<p class="destination__title">Banff</p>
|
||||||
|
<p class="destination__subtitle">Canada</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="destination__card">
|
||||||
|
<img src="./assets/destination-2.jpg" alt="destination" />
|
||||||
|
<div class="destination__details">
|
||||||
|
<p class="destination__title">Machu Picchu</p>
|
||||||
|
<p class="destination__subtitle">Peru</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="destination__card">
|
||||||
|
<img src="./assets/destination-3.jpg" alt="destination" />
|
||||||
|
<div class="destination__details">
|
||||||
|
<p class="destination__title">Lauterbrunnen</p>
|
||||||
|
<p class="destination__subtitle">Switzerland</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="destination__card">
|
||||||
|
<img src="./assets/destination-4.jpg" alt="destination" />
|
||||||
|
<div class="destination__details">
|
||||||
|
<p class="destination__title">Zhangjiajie</p>
|
||||||
|
<p class="destination__subtitle">China</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||