Skip to content
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
155 changes: 152 additions & 3 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */

/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
:root {
--grey-dark: #292b2c;
--grey-light: #e4e4e4;
--orange-dark: #c05326;
--orange-light: #f7eae4;
--white: #fff;
}

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

body {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
}

.btn {
padding: 1rem;
border-radius: 0.5em;
border-color: transparent;
font-size: 1rem;
font-family: "Roboto", sans-serif;
}

.orange-color {
background-color: var(--orange-dark);
color: white;
}

/**
Expand All @@ -16,4 +42,127 @@ body {
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/

/* General properties*/
ul {
list-style-type: none;
}

/* Navigation bar */

.navbar .container {
width: 95%;
margin: 20px auto;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
width: 3rem;
margin-left: 4rem;
}

.navbar ul {
display: flex;
margin-right: 5rem;
/* flex-grow: 1 2; */
}

.navbar ul li {
margin-left: 1.5rem;
font-size: 1.2rem;
/* font-weight: bold; */
}

/* Header Hero Section */

header .container {
height: 75vh;
width: 95%;
margin: 20px auto;
background-image: url(/img/first-background.jpg);
background-size: cover;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

header .container h2,
header .container button {
margin: 1.3rem;
}

h1,
h2 {
font-weight: normal;
}

h1 {
font-size: 3rem;
}
/* Section */

.boxes .container {
width: 95%;
margin: 20px auto;
display: flex;
justify-content: space-between;
}

.boxes h2 {
font-size: 2.3rem;
font-weight: lighter;
padding-top: 1.4rem;
padding-bottom: 1.4rem;
text-align: center;
}

.boxes img {
width: 12rem;
}

.boxes p {
margin-top: 1.2rem;
font-size: 1.2rem;
}
/* Footer */

footer img {
width: 1.2rem;
}

header h1,
header h2 {
color: white;
}

footer .container {
/* width:95% */
margin: 20px auto;
width: 95%;
border-top: 2px solid var(--grey-light);
padding-top: 0.7rem;
padding-bottom: 1rem;
display: flex;
flex-direction: column;
/* justify-content: space-between; */
align-items: center;
}

footer .social-media {
display: flex;
justify-content: space-between;
}

footer .social-media li img {
/* margin: 4rem;
padding: 5rem; */

/* padding: 0.7rem; */
box-sizing: content-box;
margin: 0.5rem;
padding: 0.5rem;
border: 1px solid var(--grey-light);
border-radius: 100px;
}
90 changes: 79 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,87 @@
<!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>
<!-- Navigation Menu Start-->
<nav class="navbar">
<div class="container">
<img
class="logo"
src="/img/karma-logo.svg"
alt="Karma corportation logo"
/>
<ul class="nav">
<li>Meet Karma</li>
<li>How it Works</li>
<li>Store</li>
<li>Blog</li>
<li>Help</li>
<li>Login</li>
</ul>
</div>
</nav>
<!-- Navigation Menu End-->

<!-- Hero Header Start-->
<header>
<div class="container">
<h1>Introduction to Karma</h1>
<h2>Bring WiFi with you, everywhere you go.</h2>
<button class="btn orange-color">Learn More</button>
</div>
</header>
<!-- Hero Header End-->

<section class="boxes">
<h2>Everone needs a little Karma.</h2>

<div class="container">
<div class="box">
<img src="/img/icon-devices.svg" alt="Internet for all devices" />
<p>Internet for all devices</p>
</div>
<div class="box">
<img src="img/icon-coffee.svg" alt="Boost your productivity" />
<p>Boost your productivity</p>
</div>
<div class="box">
<img src="img/icon-refill.svg" alt="Pay as You go" />
<p>Pay as You Go</p>
</div>
</div>
</section>

<footer>
<div class="container">
<p>Join us on</p>
<ul class="social-media">
<li><img src="img/twitter-icon.svg" alt="Join us on twiter" /></li>
<li><img src="img/facebook-icon.svg" alt="Join us on facebook" /></li>
<li>
<img src="img/instagram-icon.svg" alt="Join us on instagram" />
</li>
</ul>
<p>© Karma Mobility, Inc.</p>
</div>
</footer>
</body>
</html>