Design comparison
Community feedback
- @py-code314Posted about 2 months ago
Hello,
nice job with the project. Thought I could give you some suggestions regarding your code.
- I noticed that your
/src
folder contains all the projects. Aren't we supposed to make separate repos for different projects? - It's better not to use <br> in h1. Please refer to this MDN article . Instead you can use
display: block
on <span> - Is there a reason you used two different methods when defining the colors in
colors.scss
? - I think rather than limiting the width of <body>, better approach would be using
justify-content: center
. You also don't needmargin: 0 auto
- Text in
.header__description
taking up whole width of the screen when screen size goes below 768px. I think it's a bug and you can usemax-width
inch
units to fix that - It should be 4 rows in the grid with height - auto on them in desktop view
- We shouldn't give fixed width and height to cards. Width should be defined in
grid-template-columns
property and contents of the card should determine the height .cyan
&.blue
should be occupying middle 2 rows,.red
should be occupying top 2 rows and.orange
bottom 2. I can't figure out how 'cyan' & 'blue' sitting in the middle like that lol- Border radius can be increased to match the curve in design
These are just suggestions and hopefully helpful. All the best
Marked as helpful1@Untest57Posted about 2 months ago@py-code314 Thank you for your feedback. I have applied your suggestions to the code and will provide you with an answer.
-
I didn't want the repository to increase while doing the 'Frontend Mentor' challenge. And I wanted to easily distribute it to one domain, so I used one repository.
-
Thank you for the great suggestion. The reason I wrote
<br>
was because I didn’t think of the method you suggested. -
When trying to match the border and the given color, I tried to use a css variable and could not fix it after switching to the scss function.
-
I modified it according to your opinion, but since
<body>
itself needs to be centered,margin: 0 auto
should be used. -
This was intentional. During responsive work, if the
.header__description
part is not wide enough, it looks too empty, so I did not specify the left and right sizes. -
I did not understand the opinion you suggested.
-
The reason I specified the size directly on the card was because I wanted the size of the card to be fixed.
-
I also couldn't read it just by looking at the CSS, so I added
grid-column
. -
It was applied later and was not applied to the screenshot. I created a screenshot again.
Thanks again for your feedback.
0 - I noticed that your
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord