Skip to content

Birmingham-WM5-HTML/CSS-Rawan-Almutairi-Karma Store| Week1/2 #656

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 1 commit 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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
242 changes: 241 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,245 @@ body {
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/

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

.logo {
width: 2rem;
margin-left: 12rem;
}
.header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
margin-top: 0;
}
.navigation_list {
display: flex;
list-style: none;
justify-content: flex-end;
align-items: center;
padding: 20px 50px;
margin-right: 10rem;
color:black;
}
.navigation_link:hover {
color: orangered;
}

.navigation_list li {
display: inline-block;
padding: 0 20px;
color:black;
}
.navigation_list a {
text-decoration: black;
}
.hero {
height: 40rem;
display: flex;
flex-direction: column;
gap: 0;
justify-content: center;
align-items: center;
background-image: url("C:\Users\Rawan\WEEK1-2 PHY\HTML-CSS-Module-Project\img\first-background.jpg");
background-position: center;
background-size: cover;
color: rgb(255, 255, 255);
font-size: 30px;
}

button {
background-color: rgb(245, 127, 84);
padding: 8px 18px;
border-radius: 5px;
font-size: 25px;
margin-top: 30px;
border: 0 rgb(245, 127, 84);
}

button:hover {
background-color: white;
color: orangered;
}

section {
display: flex;
justify-content: space-around;
}

h2 {
text-align: center;
margin: 100px 0;
font-weight: black;
font-size: 3rem;
}
.icon_img {
width: 9rem;
margin-bottom: 25px;
}

.img_info {
font-size: 1.8rem;
}

.karma_icon {
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
}

.icon {
display: flex;
justify-content: space-evenly;
align-items: center;
}

footer {
border-top: 1px solid lightgray;
}

.footer_info {
text-align: center;
margin: 1rem 0;
}
.info {
font-weight: normal;
}

.footer_img {
display: flex;
justify-content: center;
}
.footer-icon {
height: 1rem;
display: flex;
justify-content: space-evenly;
padding: 0.5rem;
border: 1px solid rgb(220, 217, 217);
border-radius: 50%;
}
#facebook_icon {
margin: 0 13px;
}
.site-credit {
margin-top: 1rem;
text-align: center;
font-size: small;
color: gray;
}

.input_card {
display: flex;
}
.karma-feature {
margin-top: 100px;
display: flex;
justify-content: flex-start;
}
.feature-img {
width: 550px;
margin: 0;
}
.Karma {
background-color: #fde3dee7;
width: 70%;
text-align: center;
}
.karma-text {
margin-top: 80px;
font-style: italic;
font-weight: 400;
margin-bottom: 10px;
font-size: xx-large;
}
.karma-button {
background-color: rgb(245, 127, 84);
padding: 15px 25px;
border-radius: 5px;
font-size: large;
margin-top: 30px;
border: 0 rgb(134, 49, 17) solid;
color: white;
width: 200px;
}
.main {
display: flex;
justify-content: space-evenly;
border-top: 0.5px grey solid;
}


u {
color: rgb(194, 72, 28);
}

.title {
color: rgb(218, 120, 85);
margin-bottom: 70px;
}

.name {
display: flex;
justify-content: space-between;
}

#lname {
margin-left: 20px;
}

.Buttons {
accent-color:rgb(194, 72, 28);
height: 1em;
width: 1em;
}

.user-input {
display: flex;
}

.select-text {
margin-top: 30px;
}

#space-grey {
margin-left: 50px;
}

.checkbox {
accent-color:rgb(194, 72, 28);
}

#city {
font-style: italic;
}
.city-postcode {
display: flex;
justify-content: space-between;
margin-right: 4em;
}
.order-button {
background-color: rgb(245, 127, 84);
padding: 15px 25px;
border-radius: 3px;
font-size: large;
border: 0 rgb(134, 49, 17) solid;
color: white;
width: 200px;
}
.text-form {
align-items: center;
margin-top: 120px;
}
#agreement {
margin: 60px 0 20px 0;
}






