Skip to content

Main #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Main #84

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 175 additions & 1 deletion Natours/starter/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,178 @@ Light green: #7ed56f
Medium green: #55c57a
Dark green: #28b485

*/
*/

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "Lato", sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.7;
color: #777;
padding: 30px;
}

.header {
height: 95vh;
background-image: linear-gradient(
to right bottom,
rgba(126, 213, 111, 0.8),
rgba(39, 180, 133, 0.8)
),
url(../img/hero.jpg);
background-size: cover;
background-position-y: top;
position: relative;

clip-path: polygon(0 0, 100% 0, 100% 70vh, 0 100%);
}

.logo-box {
position: absolute;
top: 40px;
left: 40px;
}

.logo {
height: 35px;
}

.heading-primary {
color: #fff;
text-transform: uppercase;

backface-visibility: hidden;
margin-bottom: 60px;
}

.heading-primary-main {
display: block;
font-size: 60px;
font-weight: 400;
letter-spacing: 35px;

animation-name: moveInLeft;
animation-duration: 1s;
animation-timing-function: ease-in;
}

.heading-primary-sub {
display: block;
font-size: 20px;
font-weight: 700;
letter-spacing: 17.4px;

animation-name: moveInRight;
animation-duration: 1s;
animation-timing-function: ease-in-out;
}

.text-box {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}

@keyframes moveInLeft {
0% {
opacity: 0;
transform: translate(-100px);
}
80% {
transform: translate(10px);
}
100% {
opacity: 1;
transform: translate(0);
}
}

@keyframes moveInRight {
0% {
opacity: 0;
transform: translate(50px);
}
80% {
transform: translate(-10px);
}
100% {
opacity: 1;
transform: translate(0);
}
}

@keyframes moveInBotton {
0% {
opacity: 0;
transform: translateY(30px);
}
100% {
opacity: 1;
transform: translate(0);
}
}

.btn:link,
btn:visited {
text-transform: uppercase;
text-decoration: none;
padding: 15px 40px;
display: inline-block;
border-radius: 100px;

transition: all 0.2s;
position: relative;
}

.btn-white {
background: #fff;
color: #777;
}

.btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
transform: translateY(-1px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn::after {
content: "";
display: inline-block;
height: 100%;
width: 100%;
border-radius: 100px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
transition: all 0.4s;
}

.btn-white::after {
background-color: red;
}

.btn:hover::after {
transform: scaleX(1.4) scaleY(1.6);
opacity: 0;
}

.btn-animated {
animation-name: moveInBotton;
animation-duration: 0.5s;
animation-timing-function: ease-in-out;
animation-delay: 0.75s;
animation-fill-mode: backwards;
}
44 changes: 29 additions & 15 deletions Natours/starter/index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900" rel="stylesheet">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="css/icon-font.css">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" type="image/png" href="img/favicon.png">

<title>Natours | Exciting tours for adventurous people</title>
</head>
<body>


</body>
<link
href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900"
rel="stylesheet"
/>

<link rel="stylesheet" href="css/icon-font.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="shortcut icon" type="image/png" href="img/favicon.png" />

<title>Natours | Exciting tours for adventurous people</title>
</head>
<body>
<header class="header">
<div class="logo-box">
<img src="img/logo-white.png" alt="logo" class="logo" />
</div>

<div class="text-box">
<h1 class="heading-primary">
<span class="heading-primary-main">Outdoors</span>
<span class="heading-primary-sub">is where life happens</span>
</h1>
<a href="#" class="btn btn-white btn-animated">Discover our tours</a>
</div>
</header>
</body>
</html>