-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
fhkahin
wants to merge
6
commits into
CodeYourFuture:master
Choose a base branch
from
fhkahin:Fathi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||||||||||
width: 100px; | ||||||||||
} | ||||||||||
.icon-discribtion { | ||||||||||
font-size: 20px; | ||||||||||
} | ||||||||||
.section-icon { | ||||||||||
display: flex; | ||||||||||
padding-left: 7em; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
} | ||||||||||
.section-icon div { | ||||||||||
padding-left: 7em; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
padding-bottom: 3em; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
} | ||||||||||
.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 | ||||||||||
* | ||||||||||
|
@@ -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' | ||||||||||
*/ | ||||||||||
|
||||||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); ">“</spam> Whenever i am, i just don't<br> worry about my connection</br> | ||
anymore! <spam style="color: rgb(224, 69, 13); ">”</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> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.