Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b3c703c
Update index.html
Meysam-Arshadi Oct 24, 2022
fc0a046
Update index.html
Meysam-Arshadi Oct 25, 2022
44f4547
Update style.css
Meysam-Arshadi Oct 25, 2022
eedd42c
Update README.md
Meysam-Arshadi Oct 25, 2022
692222d
Update index.html
Meysam-Arshadi Oct 25, 2022
1a130bb
Update style.css
Meysam-Arshadi Oct 25, 2022
97ce40c
Update index.html
Meysam-Arshadi Oct 25, 2022
0e41865
Update style.css
Meysam-Arshadi Oct 25, 2022
f05971c
Update index.html
Meysam-Arshadi Oct 25, 2022
97125bc
Update style.css
Meysam-Arshadi Oct 25, 2022
d0df479
Update style.css
Meysam-Arshadi Oct 25, 2022
9749d47
Update style.css
Meysam-Arshadi Oct 26, 2022
296d40d
Update icon-coffee.svg
Meysam-Arshadi Oct 26, 2022
7011897
Update index.html
Meysam-Arshadi Oct 26, 2022
ad3f75a
Update index.html
Meysam-Arshadi Oct 26, 2022
06ed1fd
Update icon-coffee.svg
Meysam-Arshadi Oct 26, 2022
cb2df7a
Update style.css
Meysam-Arshadi Oct 26, 2022
ee38f43
Update index.html
Meysam-Arshadi Oct 26, 2022
4c2d545
Update style.css
Meysam-Arshadi Oct 26, 2022
519cce5
Update style.css
Meysam-Arshadi Oct 26, 2022
79e085f
Update index.html
Meysam-Arshadi Oct 26, 2022
386d22c
Update index.html
Meysam-Arshadi Oct 26, 2022
8ddf756
Update style.css
Meysam-Arshadi Oct 26, 2022
8118ec3
Meysam
Meysam-Arshadi Nov 1, 2022
3c00ca0
Meysam
Meysam-Arshadi Nov 2, 2022
a48c0b7
Meysam
Meysam-Arshadi Nov 3, 2022
06f3379
Store Page added - not complited
Meysam-Arshadi Nov 3, 2022
ff1ac59
Store page forms added
Meysam-Arshadi Nov 4, 2022
01fba2d
Store page and form added
Meysam-Arshadi Nov 4, 2022
1480810
latest changes before submit Nov 4 2022
Meysam-Arshadi Nov 4, 2022
5f27eb7
Create settings.json
Meysam-Arshadi Nov 8, 2022
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
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": 5502
}
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# karma-clone

The aim of this exercise is to create a page that looks just like this one:
The aim of this exercise is to create a page that looks just like this one:

![Karma desktop design](./homepage-desktop.png)

### Set up

- **Fork and clone** this repo.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Usually you want have in the PR only changes related to the feature. Linter often change existing code, this should be avoided as it will make the file history harder to read (continuous changes on the "blame" section and history that are not feature related and wrong authors compared to the original author). This is , of course, more related to a work environment than this solo project, but thought to mention for the future :)

- To fork, hit the 'fork' button in the top right corner of this page on Github.
Now you should be on your own Github repository - you'll know this because your name should now be in the repo name at the top of the Github page.
- To clone, click the green button that says 'Code' on that page.
Now the code is on your own machine (this happened when you cloned), AND it's linked to your own Karma repository on Github (which was created when you forked).
- **Fork and clone** this repo.
- To fork, hit the 'fork' button in the top right corner of this page on Github.
Now you should be on your own Github repository - you'll know this because your name should now be in the repo name at the top of the Github page.
- To clone, click the green button that says 'Code' on that page.
Now the code is on your own machine (this happened when you cloned), AND it's linked to your own Karma repository on Github (which was created when you forked).

# Instructions

- **Edit `index.html` and `style.css`** to re-create the design above.
- Remember, use semantic HTML to re-create the structure, and style each element using CSS to make a perfect copy of the above image.
- All the images and icons you need can be found in the `img` folder, and the font 'Roboto' is already loaded into the project.
- **Only create the desktop design** for now.
- **Edit `index.html` and `style.css`** to re-create the design above.
- Remember, use semantic HTML to re-create the structure, and style each element using CSS to make a perfect copy of the above image.
- All the images and icons you need can be found in the `img` folder, and the font 'Roboto' is already loaded into the project.
- **Only create the desktop design** for now.

