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
314 changes: 302 additions & 12 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,309 @@

/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
body{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Be careful here that you try to style your code consistently - there's some good information on how to style available here: https://www.w3schools.com/html/html5_syntax.asp

width: 100%;
margin: 0px;
display: block;
}

body {
font-family: 'Roboto', sans-serif;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Roboto is a nicer looking font than the browser defaults and it's something that the project initially had imported. I would in general try to be very specific with the fonts that you use, because otherwise the text will look different on each device.

-webkit-font-smoothing: antialiased;
* {
box-sizing: border-box;
}

/**
* Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
html {
font-family: sans-serif;
}

header {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is a great use of flexbox to create the appropriately spaced header!

width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
height: 5rem;
margin-top: 1rem;
background-color: rgba(196, 196, 196, 0.1);
border-bottom: 0.01rem solid rgb(216, 219, 220);
}

.logo1 {
width: 50%;
}

.img{
padding-top: 1rem;
}

.list {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
align-content: centre;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We use American English as standard practice in CSS, even though the British spelling of centre does also actually work!

list-style: none;
padding: auto;
gap: 1rem;
}

.list a{
text-decoration: none;
}

.list :nth-child(1) {

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 really like this use of a pseudoclass selector, it's a very good use case for it.

color: rgb(118, 123, 125);
}

.bar {
font-weight: 900;
}

/* main */

main{
background-image: url(/img/first-background.jpg);
background-size: cover;
background-position: center;
color: #fff;

}

.karma{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
height: 35rem;
width: 100%;
}

.main p{
font-size: 2rem;
font-weight: 200;
}

main div button {
background-color: rgb(175, 56, 23);
border: none;
}

main div button a {
text-decoration: none;
color: white;
}

/* Article */

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

article img {
width: 60%;
height: 60%;
}

h5 {
font-size: 1rem;
font-weight: 500;
}

hr {
width: 90%;
color: lightgrey;
}

/* footer */



p {
text-align:center;
font-size: 23px;
}

.media ul{
display: flex;
justify-content: center;
gap: 1.5rem;
list-style: none;
padding-left: 0px;

}

.media img{
width: 1.3rem;
height: 1.3rem;
}

footer ul li{
border: 1px solid #bdc3c7;
border-radius: 50%;
padding: 1rem;
}

h6{
color:darkgrey;
text-align: center;
font-weight: 250;
font-size: 15px;
}

/* adding a new STORE PAGE that allows users to buy a Karma device using an order form */

.form-container {
height: 40rem;
width: 100%;
font-family: roboto;
display: flex;
flex-direction: row;
margin: 0;
border-bottom: 0.01rem solid rgb(216, 219, 220);
color: #666666;
}

h1 {
color: #DE6E49;
}


.form {
height: 40rem;
width: 50%;
display: flex;
flex-direction: column;
padding: 3rem;
row-gap: 12px;
}

.form-picture {
width: 50%;
height: 100%;
}

.form-picture img {
width: 100%;
height: 40rem;
}

.form-head {
display: flex;
flex-direction: row;
justify-content: space-between;
column-gap: 12px;
}

#username {
width: 100%;
}

#last_name {
width: 100%;
}

#email {
width: 100%;
}

.form-name {
column-gap: 12px;
}

.drop-box {
display: flex;
flex-direction: row;
justify-content: space-between;
column-gap: 1rem;
}

.drop-box :nth-last-child(1) {
width: 100%;
}

.drop-box :nth-last-child(2) {
width: 100%;
}

.radio {
padding: 1rem 0;
}

fieldset {
border: 0;
padding: 0;
}

fieldset a {
color: red;
}

.order input {
background-color: #DE6E49;
width: 10rem;
border: 0;
border-radius: 0.50rem;
padding: 0.7rem;
color:#ffffff;
}

/*CLOSED*/

/*extending the homepage by adding a new block to it*/

.extension {

display: flex;
width: 100%;
height: 22rem;
padding: auto;
}

.section{
width: 45%;
}

.section-2 {
background-color: rgba(224, 99, 58, 0.1);
width: 55%;
height: 100%;
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
margin: auto;
align-items: center;
}

.extension-text {
font-family: 'Roboto';
width: 40%;
text-align: center;
align-content: center;

}

.button :first-child {
text-decoration: none;
color: #ffffff;
background-color: #E0633A;
border-radius: 0.5rem;
padding: 1rem;
font-size: 15px;
}

.sec2-quote {
color: red;
}

/*CLOSED*/










Loading