Skip to content
Open
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
203 changes: 201 additions & 2 deletions css/style.css
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

/* 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;
Expand All @@ -8,6 +7,7 @@ body {

/**
* Add your custom styles below

*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
Expand All @@ -17,3 +17,202 @@ body {
*/


body {
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
width: 100%;
}

/* Header styles */

header {
display: flex;
align-items: center;
justify-content: space-around;
height: 50px;
width: 100vw;
}



#logo {
display: flex;
max-width: 1.5rem;

}

/* Nav and Links */

nav {
display: flex;
margin-left: 20px;
gap: 25px;
}

nav :first-child {
font-weight: bold;
}

a:hover {
color: #c05326;
}

a {
text-decoration: none;
color: rgb(137, 134, 134);
}

/* First Section */

.first_section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
width: 100vw;
height: 90vh;
background-image: url(/img/first-background.jpg);
background-size: cover;
background-repeat: no-repeat;
}

h1 {
font-weight: lighter;
font-size: 2.95rem;
margin: 0;
padding: 0;
}

.first_section p {
letter-spacing: 0.07rem;
font-size: 1.5rem;
font-weight: lighter;
}

button {
margin-top: 24px;
width: 150px;
height: 45px;
background-color: #c05326;
border-radius: 6%;
}

/* Second section */

section.second_section{
align-items: center;
display: flex;
justify-content: center;
}

.icons{
display: flex;
}

.icon_banner
{
flex-direction: row;
padding: 5rem;
vertical-align: top;
display: inline-block;
text-align: center;
width: 200px;

}

.icon_banner a {
font-size: 19px;
}

.second_section h2 {
display: flex;
justify-content: center;
font-weight: lighter;
font-size: 1.7rem;
margin-top: 5%;
}

/* extended feature */

.extended_feature {
display: flex;
}

.text-button-container {
display: flex;
flex-direction: column;
align-items: center;
background-color: #E0633A1A;
}

.text-button-container h2 {
font-style: italic;
font-weight: 400;
font-size: 42px;
display: flex;

}

.text-button-container button {
color: white;
border: none;
}

.text-button-container h2{
display: flex;
text-align: center;
}

.text-button-container h2 p{
color: #E0633A;
}

/* Footer */

footer {
width: 100%;
border: 2px solid rgb(238, 234, 234);
border-right: 0;
border-left: 0;
border-bottom: 0;
margin-top: 7%;
display: flex;
flex-direction: column;
align-items: center;
}

.footer_imgs_wrapper {
display: flex;
justify-content: space-between;
width: 10%;
}

.footer_imgs_wrapper div {
width: 30px;
height: 30px;
border: 2px solid rgb(238, 234, 234);
border-radius: 50%;
}


#footer_text1 {
font-size: 0.7rem;
font-weight: bold;
color: rgb(110, 107, 107);
letter-spacing: 0.06rem;
}

#footer_text2 {
color: rgb(201, 189, 189);
font-size: small;
}


/* store */


.store_order {
display: flex;
flex-direction: row;
}
Binary file added img/homepage-feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/store-image_by-andrew-neel-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
135 changes: 134 additions & 1 deletion index.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,145 @@
<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">
<script src="https://kit.fontawesome.com/a6d80728cd.js" crossorigin="anonymous"></script>
</head>
<body>



<header>
Copy link
Copy Markdown

@magarpratik magarpratik Jul 14, 2022

Choose a reason for hiding this comment

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

The code is not indented consistently which makes it harder to read.
You can use Prettier which automatically indents code for you.
You can read about our code style guide here https://syllabus.codeyourfuture.io/guides/code-style-guide

<img class="header_logo" id="logo"
src="img/karma-logo.svg"
alt="Karma logo"
/>
<nav>
<a href="">Meet Karma</a>
<a href="">How it Works</a>
<a href="">Store</a>
<a href="">Blog</a>
<a href="">Help</a>
<a href="">Login</a>
</nav>
</header>

<main>

<section>
<section class="first_section">
<h1>Introducing Karma</h1>
<p>Bring WiFi with you, everywhere you go</p>
<button>Learn More</button>
</section>

<section class="second_section">

<div1>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
<div1>
<div>

<h2>Everyone needs a little Karma</h2>
</div>

<div class="icon_banner">
<a href="#">
<img
src="img/icon-devices.svg"
alt="icon-devices"
width="150"
height="150"
class="icons"
/>
<a>Internet for all devices</a>
</div>

<div class="icon_banner">
<a href="#">
<img
src="img/icon-coffee.svg"
alt="icon-devices"
width="150"
height="150"
class="icons"
/> <a>Boost your productivity
</a>
</div>

<div class="icon_banner">
<a href="#">
<img
src="img/icon-refill.svg"
alt="icon-devices"
width="150"
height="150"
class="icons"
/> <a>Pay as you go
</a>
</div>

</section>
<div class="extended_feature">
<div class="homepage_feature">
<img src="/img/homepage-feature.png" alt="homepage-feature" />
</div>
<div class="text-button-container">
<h2>
<span style="color:#E0633A;">"</span>Wherever I am, I just dont worry about my connection anymore!<span style="color:#E0633A;">"</span></h2>
<button>Get Karma today</button>
</div>
</div>



</main>


<footer class="footer">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

using class attribute here is redundant because can directly target the footer element in your CSS.

<p>
Join us on
</p>

<section>
<a href="#">
<img
src="img/twitter-icon.svg"
alt="twitter"
width="30"
height="30"
class="small_icons"
/>
</a>

<a href="#">
<img
src="img/facebook-icon.svg"
alt="facebook"
width="30"
height="30"
class="small_icons"
/>
</a>

<a href="#">
<img
src="img/instagram-icon.svg"
alt="instagram"
width="30"
height="30"
class="small_icons"
/>
</a>

</section>

<p>
© Karma Mobility, Inc.
</p>

</footer>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
</footer>


</section>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this closing section tag should be moved to line 96.


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

<p id = "footer_text2"> <i class="fa-regular fa-copyright"></i>Karma Mobility, Inc</p>
</footer>
</body>
</html>
Loading