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
187 changes: 187 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,192 @@ body {
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

section{
min-height: 70vh;
}

li {
list-style: none;
}

a {
text-decoration: none;
color: rgb(121, 121, 119);
}

a:hover{
color: #F15B2A;
}

a[type="button"] {
color: #fff;
}

h1{
font-weight: 300;
font-size: 60px;
color: #fff;
}

h2{
font-weight: 400;
font-size: 50px;
margin-bottom: 10px;
color: rgba(0, 0, 0, 0.774);
}

/* Header */

.logo{
padding: 20px 0;
width: 3%;
}
/* Nav */
nav{
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 5rem;
cursor: pointer;
}

nav ul{
display: inline-flex;
}

nav li{
font-weight: 500;
font-size: 20px;
padding: 0 20px;
color: rgba(0, 0, 0, 0.808)
}

nav li a{
font-weight: 400;
}

/* End of Header */

/* Section Hero */
.hero-container{
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-image: url(../img/first-background.jpg);
}

.hero-container p{
font-size: 35px;
font-weight: 300;
color: #fff;
}

.hero-content{
background-color: beige;
text-align: center;
}

.btn{
background-color: #F15B2A;
color: #fff;
font-size: 25px;
border-radius: 3px;
margin-top: 50px;
padding: 15px 40px;
}

/* End of Section Hero */

/* Section Contnent */
.content{
height: 85vh;
padding: 8rem 0;
text-align: center;
}

.content ul{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
text-align: center;
margin: 10px;
}

figure{
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
text-align: center;
height: 30vh;
width: 27%;
}

figcaption{
font-size: 25px;
text-align: center;
color: rgba(0, 0, 0, 0.808);
}

.img-icon{
height: 20vh;
}

hr{
margin: 0 5rem;
}

/* End of Section Content */

/* Footer */
footer{
height: 40vh;
margin: 0 auto;
}

.footer-content{
line-height: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 10px;
}

.footer-content h3{
font-size: 1.3rem;
font-weight: 400;
color: rgba(0, 0, 0, 0.808)
}

.footer-content ul{
display: flex;
flex-direction: row;
align-items: center;
}

.socials-icon {
border-radius: 100%;
border: 1px solid rgb(224, 214, 214);
padding: 15px;
width: 70%;
height: 10vh;
margin: 20px 10px;
}

.footer-content p {
font-size: 20px;
font-weight: 300;
color: rgb(109, 103, 103);
}

/* End of Footer */
85 changes: 80 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,94 @@
<!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>

<!-- 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>

<!-- 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 -->
<header>
<div class="header container">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This div with the class header container is not looking good, however, your header must a least have 2 child elements, the logo, and the nav list, organizing it this way will make your CSS much clear.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can You please suggest to me how I can write it down please. Thanks

<nav>
<img src="img/karma-logo.svg" alt="logo" class="logo">
<ul>
<li>Meet karma</li>
<li><a href="#hero">How it Works</a></li>
<li><a href="#">Store</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Login</a></li>
</ul>
</nav>
</div>
</header>
<!--end Header -->

<!-- hero section -->
<main>
<section id="hero">
<div class="hero-container">

<h1>Introducing Karma</h1>
<p>Bring Wifi with you, everywhere you go.</p>
<a href="#Howitworks" type="button" class="btn">Learn More</a>
</div>
</section>

<section class="content">
<h2>Everyone needs a little Karma.</h2>

<ul class="karma">
<figure>
<li><img src="img/icon-devices.svg" alt="icon-devices" height="128" width="128"></li>
<figcaption>Internet for all devices</figcaption>
</figure>

<figure>
<li><img src="img/icon-coffee.svg" alt="icon-coffee" height="128" width="128"></li>
<figcaption>Boost your productivity</figcaption>
</figure>

<figure>
<li><img src="img/icon-refill.svg" alt="icon-refill" height="128" width="128"></li>
<figcaption>Pay as You Go</figcaption>
</figure>

</ul>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Writing your ul inside your figure tag would be much better than keeping it outside the figure, please re-organize your HTML structure in this area,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can You please suggest to me how I can write it down please. Thanks


</section>
</main>

<hr>

<footer>
<div class="footer-content">
<h3>Join us on</h3>
<ul>
<li><a href="#"><img class="socials-icon" src="img/twitter-icon.svg" alt="twitter-icon" width="50pt"
height="50pt"></a></li>

<li><a href="#"><img class="socials-icon" src="img/facebook-icon.svg" alt="facebook-icon"
width="50pt" height="50pt"></a></li>
<li><a href="#"><img class="socials-icon" src="img/instagram-icon.svg" alt="instagram-icon"
width="50pt" height="50pt"></a></li>
</ul>
<p>&copy;Karma Mobility, Inc.</p>
</div>
</footer>

</body>

</html>
</body>

</html>