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
182 changes: 182 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@

/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */

header img {
height: 60px;
margin-left: 40px;

}

body {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
height: 125vh;
background-size: cover;
font-family: sans-serif;
margin-top: 60px;
/* padding: 30px; */
}

/**
Expand All @@ -17,3 +28,174 @@ body {
*/



/* Add your CSS code here */


header {
background-color: white;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
display: flex;
align-items: center;
box-shadow: 0 0 25px 0 black;
}
header * {
display: inline;
}
header ul {
margin: 20px;
right: 0;
}
header li {
margin: 20px;
right: 0;

}

header li a {
color: black;
text-decoration: none;
right: 0;

}
.hero {
/* Sizing */
width: 100vw;
height: 100vh;

/* Flexbox stuff */
display: flex;
justify-content: center;
align-items: center;

/* Text styles */
text-align: center;
color: white;
/* ADD THIS LINE */

/* Background styles */
background-image: url('/../img/first-background.jpg');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}

.hero h1 {
/* Text styles */
font-size: 4em;

/* Margins */
margin-top: 0;
margin-bottom: 0.5em;
}

.hero .btn {
/* Positioning and sizing */
display: block;
width: 150px;

/* Padding and margins */
padding: 1em;
margin-top: 50px;
margin-left: auto;
margin-right: auto;

/* Text styles */
color: white;
/* CHANGE THIS LINE */
text-decoration: none;
font-size: 1.5em;

/* Border styles */
border: 2px solid white;
/* CHANGE THIS LINE */
border-radius: 20px;
}
.we h1 {
/* Text styles */
font-size: 2em;
text-align: center;
}


.post-teasers {
display: flex;
flex-wrap: wrap;
padding: 2rem;
}
.post-teasers>* {
flex: 1 1 300px;
align-self: flex-start;
padding: 1rem;
}
.post-teaser img {
position: absolute;
top: 50;
width: 30%;
height: 25%;

}

.blog-post-teaser figcaption h1 {
font-size: 22px;
}

.blog-post-teaser figcaption a {
text-decoration: none;
color: #111010;
font-size: 25px;
}
.join h1 {
/* Text styles */
font-size: 1em;
text-align: center;
}
.social-menu ul {
position: absolute;
bottom: 10;
left: 50%;
padding: 0;
margin: 0;
transform: translate(-50%, -50%);
display: flex;
}
.social-menu ul p {
position: absolute;
bottom: 15;
left: 50%;
padding: 0;
margin: 0;
transform: translate(-50%, -50%);
/* display: flex; */
}

.social-menu ul img {
position: relative;
display: block;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #fff;
text-align: center;
/* transition: .6s; */
box-shadow: 0 5px 4px rgba(0, 0, 0, .5);
}

/* Apply some styles to the footer element */
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
padding: 10px;
border-style: none;
background-color: white;
color: rgb(13, 12, 12);
text-align: center;
}

72 changes: 71 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,80 @@
<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 -->
<header>
<img src="img/karma-logo.svg">

<nav>
<ul>
<li><a href="#">Meet Karma</a></li>
<li><a href="#">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>
</header>
<section class="hero">
<div class="hero-inner">
<h1>Introducing Karma</h1>
<h2>Bring WIFI with you,
everywhere you go!</h2>
<a href="img/first-background.jpg" class="btn">Learn More...</a>
</div>
</section>

<section class="we">
<h1>Every one needs a little Karma.</h1>
</section>

<section class="post-teasers">
<article class="blog-post-teaser">
<figure>
<img src="img/icon-devices.svg" alt="">
<figcaption>
<h1><a>Internet for all devices</a></h1>
</figcaption>
</figure>
</article>
<article class="blog-post-teaser">
<figure>
<img src="img/icon-coffee.svg" alt="">
<figcaption>
<h1><a>Boost your productivity</a></h1>
</figcaption>
</figure>
</article>
<article class="blog-post-teaser">
<figure>
<img src="img/icon-refill.svg" alt="">
<figcaption>
<h1><a>Pay as You Go</a></h1>
</figcaption>
</figure>
</article>
</section>


<section class="join">
<h1>Join us on</h1>
</section>
<section>
<div class="social-menu">

<ul>
<img src="img/facebook-icon.svg" alt="">
<img src="img/instagram-icon.svg"alt="">
<img src="img/twitter-icon.svg" alt="">
</ul>
</div>
</section>

</main>
<footer>@ Karama Mobility, Inc.</footer>
</body>

</html>