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
130 changes: 130 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,134 @@ body {
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/

/*logo sizing*/
#logo{
height: 2.5em;
width: 2.5em;
;
}

/*styling for the navigation section*/
#top{
margin: 2em 0 0 15em;

}
nav{
display: flex;
width: 84%;
padding: 20px;
align-items: center;
justify-content: space-between;
}

nav ul li {
display: inline-block;
list-style: none;
padding: 20px;
text-decoration: none;
color: gray
}

/* styling for the links in the nav_bar*/
a{
color: gray;
}

a:link{
text-decoration: none;
}

a:active{
color: gray
}

a:hover{
color: orange;
}

span{
color: black;
}

/*styling for the main section*/
#main_image{
display:flex;
align-items: center;
justify-content: center;
height: auto;
}

#main_image .btn {
position: absolute;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
background-color: orangered;
color: white;
font-size: 16px;
border: none;
cursor: pointer;
border-radius: 5px;
padding: 22px 28px;
margin: 90px 0 0 0;
}

.center_text{
font-family: 'Roboto', sans-serif;
position: absolute;
padding: 40px 0 130px 0;
text-align: center;
color: white;
margin-bottom: 40px;
}

.heading_text{
font-size:50px;
margin-bottom: 37px;
}

.under_heading{
font-size: 30px;
}

.icons_heading{
font-size: 3em;
text-align: center;
margin-top: 3.5em;
}

.icon{
height: 10em;
width: 10em;

}

.icon_text{
display: flex;
flex-direction: row;
font-size: 1.3em;
text-align: center;
}

#container_with_icons{
display: grid;
grid-template-columns: 25em 25em 25em;
justify-content: center;
margin-left: 14%;
margin-top: 5%;


}

.social_media_icons{
height: 1.5em;
width: 1.5em;
text-align: center;
}

hr{
width: 75%;
color: gray;
opacity: 0.30;

}
90 changes: 87 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,94 @@
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<!--Start of heading section-->
<header>
<div id="top">
<nav>
<img id="logo" src="/img/karma-logo.svg" alt="karma_logo">
<ul>
<li class="main_nav"> <span>Meet Karma</span></li>
<li class="main_nav"><a href="#"> How It Works </a></li>
<li class="main_nav"><a href="#"> Store</a> </li>
<li class="main_nav"><a href="#"> Blog</a> </li>
<li class="main_nav"><a href="#"> Help </a></li>
<li class="main_nav"><a href="#"> Login</a> </li>
</ul>
</nav>
</div>

</header>
<!--end of heading section-->
<!-- start of main section-->
<main>
<div id="main_image">
<img src="/img/first-background.jpg" alt="">
<div class="center_text">
<p class="heading_text">Introducing Karma</p>
<p class="under_heading">Bring WiFi with you, everywhere you go.</p>
</div>
<button class="btn">Learn More</button>
</div>
<div></div>

<p class="icons_heading">Everyone needs a little Karma.</p>

<div id="container_with_icons">

<div class="icon">
<img src="/img/icon-devices.svg" alt="icon of electronic device">
<div class="icon_text">
<p>Internet for all devices.</p>
</div>
</div>

<div class="icon">
<img src="/img/icon-coffee.svg" alt="icon of coffee mug">
<div class="icon_text" >
<p >Boost your productivity</p>
</div>
</div>

<div class="icon">
<img src="/img/icon-refill.svg" alt="image of fuel pump">
<div class="icon_text">
<p >Pay as you go</p>
</div>
</div>

</div>


</main>



<!--end of main section-->

<!--start of footer-->
<footer>
<div id="container_with_social_media_icons">
<hr>
<div>
<p>Join us on</p>
<div>
<img class="social_media_icons" src="/img/twitter-icon.svg" alt="twitter icon">
<img class="social_media_icons" src="/img/facebook-icon.svg" alt="facebook icon">
<img class="social_media_icons" src="/img/instagram-icon.svg" alt="instagram icon">
</div>
</div>



</div>
</footer>
<!--end of 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>

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