Skip to content
151 changes: 142 additions & 9 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,147 @@ body {
-webkit-font-smoothing: antialiased;
}

/**
* Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
h1,
h2,
h3,
h4,
h5,
h6,
p{
font-weight: lighter;
}

/* .header,
.main,
.footer{
padding: 0 1.5rem;
max-width: 1200px;
margin: 0 auto;
} */

.header{
display: flex;
align-items: center;
justify-content: space-between;
height: 5rem;
margin: 2px 100px;
}

.header_logo{
width: 20px;
height: 10rem;
}

.navigation_list{
display: flex;
align-items: center;
list-style: none;
}

.navigation_item{
padding: 20px;
font-size: large;
}

.navigation_link{
text-decoration: none;
color: grey;
}

.navigation_link:hover{
color: rgba(214, 65, 12, 0.842);
}

.main{
background-image: url(../img/first-background.jpg);
background-repeat: no-repeat;
background-position: center;
color: white;
padding: 80px;
text-align: center;
font-size: xx-large;
margin: 5px 40px;
}

.main h1{
margin-top: 7rem;
}

.main p{
margin-bottom: 4rem;
}

.main button{
margin-bottom: 10rem;
background-color: rgba(214, 65, 12, 0.842);
color: white;
padding: 20px 50px;
border-radius: 10px;
}

.second_heading{
text-align: center;
margin-top: 5rem;
font-size: 50px;
}

.container{
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 4rem;
}

.images{
width: 200px;
}

.article_title{
font-size: 40px;
text-wrap: nowrap;
}

.articles{
padding: 20px 40px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

/* .container{
Copy link

Choose a reason for hiding this comment

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

Hi, as best practice, its better to remove code sections you are not using, instead of commenting it out

display: grid;
align-items: center;
justify-content: center;
grid-gap: 200px;
grid-template-columns: 200px 200px 200px;
grid-template-rows: 50px 300px;
} */

.footer{
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}

.footer p {
font-size: 20px;
}

.copyright{
color: lightgray;
}

.footer_img{
padding: 10px;
width: 20px;
height: 20px;
border: solid 1px lightgray;
border-radius: 50%;
margin: 5px;
}

hr{
width: 90%;
}
95 changes: 92 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,99 @@
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<header class="header">
<a href="#">
<img
src="img/karma-logo.svg"
alt="karma logo"
class="header_logo"
/>
</a>
<nav>
<ul class="navigation_list">
<li class="navigation_item">
<a class="navigation_link" href="#">Meet Karma</a>
Copy link

Choose a reason for hiding this comment

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

this item is of color black.

</li>
<li class="navigation_item">
<a class="navigation_link" href="#">How it Works</a>
</li>
<li class="navigation_item">
<a class="navigation_link" href="#">Store</a>
</li>
<li class="navigation_item">
<a class="navigation_link" href="#">Blog</a>
</li>
<li class="navigation_item">
<a class="navigation_link" href="#">Help</a>
</li>
<li class="navigation_item">
<a class="navigation_link" href="#">Login</a>
</li>
</ul>
</nav>
</header>

<!-- 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 -->
<main class="content">
<section class="main">
<h1>Introducing Karma</h1>
<p>Bring WiFi with you, everywhere you go.</p>
<button class="orange-button">Learn More</button>
Copy link

Choose a reason for hiding this comment

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

this class orange-button doesnt exist in your css, you can remove unused classes. Also, this button seems to have a border width on it, can you remove it?

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

<section class="container">
<article class="articles">
<img
class="images"
src="img/icon-devices.svg"
alt="devices image"
/>
<p class="article_title">Internet for all devices</p>
</article>

<article class="articles">
<img
class="images"
src="img/icon-coffee.svg"
alt="devices image"
/>
<p class="article_title">Boost your productivity</p>
</article>

<article class="articles">
<img
class="images"
src="img/icon-refill.svg"
alt="devices image"
/>
<p class="article_title">Pay as You Go</p>
</article>
</section>

</section>
</main>
<hr>
Copy link

Choose a reason for hiding this comment

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

the color for this element is a bit different

<footer class="footer">
<section class="footer_content">
<p>Join us on</p>
<img
class="footer_img"
src="img/twitter-icon.svg"
alt="twitter-icon"
/>
<img
class="footer_img"
src="img/facebook-icon.svg"
alt="facebook-icon"
/>
<img
class="footer_img"
src="img/instagram-icon.svg"
alt="instagram-icon"
/>
<p class="copyright">@Karma Mobility Inc.</p>
</section>
</footer>
</body>
</html>