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
209 changes: 207 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

/* 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 */

body {
font-family: 'Roboto', sans-serif;
Expand All @@ -16,4 +15,210 @@ body {
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/

.header {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 16px 240px;
}

.header-logo {
content: url("../img/karma-logo.svg");
width: 32px;
height: 48px;
}

.nav-list {
display: flex;
flex-direction: row;
justify-content: space-around;
list-style-type: none;
width: 480px;
}

.nav-item-meet-karma {
font-weight: bold;
text-decoration: none;
color: #222222;
}

nav ul {
list-style: none;
text-align: center;
}

nav ul li {
display: inline-block;
}

nav ul li a {
display: block;
text-decoration: none;
color: #222222;
}

/* nav ul li a,
nav ul li a:after,
nav ul li a:before {
transition: all .5s;
} */

nav ul li a:hover,
a:hover {
color: #de551d;
}

/* nav.fill ul li a {
position: relative;
}

nav.fill ul li a:after {
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 0%;
content: '.';
color: transparent;
background: #aaa;
height: 1px;
}



nav.fill ul li a {
transition: all 2s;
}

nav.fill ul li a:after {
text-align: left;
content: '.';
margin: 0;
opacity: 0;
}

nav.fill ul li a:hover {
color: #fff;
z-index: 1;
}

nav.fill ul li a:hover:after {
z-index: -10;
animation: fill 1s forwards;
-webkit-animation: fill 1s forwards;
-moz-animation: fill 1s forwards;
opacity: 1;
} */

.background-image {
background-image: url("../img/first-background.jpg");
height: 720px;
width: 100%;
background-repeat: no-repeat;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}

.intro-karma {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}

.intro-karma h1 {
font-size: 56px;
font-weight: lighter;
margin-bottom: 0px;
}

.intro-karma p {
color: #ccc9c5;
font-size: 32px;
}

.button {
background-color: #de551d;
color: white;
width: 128px;
padding: 8px;
border-radius: 8px;
margin-top: 8px;
}

.info-karma h1 {
text-align: center;
font-weight: lighter;
font-size: 36.8px;
margin-top: 136px;
}

.info-karma img {
width: 192px;
height: 128px;
}

.info-karma-container {
display: flex;
justify-content: space-between;
text-align: center;
font-size: 23.2px;
margin-top: 48px;
padding: 32px 368px;
}

footer {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}

.horizontal-line {
border-top: 1px solid rgb(238, 234, 234);
width: 80%;
margin: 0rem 3rem 0rem 3rem;
align-self: center;
}

footer h1 {
font-size: 1rem;
font-weight: normal;
}

footer p {
font-size: 0.88rem;
color: rgb(180, 180, 179);
}

.logo-container img {
width: 1rem;
height: 1rem;
border: 0.1rem solid rgb(224, 218, 218);
padding: 0.28rem;
border-radius: 1rem;
}


/*
@keyframes fill {
0% {
width: 0%;
height: 1px;
}

50% {
width: 100%;
height: 1px;
}

100% {
width: 100%;
height: 100%;
background: #de551d;
}
} */
70 changes: 68 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,85 @@
<!DOCTYPE html>
<html lang="en">

<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">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>

<body>
<header class="header">
<img class="header-logo" />
<nav class="fill">
<ul class="nav-list">
<li class="nav-item-meet-karma">
<a href="#">Meet Karma</a>
</li>
<li>
<a href="#">How it Works</a>
</li>
<li>
<a href="store.html">Store</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">Help</a>
</li>
<li>
<a href="">Login</a>
</li>
</ul>
</nav>
</header>
<main>
<section class="background-image">
<div class="intro-karma">
<h1>Introducing Karma</h1>
<p>Bring WiFi with you, everywhere you go.</p>
<button class="button">Learn More</button>
</div>
</section>

<section class="info-karma">
<h1>Everyone needs a little Karma.</h1>
<div class="info-karma-container">
<article>
<img src="img/icon-devices.svg" alt="" class="" />
<p>Internet for all devices</p>
</article>
<article>
<img src="img/icon-coffee.svg" alt="" class="" />
<p>Boost your productivity</p>
</article>
<article>
<img src="img/icon-refill.svg" alt="" class="" />
<p>Pay as You Go</p>
</article>
</div>
</section>
</main>

<footer>
<hr class="">
</hr>
<h1>Join us on</h1>
<div class="logo-container">
<img src="img/twitter-icon.svg" alt="twitter icon" class="icon" />
<img src="img/facebook-icon.svg" alt="facebook icon" class="icon" />
<img src="img/instagram-icon.svg" alt="instagram icon" class="icon" />
</div>
<p>&copy; Karma Mobility,Inc.</p>
</footer>
<!-- 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>
</html>

</html>