-
-
Notifications
You must be signed in to change notification settings - Fork 620
Finish HTML-CSS-Module-Project #458
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 all commits
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "liveServer.settings.port": 5501 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,306 @@ | ||
| .contener{ | ||
| display: grid; | ||
| height: 100vh; | ||
| grid-template-columns:0.5fr 1fr 1fr 1fr 1fr 0.5fr; | ||
| grid-template-rows: 0.5fr 3fr 3fr 0.5fr ; | ||
| grid-template-areas: | ||
| "nav nav nav nav nav nav" | ||
| ". form form img img img" | ||
| ". form form img img img" | ||
| ". hr hr hr hr hr" | ||
| ". foot foot foot foot foot" | ||
|
Comment on lines
+7
to
+11
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. Because you're just stacking the various sections of the page on top of each other, you don't really need them to be part of the same grid layout. The only block here that needs more than one column is the row with the form on the left and the image on the right, so you could just have that block be a grid. This would make this code more concise and easier to understand 🤓 |
||
| ; | ||
|
|
||
| } | ||
|
|
||
| .nav_all{ | ||
|
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. One of the most powerful parts of CSS is "re-usability": even though this is a totally separate page to the homepage, you don't need to write the header/navigation styles all over again. You can just include the main |
||
| display: flex; | ||
| width: 100%; | ||
| grid-area: nav; | ||
| grid-column: 1/-1; | ||
| } | ||
|
|
||
| .icon_nav_p2{ | ||
| display: flex; | ||
| width: 100%; | ||
| height:80px; | ||
| margin-top: auto; | ||
| background-color: rgb(238, 237, 237); | ||
|
|
||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
| .nuv_bar { | ||
| display: flex; | ||
| background-color: rgb(238, 237, 237); | ||
| width: auto; | ||
| height: 30px; | ||
| width: auto; | ||
| height: auto; | ||
| list-style: none; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| grid-area: nav; | ||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
| .nav_ul_p2{ | ||
| display: flex; | ||
| list-style: none; | ||
| font-weight:initial; | ||
| width: 700px; | ||
| height: 30.60px; | ||
| justify-content: space-between; | ||
| padding: 5px; | ||
| text-align: center; | ||
| } | ||
|
|
||
|
|
||
| a{ | ||
| text-decoration: none; | ||
| } | ||
|
|
||
|
|
||
| a:hover{ | ||
| color: rgb(217, 73, 16); | ||
| } | ||
|
|
||
| li{ | ||
| padding-top: 5px; | ||
| } | ||
|
|
||
| img{ | ||
| width: 100%; | ||
| } | ||
|
|
||
| .img_contener{ | ||
| display:flex; | ||
| grid-area: img; | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
| .title{ | ||
|
|
||
| color: rgb(223, 125, 89); | ||
| margin-top: 50px; | ||
| margin-bottom: 50px; | ||
|
|
||
| } | ||
|
|
||
| .form{ | ||
|
|
||
|
|
||
| grid-area: form; | ||
| justify-items: center; | ||
| grid-row: 2/ 4; | ||
|
|
||
| } | ||
|
|
||
| .first_last{ | ||
| display: flex; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| .first_name{ | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
|
||
| #name_input{ | ||
| width: 90%; | ||
| margin-top: 3px; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| .last_name{ | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
|
||
| #last_name_input{ | ||
| width: 95%; | ||
| margin-top: 3px; | ||
| } | ||
|
|
||
| .address{ | ||
| margin-top: 10px; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| #addres_input{ | ||
| width: 97%; | ||
| margin-top: 3px; | ||
| } | ||
|
|
||
| .address_2{ | ||
| margin-top: 10px; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| #address_input_2{ | ||
| width: 97%; | ||
| margin-top: 3px; | ||
| } | ||
|
|
||
| .city_postcode{ | ||
| margin-top: 15px; | ||
| display: flex; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| #city{ | ||
|
|
||
| width: 450px; | ||
| height: 60%; | ||
| margin-top: 5px; | ||
| } | ||
|
|
||
|
|
||
| .postcode{ | ||
| width: 40%; | ||
| margin-left:40px; | ||
| } | ||
|
|
||
|
|
||
| #postcode_input{ | ||
| width: 91%; | ||
| margin-top: 3px; | ||
| } | ||
|
|
||
| .color_radio{ | ||
| display: flex; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| .karma_orange{ | ||
| display: flex; | ||
| width: 50%; | ||
| height: 40px; | ||
| } | ||
| #orange{ | ||
| padding-bottom: 3px; | ||
| accent-color:#DE6E49; | ||
| } | ||
| .lab_1{ | ||
| margin-top: 6px; | ||
| } | ||
| .karma_grey{ | ||
| display: flex; | ||
| width: 50%; | ||
| accent-color:#DE6E49; | ||
| } | ||
| #gray{ | ||
| padding-bottom: 5px; | ||
|
|
||
| } | ||
|
|
||
| .lab_2{ | ||
| margin-top: 6px; | ||
|
|
||
| } | ||
|
|
||
| .checkbox_1{ | ||
| display: flex; | ||
| margin-bottom: 40px; | ||
| accent-color:#DE6E49; | ||
|
|
||
| } | ||
|
|
||
| .term{ | ||
| display: flex; | ||
| font-size: 15px; | ||
|
|
||
|
|
||
| } | ||
|
|
||
| #term_input{ | ||
| margin-top: 1px; | ||
|
|
||
| } | ||
|
|
||
| .term_text{ | ||
| display: flex; | ||
| padding-top: 5px ; | ||
| width: auto; | ||
| } | ||
|
|
||
| span{ | ||
| color: rgb(217, 73, 16); | ||
| } | ||
|
|
||
| button{ | ||
| padding: 10px; | ||
| width: 150px; | ||
| /* border-radius: 3px; */ | ||
| background-color: rgb(240, 113, 29); | ||
| color: #fff; | ||
| /* margin-left: 35%; */ | ||
| border: 2px solid #afafaf; | ||
| border-radius: 4px; | ||
|
|
||
| } | ||
|
|
||
| button:hover{ | ||
| color: rgb(217, 73, 16); | ||
| } | ||
|
|
||
|
|
||
| input { | ||
| border-radius: 3px; | ||
| height: 25px; | ||
| border: 2px solid #afafaf; | ||
| border-radius: 4px; | ||
| } | ||
| select{ | ||
| border-radius: 3px; | ||
| height: 25px; | ||
| border: 2px solid #afafaf; | ||
| border-radius: 4px; | ||
|
|
||
| } | ||
|
|
||
| footer{ | ||
| grid-area: foot; | ||
| } | ||
|
|
||
| .join_us{ | ||
| text-align: center; | ||
|
|
||
| } | ||
|
|
||
| .footer_imgs{ | ||
| display: flex; | ||
| flex-direction: row; | ||
| justify-content: center; | ||
| height: 100px; | ||
| } | ||
|
|
||
| .footer_ico{ | ||
| border:3px solid rgb(218, 219, 218); | ||
| display: flex; | ||
| width: 30px; | ||
| height: 30px; | ||
| margin-top: 10px; | ||
| border-radius: 70px; | ||
| padding: 10px; | ||
|
|
||
| } | ||
|
|
||
| .hr{ | ||
|
|
||
| grid-area: hr; | ||
| width: 100%; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
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.
If you do follow my other comment and include
style.csson the store page, be aware that you have a rulset in that CSS file for.conteneras well. If you want them to do different things, you'll need to give them different class names.