### Submitting your work
- **Commit and push your code often** (for example every half an hour)so you get into the habit and you avoid losing any code that you write if your machine crashes for example.
- Once you're ready to submit your homework for review, do a final push and **create a Pull Request**. If you're unsure how to do this, [have a look here](https://syllabus.codeyourfuture.io/git/cheatsheet/#i-want-to-send-my-code-to-volunteers-pushing).

- **Commit and push your code often** (for example every half an hour)so you get into the habit and you avoid losing any code that you write if your machine crashes for example.
- Once you're ready to submit your homework for review, do a final push and **create a Pull Request**. If you're unsure how to do this, [have a look here](https://syllabus.codeyourfuture.io/git/cheatsheet/#i-want-to-send-my-code-to-volunteers-pushing).
247 changes: 247 additions & 0 deletions css/store.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
body {
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
color: black;
}

a:hover {
color: orange;
}

a,
li {
text-decoration: none;
}

a:visited {
text-decoration: none;
color: inherit;
}

button {
padding: 20px;
border: 0px;
background: none;
font-weight: 100;
}

hr {
display: block;
margin-top: 40;
margin-bottom: 0.5em;
margin-left: 100px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

rem are usually more responsive than pixels, you can read more https://chiamakaikeanyi.dev/sizing-in-css-px-vs-em-vs-rem/

margin-right: 100px;
border-width: 1px;
opacity: 30%;
}

#navbar-button {
padding: 10px;
}

/* ---------- Main ---------- */

.body {
display: grid;
grid-template-rows: auto auto 1fr auto;
grid-template-columns: auto 1fr auto;
margin: 10px;
margin-right: 0%;
}

header {
grid-column: 1 / -1;
display: flex;
flex-direction: row;
flex-direction: row;
align-content: center;
justify-content: space-around;
margin-top: 0px;
margin-bottom: 0px;
font-weight: 100;
background-color: #fdf6f8;
}

.navbar-logo {
width: 2%;
}

/* --------------- Footer -------------*/

footer {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 0%;
}

footer > h4,
h3 {
font-weight: 100;
align-items: center;
}

.social-media-handles {
display: flex;
flex-direction: row;
margin: 0%;
}

.twitter-handle {
grid-column: 1;
grid-row: 1;
width: 30px;
height: 30px;
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 50px;
opacity: 60%;
margin: 10px;
padding: 5px;
}

.facebook-handle {
grid-column: 2;
grid-row: 1;
width: 30px;
height: 30px;
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 50px;
opacity: 60%;
margin: 10px;
padding: 5px;
}

.instagram-handle {
width: 30px;
height: 30px;
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 50px;
opacity: 60%;
margin: 10px;
padding: 5px;
}

.karma-mobility {
color: rgb(104, 103, 103);
}

/*
/*
/* ---------- Store Page Starts Here --------- */
/*
*/

:root {
--color-gray: #737888;
--color-lighter-gray: #e3e5ed;
--color-light-gray: #f7f7fa;
}

.store-container {
grid-column: 1 / -1;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}

.form-container {
display: flex;
flex-direction: column;
align-items: center;
min-width: 40%;
max-width: 65%rem;
padding: 10vw 2rem 0;
margin: 0 auto;
height: 100vh;
}

.store-main-image {
max-width: 50%;
}

/*
/*
/* ---------- Store Form Starts Here --------- */
/*
*/

.form {
display: flex;
flex-direction: column;
justify-content: flex-start;
margin-left: 45px;
margin-right: 45px;
}

.form > h1 {
color: orangered;
font-weight: 100;
line-height: 2;
}

.field {
display: flex;
flex-direction: column;
padding: 0.5rem;
border-radius: 0.25rem;
color: #737888;
margin-right: 2%;
}

label {
display: block;
margin-top: 0.25em;
margin-bottom: 0.25rem;
}

.req {
color: red;
}

.form-names,
.form-city-postcode {
display: flex;
flex-direction: row;
justify-content: flex-start;
}

.select-a-colour {
display: flex;
flex-direction: row;
margin-top: 0%;
}

.radio-button,
.checkbox {
display: flex;
flex-direction: row;
padding: 0.5rem;
color: #737888;
margin-right: 2%;
cursor: pointer;
}

#karma-orange,
#space-gray {
margin-right: 10px;
}

#checkbox {
margin-left: 10px;
}

.button {
background-color: orangered;
font-size: 0.8rem;
font-weight: 600;
color: #fff;
padding: 1rem;
border-radius: 0.25rem;
border: 0;
outline: 0;
margin-top: 5%;
}
.button:focus-visible {
background-color: #333;
}
Loading