Skip to content
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
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
}
306 changes: 306 additions & 0 deletions css/danti.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
.contener{
Copy link
Copy Markdown

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.css on the store page, be aware that you have a rulset in that CSS file for .contener as well. If you want them to do different things, you'll need to give them different class names.

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

Choose a reason for hiding this comment

The 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{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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 style.css file in a <link> tag in your store page as well as your new store CSS file. This means as long as you use the same HTML for the header and navigation, then they will look identical too (with one exception - in the design for the store page the "Store" link is always highlighted in orange, to show which page you're on).

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

}



Loading