Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9b85603
html tags added
zelihapala Oct 4, 2023
f90bd74
Added HTML content for the homepage, including text, and images
zelihapala Oct 4, 2023
6ace487
Added navigation and footer links
zelihapala Oct 5, 2023
044215a
background img and grid for hero updated
zelihapala Oct 5, 2023
02ed623
html and grid updated, hero section updated
zelihapala Oct 5, 2023
b4222ff
navigation, section hero and section icons updated
zelihapala Oct 5, 2023
282038e
After the comments, errors have been fixed
zelihapala Oct 5, 2023
29b28b2
Added HTML code for Level 2, Page 1
zelihapala Oct 5, 2023
ccadab2
Added new features to the index.html file for level 2/ wek 2
zelihapala Oct 6, 2023
acb2b48
header and logo updated
zelihapala Oct 6, 2023
ee217de
second page created
zelihapala Oct 6, 2023
906ca40
form and form css updated
zelihapala Oct 9, 2023
3e669ac
form updated
zelihapala Oct 11, 2023
8292b3c
updated form
zelihapala Oct 11, 2023
c80094c
submit button updated
zelihapala Oct 11, 2023
5468d87
Applied styles to labels and inputs; added styling for the submit but…
zelihapala Oct 11, 2023
4e0e3ae
Improved page navigation; "Get Karma today" button navigates store page.
zelihapala Oct 11, 2023
711171e
footer img classes added, css updated
zelihapala Oct 22, 2023
fd9281d
css updated
zelihapala Oct 22, 2023
1f86c88
footer css ad html updated
zelihapala Oct 22, 2023
30ed0eb
footer html updated
zelihapala Oct 22, 2023
36b5450
footer html updated
zelihapala Oct 22, 2023
1582929
footer css updated
zelihapala Oct 22, 2023
5c998af
ham. menu added, media query added, css updated
zelihapala Oct 23, 2023
41e043d
changes on header and footer added to store page
zelihapala Oct 23, 2023
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
219 changes: 206 additions & 13 deletions css/style.css
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;
}
91 changes: 80 additions & 11 deletions index.html
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">
Copy link

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

<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" />
Copy link

Choose a reason for hiding this comment

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

These images are large, have a css class to take care of the width and height property and this should be fine

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

Copy link

Choose a reason for hiding this comment

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

You should have an <hr/> tag here with the right color to divide the content as shown in the sample image

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

Choose a reason for hiding this comment

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

Each of these icons are inside a circle, can you try to get that with css?

Copy link
Author

Choose a reason for hiding this comment

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

Hello,
Thank you for your help and time. I tried to fix the bugs. I hope I did. I did not understand the last comment.
Could you please explain what i did (because if i don't know how to do it i just try millons of time till I find the answer or till it works) and how it shoul be? ;)

Copy link
Author

Choose a reason for hiding this comment

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

Hello. I
have just recognised the circle I am working withh two monitors and the one I display vscode has a very bright screen, so I couldn't see the


and circle." Thank you again.

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