Latest solutions
Interactive rating component solution
#bemSubmitted 9 months agoAny suggestions to improve are welcome.
Profile card component solution
#bemSubmitted 9 months agoI need help with how to change Background image bottom's size on smaller screen for better responsiveness.
Huddle landing page with single introductory section solution
#bemSubmitted 9 months agoI need help with the icon colour change.
3-column preview card component solution (First Try at BEM)
#bemSubmitted 9 months agoTried BEM for first time, some reviews/suggestions would be helpful.
Latest comments
- @tannguyenk3Submitted 8 months ago
- @thisispeterjSubmitted about 1 year agoWhat are you most proud of, and what would you do differently next time?
The setup of the desktop layout using grid, and the positioning of the svg quote using a pseudo element along with absolute positioning.
What challenges did you encounter, and how did you overcome them?The main challenges I encountered were in most effectively grouping and naming elements with css classes. I wanted to keep my code as dry, readable, and as reusable as possible. I also found it a challenge to exactly match the box-shadows of the cards, and tried to use the figma design, but ultimately just ended up eyeballing it.
What specific areas of your project would you like help with?I would really appreciate any guidance on the HTML organization and CSS classes I used for the cards. Specifically:
- What is the most efficient and semantic way to name the cards with different colors
- What is the most efficient and semantic way to name the cards for the grid template needed to position them in the desktop view
- What is the best strategy for taking a box-shadow in a design, and converting that to CSS so that color, spread, blur and x/y positioning are accurate.
- @anaiswritingcodeSubmitted 11 months agoWhat are you most proud of, and what would you do differently next time?
In this project I implemented:
- BEM notation
- Custom CSS properties
- Media queries
- Mobile-first approach
- Semantic HTML
- Responsive design
- Grid areas
If I had to change something, I'd like to analyze the given design beforehand to figure out the least extensive route instead of jumping right into the CSS, this way I may be able to write less code than it's really needed.
What challenges did you encounter, and how did you overcome them?It was my first time using grid areas, but they were very straightforward so everything turned out fine!
What specific areas of your project would you like help with?I'd be interested in seeing different approaches to this challenge that contain less CSS.
@Y-ashbhattPosted 9 months agoNice Solution. I used flexbox and was thinking how would I do it using grid and this cleared quite a few things.
1 - @muhammadkevinpfSubmitted 9 months ago@Y-ashbhattPosted 9 months ago
The solution looks great.
But it seems like you forgot about the active states. This can be done easily using the
:hover
property.If you want to learn about
:hover
this article on MDN is pretty good.If have any questions about it feel free to ask.
Happy Coding.
0 - @Poojachoudhary21Submitted 9 months ago@Y-ashbhattPosted 9 months ago
Hello.
Your solution looks Great!
I have just a tip:
You've set
width: 22%
for the card and this is making it shrink as you reduce the window width. Instead, you can set a max-width to it.And about height, you don't need to set height to the card, because it adapts automatically as you add content to it. Rather you can add padding.
Hope it helps.
Happy Coding!!
0 - @AmandeepGuggiSubmitted 9 months agoWhat are you most proud of, and what would you do differently next time?
I'm really proud of how fast I got this done. And I did this without any external help
What challenges did you encounter, and how did you overcome them?It made me revise grid properties
What specific areas of your project would you like help with?should I use grid or not this confuses me sometimes
@Y-ashbhattPosted 9 months agoHello!!
Congratulations on completing this challenge.
There might be some confusion as I checked your code and your have not used Grid but Flexbox.
As for grid it's mainly used to make 2D layouts whereas flexbox is mostly used to make 1D.
A nice guide for Grid is Guide to CSS Grid .
For Flexbox its Guide to Flexbox.
Hope you find it helpful.
Marked as helpful0