-
-
Notifications
You must be signed in to change notification settings - Fork 620
NW6 | Zeliha Pala | HTML-CSS | Module-Project | Week 1 / 2 #650
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
base: master
Are you sure you want to change the base?
Changes from 6 commits
9b85603
f90bd74
6ace487
044215a
02ed623
b4222ff
282038e
29b28b2
ccadab2
acb2b48
ee217de
906ca40
3e669ac
8292b3c
c80094c
5468d87
4e0e3ae
711171e
fd9281d
1f86c88
30ed0eb
36b5450
1582929
5c998af
41e043d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,212 @@ | ||
|
|
||
| /* We are using the 'Roboto' font from Google. This has already been added to your HTML header */ | ||
| :root { | ||
| --grey-dark: #666768; | ||
| --grey-light: #969393; | ||
| --orange-dark: #c05326; | ||
| --orange-light: #f7eae4; | ||
| --white: #fff; | ||
| --black: black; | ||
| } | ||
|
|
||
| body { | ||
| font-family: 'Roboto', sans-serif; | ||
| -webkit-font-smoothing: antialiased; | ||
| font-family: "Roboto", sans-serif; | ||
| -webkit-font-smoothing: antialiased; | ||
| max-width: 100vw; | ||
| margin: 0 auto; | ||
| font-weight: normal; | ||
| } | ||
|
|
||
| h1, | ||
| h2, | ||
| h4, | ||
| h5, | ||
| p { | ||
| margin-top: 0; | ||
| margin-bottom: 0; | ||
| } | ||
|
|
||
| /* Header */ | ||
|
|
||
| header { | ||
| display: flex; | ||
| flex-direction: row; | ||
| flex-wrap: nowrap; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| padding: 1.25rem 8%; | ||
| } | ||
| header .karma__logo { | ||
| height: 5rem; | ||
| } | ||
|
|
||
| header nav { | ||
| width: 50%; | ||
| min-width: 500px; | ||
| font-size: x-large; | ||
| } | ||
|
|
||
| /* Navigation */ | ||
| #navigation__list { | ||
| display: flex; | ||
| list-style: none; | ||
| justify-content: space-between; | ||
| padding: 0; | ||
| margin: 0; | ||
| color: var(--grey-light); | ||
| } | ||
|
|
||
| .nav__item a:hover { | ||
| color: var(--orange-dark); | ||
| } | ||
|
|
||
| .navigation__link { | ||
| color: var(--grey-dark); | ||
| font-weight: 600; | ||
| text-transform: uppercase; | ||
| text-decoration: none; | ||
| transition: color 0.2s; | ||
| } | ||
|
|
||
| li a { | ||
| color: var(--grey-dark); | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| /*main*/ | ||
| section { | ||
| height: 70vh; | ||
| } | ||
|
|
||
| #hero { | ||
| background-image: url(../img/first-background.jpg); | ||
| background-position: center; | ||
| background-size: cover; | ||
| text-align: center; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| padding: 2rem; | ||
| color: var(--white); | ||
| font-size: 2rem; | ||
| margin: 0; | ||
| margin-bottom: 9rem; | ||
| } | ||
|
|
||
| #hero h1 { | ||
| margin-top: 14rem; | ||
| font-weight: normal; | ||
| } | ||
| #hero h2 { | ||
| margin-top: 3rem; | ||
| margin-bottom: 4rem; | ||
| font-weight: normal; | ||
| } | ||
|
|
||
| #hero button { | ||
| margin-top: 0; | ||
| margin-bottom: 10rem; | ||
| } | ||
|
|
||
| #hero p { | ||
| margin-bottom: 4rem; | ||
| } | ||
|
|
||
| /** | ||
| * 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' | ||
| */ | ||
| /*button*/ | ||
| #hero button { | ||
| margin-bottom: 10rem; | ||
| background-color: var(--orange-dark); | ||
| color: var(--white); | ||
| padding: 20px 30px; | ||
| border-radius: 10px; | ||
| } | ||
|
|
||
| /*icons */ | ||
| #icons { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
| #icons h1 { | ||
| color: var(--grey-dark); | ||
| font-size: 60px; | ||
| font-weight: normal; | ||
| } | ||
| h4 { | ||
| text-align: center; | ||
| font-size: xx-large; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-weight: normal; | ||
| } | ||
| .icon__images { | ||
| margin: 4rem 15vw; | ||
| display: grid; | ||
| grid-template-columns: repeat(3, 1fr); | ||
| grid-template-rows: 1fr auto; | ||
| gap: 5rem; | ||
| grid-template-areas: | ||
| "icon1 icon2 icon3" | ||
| "text1 text2 text3"; | ||
| } | ||
|
|
||
| grid areas for each element .icon__images:nth-child(1) { | ||
| grid-area: icon1; | ||
| } | ||
|
|
||
| .icon__images:nth-child(1) { | ||
| grid-area: icon2; | ||
| } | ||
|
|
||
| .icon__images:nth-child(1) { | ||
| grid-area: icon3; | ||
| } | ||
|
|
||
| h4:nth-child(1) { | ||
| grid-area: text1; | ||
| } | ||
|
|
||
| h4:nth-child() { | ||
| grid-area: text2; | ||
| } | ||
|
|
||
| h4:nth-child(6) { | ||
| grid-area: text3; | ||
| } | ||
|
|
||
| /* footer*/ | ||
|
|
||
| footer { | ||
| display: flex; | ||
| flex-direction: column; | ||
| text-align: center; | ||
| align-items: center; | ||
| padding: 20px; | ||
| } | ||
|
|
||
| footer h5 { | ||
| font-size: 1vw; | ||
| color: var(--grey-light); | ||
| font-weight: 200; | ||
| margin: 10px 0; | ||
| color: var(--grey-dark); | ||
| } | ||
|
|
||
| .media__icons { | ||
| margin: 20px 0; | ||
| } | ||
|
|
||
| .media__icons a { | ||
| margin: 0 10px; | ||
| } | ||
|
|
||
| .copyright { | ||
| color: var(--grey-light); | ||
| font-size: 14px; | ||
| } | ||
|
|
||
| .media__icons img { | ||
| width: 4rem; | ||
| height: 2rem; | ||
| margin: 1rem 5px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,88 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1, 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> | ||
| <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--> | ||
| <header> | ||
| <a href="#"><img class="karma__logo" src="img/karma-logo.svg" alt="Karma Logo" /></a> | ||
|
|
||
| <!-- Navigation Bar --> | ||
| <nav> | ||
| <ul id="navigation__list"> | ||
| <li class="nav__item"> | ||
| <a href="#" class="nav__item-link">Meet Karma</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#" class="nav__item-link">How it Works</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#" class="nav__item-link">Store</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#" class="nav__item-link">Blog</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#" class="nav__item-link">Help</a> | ||
| </li> | ||
| <li class="nav__item"> | ||
| <a href="#" class="nav__item-link">Login</a> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </header> | ||
|
|
||
| <main> | ||
|
|
||
| <!-- Hero Section --> | ||
| <section id="hero"> | ||
| <h1>Introducing Karma</h1> | ||
| <h2>Bring WiFi with you, everywhere you go.</h2> | ||
| <button>Learn More</button> | ||
| </section> | ||
|
|
||
| <!--Icons Section --> | ||
| <section id="icons"> | ||
| <h1>Everyone needs a little Karma.</h1> | ||
| <div class="icon__images"> | ||
| <img src="img/icon-devices.svg" alt="device image" /> | ||
|
||
| <img src="img/icon-coffee.svg" alt="coffee cup image" /> | ||
| <img src="img/icon-refill.svg" alt=" ipod image" /> | ||
| <h4>Internet for all devices</h4> | ||
| <h4>Boost your productivity</h4> | ||
| <h4>Pay as you go</h4> | ||
| </div> | ||
| </section> | ||
| </main> | ||
|
|
||
|
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. You should have an |
||
| <!--Footer --> | ||
| <footer> | ||
| <h5>Join us on</h5> | ||
| <div class="media__icons"> | ||
| <a href="https://twitter.com/yourKarma" target="_blank "> <img src="img/twitter-icon.svg" alt="twitter icon"></a> | ||
|
||
| <a href="https://www.facebook.com/newkarmawifi/" target="_blank"></a> <img src="img/facebook-icon.svg" alt="facebook icon"></a> | ||
| <a href="https://www.instagram.com/karmawifi/" target="_blank "></a><img src="img/instagram-icon.svg" alt="instagram icon" /></a> | ||
| </div> | ||
| <p class="copyright">@ Karma Mobility. Inc</p> | ||
| </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> | ||
| </body> | ||
| </html> | ||
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.
This item should be in black