Skip to content
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

first commit for adding natours header,logo,and content section also … #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
55 changes: 54 additions & 1 deletion Natours/starter/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,57 @@ Light green: #7ed56f
Medium green: #55c57a
Dark green: #28b485

*/
*/

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

body{
font-family:"Lato", sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 1.7;
color: #777;
padding: 20px;
}
.header{
position:relative;
height: 95vh;
background-position: top;
background-size: cover;
background-image: linear-gradient(to right bottom,rgba(126, 213, 111, 0.8),rgba(40, 180, 133, 0.8)),url(../img/hero-small.jpg);
clip-path: polygon(0 0,100% 0,100% 75%,0 100%);
}
.logo-box{
position:absolute;
top: 40px;
left:40px;
}
.logo{
height: 35px;
}
.text-box{
position:absolute;
top:40%;
left:50%;
transform: translate(-50%,-50%);
}
.primary-heading{
color: #fff;
text-transform: uppercase;
}
.primary-heading-main{
display: block;
font-size: 60px;
font-weight: 400;
letter-spacing: 35px;
}
.primary-heading-sub{
display: block;
font-size: 20px;
font-weight: 700;
letter-spacing: 17.4px;
}
17 changes: 15 additions & 2 deletions Natours/starter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@
<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="primary-heading">
<span class="primary-heading-main">
outdoors
</span>
<span class="primary-heading-sub">
is where life happens
</span>
</h1>
</div>
</header>
</body>
</html>