Skip to content

NW6/Fathi-Kahin/ HTML-CSS-Module-project-karma/week 1 #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
166 changes: 160 additions & 6 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,167 @@

/* 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;
-webkit-font-smoothing: antialiased;
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
}
/*Header*/

.logo {
display: flex;
align-items: center; /* Center the logo vertically within the header */
}

.karam-logo {
width: 30px;
height: 30px; /* Set height to maintain aspect ratio */
margin-right: 620px; /* Add spacing between logo and nav items */
}

.nav {
display: flex;
justify-content: flex-end; /* Align items to the left */
margin-left: 2em; /* Add left margin for spacing */
}

.nav-item {
list-style-type: none;
margin-right: 1em;
}

.nav-link {
text-decoration: none;
color: black;
margin-right: 1em;
}

.nav-link:hover {
color: orangered;
}

.nav li {
text-decoration: none;
gap: 1px;
float: left;
}
.nav ul {
list-style-type: none;
margin-left: 1em;
}

/*hero*/
.hero {
padding: 200px;
background-size: cover;
background-image: url("/img/first-background.jpg");
}
.hero h1 {
margin-left: 340px;
color: white;
}
.hero p {
margin-left: 280px;
font-size: 20px;
margin-top: 0px;
color: white;
}

.hero-button {
padding: 0.4em 1em;
border-style: none;
border-radius: 2px;
background-color: orangered;
color: white;
margin-left: 400px;
}
/*icon*/

.section {
margin-top: 80px;
}
.section-p {
font-size: 38px;
text-align: center;
}
.icon-imag {
margin-left: 3em;
Copy link

Choose a reason for hiding this comment

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

Suggested change
margin-left: 3em;

width: 100px;
}
.icon-discribtion {
font-size: 20px;
}
.section-icon {
display: flex;
padding-left: 7em;
Copy link

@PERicci PERicci Oct 30, 2023

Choose a reason for hiding this comment

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

Suggested change
padding-left: 7em;
justify-content: center;
gap: 2rem (at least);

}
.section-icon div {
padding-left: 7em;
Copy link

Choose a reason for hiding this comment

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

Suggested change
padding-left: 7em;
display: flex;
flex-direction: column;
align-items: center;

padding-bottom: 3em;
Copy link

Choose a reason for hiding this comment

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

Suggested change
padding-bottom: 3em;

}
.homepage-img {
max-width: 100%;
max-height: 100%;
}
.article {
display: flex;
align-items: center;
background-color: rgb(245, 220, 224);
}
.article-p {
}

.article-quote {
font-size: 30px;
font-style: italic;
padding-left: 2.5em;
color: rgb(31, 31, 31);
text-align: center;
}
.article-button {
margin-left: 12em;
background-color: orangered;
color: white;
padding: 15px;
border: none;
}
.article-button:hover {
background-color: white;
color: orangered;
}
/*footer*/
.social-media-icon {
border: 1px solid rgb(118, 118, 118);
padding: 5px;
width: 30px;
border-radius: 25px;
margin-left: 7px;
cursor: pointer;
}
/*footer*/
.social-media-icon {
border: 1px solid rgb(118, 118, 118);
padding: 5px;
width: 30px;
border-radius: 25px;
margin-left: 7px;
cursor: pointer;
}
/*footer*/
.social-media-icon {
border: 1px solid rgb(185, 179, 179);
padding: 5px;
width: 30px;
border-radius: 25px;
margin-left: 7px;
cursor: pointer;
}

footer h3 {
text-align: center;
}
footer p {
color: rgb(178, 177, 177);
text-align: center;
}
/**
* Add your custom styles below
*
Expand All @@ -15,5 +171,3 @@ body {
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/


120 changes: 114 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,127 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, 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">
</head>
<body>
<!-- header aria -->
<header class="header">

<nav class="nav">
<img class="karam-logo" src="img/karma-logo.svg" alt="Picture of Karam Logo">

<ul class="nav-list">

<li class="nav-item">
<a class="nav-link" href="#">Meet Karma</a> </li>

<li class="nav-item">
<a class="nav-link" href="#">How it Works </a> </li>

<li class="nav-item">
<a class='nav-link' href='/level-2/store.html'>Store</a> </li>

<li class="nav-item">
<a class="nav-link" href="#">Blog</a> </li>

<li class="nav-item">
<a class="nav-link" href="#">Help</a> </li>

<li class="nav-item">
<a class="nav-link" href="#">Login</a> </li>
</ul>
</nav>
</header>

<body>

<!-- main aria -->
<main>
<main class="hero">
<div>
<h1>Introducing Karma</h1>
<p>Take WiFi with you, wherever you go.</p>
<button class="hero-button">Learn More</button>
</div>
</div>
</main>

<section>
<p class="section-p">Everybody needs a bit of Karma.</p>
<div class="section-icon">
<div>
<img
src="/img/icon-devices.svg"
alt="Device icon"
class="icon-imag"
/>
<p class="icon-discribtion">Internet for all your devices</p>
</div>
<div>
<img src="/img/icon-coffee.svg" alt="Coffee icon" class="icon-imag" />
<p class="icon-discribtion">Boost your productivity</p>
</div>
<div>
<img src="/img/icon-refill.svg" alt="Refill icon" class="icon-imag" />
<p class="icon-discribtion">Pay as you go</p>
</div>
</div>
<article class="article">
<div class="article-img">
<img class="homepage-img" src="level-2/homepage-feature.png" alt="">
</div>

<div class="article-p">
<p class="article-quote"> <spam style="color: rgb(224, 69, 13); ">&#8220;</spam> Whenever i am, i just don't<br> worry about my connection</br>
anymore! <spam style="color: rgb(224, 69, 13); ">&#8221;</spam></p>



<button class="article-button">Get Karma today</button>

</div>

</article>
</section>

<!-- 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 -->
<footer>
<h3>Join us on</h3>
<center>
<img
src="/img/twitter-icon.svg"
alt="Twitter icon"
class="social-media-icon"
/>
<img
src="/img/facebook-icon.svg"
alt="Facebook icon"
class="social-media-icon"
/>
<img
src="/img/instagram-icon.svg"
alt="Instagram icon"
class="social-media-icon"
/>
</center>
<p>@Karma Mobility.inc.</p>
</footer>

</body>
<div
data-netlify-deploy-id="6513570ede10630008200763"
data-netlify-site-id="5d392351-567d-4d7c-89d6-08dcca9f84d2"
data-vcs="github"
style="position: fixed"
>
<script
async
src="https://netlify-cdp-loader.netlify.app/netlify.js"
></script>
</div>
</body>
</html>
Loading