-
Notifications
You must be signed in to change notification settings - Fork 12
cubes #17
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?
cubes #17
Conversation
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.
|
|
||
| <body> | ||
|
|
||
| <div class="all"> |
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.
You should use more appropriate class name, in this case I would use cubes or container at least
Same for all other classes, instead of using c1 it could be cubes__first-block
| <div class="all"> | ||
| <div class="cube c1"> | ||
| <img src="img/rain.png"> | ||
| <p>CHICAGO/23°</p> |
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.
It's not necessary to write text in uppercase, consider using styles for that instead
| <p>CHICAGO/23°</p> | ||
| </div> | ||
| <div class="cube c2"> | ||
| <img src="img/fog.png"> |
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.
You should always add alt attribute for the images, either empty or whats on the picture in two words
| <div class="cube c5"> | ||
| <img src="img/cloud_wind.png"> | ||
| <div class="red_bottom"> | ||
| <div class="day_weather"> |
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.
You have a lot of similar html tags, <ul> with <li> elements would fit better in this case
Also I would suggest to use more semantic tags
| margin: 5px; | ||
| } | ||
|
|
||
| .day img { |
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.
avoid using html tags, it's better to use class names, except for body and html
| .all { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| color: white; |
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.
Keep in mind order of properties, group them by type
1 - layout (position, display)
2 - anything related to box model (width/height/margin/padding)
3 - styling for element (color, background, box-shadow)
4 - anything related to font
5 - other stuff, it also includes overflow, z-index
|
|
||
| .day img { | ||
| width: 24px; | ||
| .day {} No newline at end of file |
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.
May I ask whats that for?

No description provided.