68 changes: 66 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,78 @@
<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="stylesheet" href="css\style.css">

Choose a reason for hiding this comment

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

In this line of code your CSS is not well-linked you need to change " \ " to "/" to look like this (href="css/style.css").

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body>

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


<header>
<div class="header">
<svg xmlns="HTML-CSS-Module-Project\img\karma-logo.svg" viewBox="0 0 144 216" width="50" height="75" >
<path fill="#F15B2A"
d="M126.1 212.9c4.1 4.1 10.7 4.1 14.8 0 4.1-4.1 4.1-10.7 0-14.8l-28.6-28.6 18.1-18.1c8.4-8.4 13.6-20 13.6-32.9C144 92.8 123.2 72 97.5 72S51 92.8 51 118.5c0 12.8 5.2 24.5 13.6 32.9l18.1 18.1-18.1 18.1c-4.6 4.6-11 7.5-18.1 7.5-14.1 0-25.6-11.5-25.6-25.6v-159C20.9 4.7 16.2 0 10.5 0 4.7 0 0 4.7 0 10.5v159C0 195.2 20.8 216 46.5 216c12.8 0 24.5-5.2 32.9-13.6l18.1-18.1 28.6 28.6zm-46.7-76.3c-4.6-4.6-7.5-11-7.5-18.1 0-14.1 11.5-25.6 25.6-25.6 14.1 0 25.6 11.5 25.6 25.6 0 7.1-2.9 13.5-7.5 18.1l-18.1 18.1-18.1-18.1z" />
</svg>
<nav>
<ul class="navigation_list" >
<li class="navigation_item"><a class="navigation_link" href="#" style="font-weight: bold;">Meet Karma</a></li>
<li class="navigation_item"><a class="navigation_link" href="#" >How It Works</a></li>
<li class="navigation_item"><a class='navigation_link' href="#" >Store</a></li>
<li class="navigation_item"><a class="navigation_link" href="#">Blog</a></li>
<li class="navigation_item"><a class="navigation_link" href="#" >Help</a></li>
<li class="navigation_item"><a class="navigation_link" href="#" >Login</a></li>
</ul>
</nav>
</div>
</header>
<main>
<div class="hero">
<h1>Introducing Karma</h1>
<p>Bring WiFi with you, everywhere you go. </p>
<button>Learn More</button>
</div>
<h2>Everyone needs a little Karma.</h2>
<section class="icon">
<article class="karma_icon">
<img class="icon_img" src="img\icon-devices.svg" alt="icon-devices" />
<p class="img_info">Internet for all devices</p>
</article>
<article class="karma_icon">
<img class="icon_img" src="img\icon-coffee.svg" alt="icon-coffee" />
<p class="img_info">Boost your productivity</p>
</article>
<article class="article">
<img class="icon_img" src="img\icon-refill.svg" alt="refill" />
<p class="img_info">Pay as You Go</p>
</article>
</section>
<section class="karma-feature">
<div>
<img class="feature-img" src="level-2\homepage-feature.png">
</div>
<div class="Karma">
<h3 class="karma-text"><span style="color: coral;">"</span>Wherever I am, I just don't
<br> worry about my connection
<br> anymore!<span style="color: coral;">"</span></h3>
<a href="store.html"> <button class="karma-button">Get Karma today</button></a>
</div>
</section>
</main>
<footer>
<div class="footer_info">
<h4 class="info">Join us on</h4>
</div>
<div class="footer_img">
<a class="footer-icon" href=""><img src="img\twitter-icon.svg" alt="twitter-icon"></a>
<a class="footer-icon" id="facebook_icon" href=""><img src="img\facebook-icon.svg" alt="facebook-icon"></a>
<a class="footer-icon" href=""><img src="img\instagram-icon.svg" alt="instagram-icon"></a>
</div>
<P class="site-credit">©️Karma Mobility, Inc.</P>
</footer>
</div>

</body>
</html>
Loading