Skip to content
Closed
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
240 changes: 240 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,243 @@ body {
*/



/*Styling Karma logo*/
.logo{
padding-left: 100px;
padding-top: 10px;
}

/*Styling header of the page*/

.header{
background-color: white;
display: flex;
justify-content: space-between;
}

/*Styling the navigation bar of the page*/

.header__navBar ul{
list-style: none;
display: flex;
justify-content: space-between;
}

/*removing underline and adding grey color to navigation bar*/

.header__navBar a{
text-decoration: none;
color: grey;
}

/*Spacing the links*/

li{
margin-right: 5em;
}

/*Changing the color of the first child of the nav bar*/

.header__navBar ul li:first-child {
color: black ;
font-weight: 600;

}

/*Adding hover effect to navigation links*/

a:hover{
color: coral;
}

/*hiding hamburger menu in the desktop version*/

.hamburger__menu{
display: none;
}

/*setting background as an image for the Hero content */
.largeImage{
background-image: url("../img/first-background.jpg");
background-repeat: no-repeat;
background-size: cover;
display: block;
width: 100%;
height: 700px;
}

/*Styling and aligning the image content*/

.imageContent{
display: flex;
align-items: center;
flex-direction: column;
padding-top: 200px;
}

/*Styling the button icon on the image*/

.largeImage button{
color: white;
background-color: orangered;
border-radius: 5px;
width: 110px;
height: 35px;
}

/*Styling the text on the image*/

h1,
h3,
button{
font-weight: 100;
font-style: normal;
}

/*Increased the size of h1 to make it loog more bigger*/

h1{
font-size: 50px;
color: white;
}

/*Changed the size of h2 relative to font size of text and also changed it's color to grey*/

h3{
font-size: 2rem;
padding: 20px;
color: lightgray;

}

/*Designing the first heading under the background image*/

h2{
font-size: 2em;;
font-weight: 400;
font-style: normal;
text-align: center;
padding: 30px;
}

/*Styling the icons under h2 to bring them in a row*/

.icons{
display: flex;
justify-content: space-around;
font-size: 1.5em;
}

/*Styling text of Footer content*/

.join, .copyRight{
display: flex;
align-items: center;
justify-content: center;

}

/*Changing the color of copyright text to grey*/

.copyRight{
color: gray;
}

/*Styling Social media icons*/

.footer__icons{
display: flex;
align-items: center;
justify-content: center;

}

/*Adding round border to footer icons*/

.footer__icons img{
border: 1px solid grey;
border-radius: 50%;
padding: 0.5em;
}


/*Styling horizontal line and decreasing it's width*/

hr{
border: none;
height: 1px;
width: 80%;
background-color: gray;
}


/***************************************************Media Queries*******************************************************************************/
@media only screen and (max-width: 450px) {

/*All of the following code will come into effect when the above line is true. ie: page width is less then 450px*/

/*Decreasing the font size of page relative to original font size of desktop version*/

body{
font-size: 0.7em;
}

/*Brining back the hamburger icon*/

.hamburger__menu{
display: block;
width: 30px;
margin-left: 90%;
margin-right: 20px;
margin-top: 15px;
}

/*Hiding the navigation bar*/

.header__navBar ul{
display: none;
}

/*Assigning the background image to center*/

.largeImage{
margin: 10px;
align-content: center;
justify-content: center;
display: block;
width: 100%;
}

/*Assigning the content of the image to center and adding wrap so it can go on to next line if required*/

.imageContent{
flex-wrap: wrap;
text-align: center;
}

/*Due to screen size being small bringing the icons under h2 in a vertical position*/

.icons{
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin-left: 50%;
margin-right: 50%;

}

/*Changing the size of teh icons*/

.icons img{
width: 100px;
height: 100px;
}




}


138 changes: 127 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,135 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Karma</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body>

<link
href="https://fonts.googleapis.com/css?family=Roboto:400,500,300"
rel="stylesheet"
type="text/css"
/>
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<!-- Add your HTML markup here -->
<!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc -->
<!-- All the images you need are in the 'img' folder -->

</body>
<!--Karma logo-->

<header class="header">
<div class="header__logoWrapper">
<img
class="logo"
src="/img/karma-logo.svg"
alt="Karma logo"
width="40px"
height="40px"
/>
</div>

<!--Navigation bar-->

<nav class="header__navBar">

<!--Hamburger icon-->

<img class="hamburger__menu" src="/img/menu-hamburger.svg" alt="icon-hamburger">

<!--Navigation links-->
<ul>
<li><a href="#" class="nav-Link">Meet Karma</a></li>
<li><a href="#" class="nav-Link">How it Works</a></li>
<li><a href="#" class="nav-Link">Store</a></li>
<li><a href="#" class="nav-Link">Blog</a></li>
<li><a href="#" class="nav-Link">Help</a></li>
<li><a href="#" class="nav-Link">Login</a></li>
</ul>
</nav>
</header>

<!--Content with image at the back-->

<section class="largeImage">
<div class="imageContent">
<h1>Introducing Karma</h1>
<h3>Bring WiFi with you, everywhere you go.</h3>
<button>Learn More</button>
</div>
</section>

<!--Content at the bottom of the image-->

<h2>Everyone needs a little Karma.</h2>

<section class="icons">
<div class="icon1">
<img
src="/img/icon-devices.svg"
alt="icon-devices"
width="200px"
height="200px"
/>
<p>Internet for all devices</p>
</div>
<div class="icon2">
<img
src="/img/icon-coffee.svg"
alt="icon-coffee"
width="200px"
height="200px"
/>
<p>Boost your productivity</p>
</div>
<div class="icon3">
<img
src="/img/icon-refill.svg"
alt="icon-refill"
width="200px"
height="200px"
/>
<p>Pay as You Go</p>
</div>
</section>

<!--Adding horizontal line-->
<hr />

<!--Footer content of the page-->


<footer class="footer">
<p class="join">Join us on</p>

<!--Social media icons-->

<div class="footer__icons">
<img
src="/img/twitter-icon.svg"
alt="twitter-icon"
width="30px"
height="30px"
/>
<img
src="/img/facebook-icon.svg"
alt="facebook-icon"
width="30px"
height="30px"
/>
<img
src="/img/instagram-icon.svg"
alt="instagram-icon"
width="30px"
height="30px"
/>
</div>
<p class="copyRight">Karma Mobility, Inc.</p>
</footer>
</body>
</html>