Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request failed with status code 502
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

3-column preview card component challenge hub using Sass/scss

Hugo Padillaβ€’ 210

@HugoPadilla

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi all, Thank you for taking time to review my code!

If there is anything I can improve. I appreciate any comments, thank you

Community feedback

Travolgi πŸ•β€’ 31,420

@denielden

Posted

Hello Hugo, great job! Congratulations on completing the challenge.

Add same border in button to the normal state, so that it doesn't jump when hovering over it :)

Tip of graphic design: With font-family:" Big Shoulders Display ", cursive the browser will use the Comics Sans font when it doesn't find the first font indicated (you can seen during loading) ... for the designer it's a really awful font!

  • I would rather replace it with a font-family:" Big Shoulders Display ", sans-serif much more similar to the primary font.

Overall you did well! Hope this help ;) Keep it up and happy coding!

Marked as helpful

1

Hugo Padillaβ€’ 210

@HugoPadilla

Posted

@denielden Thank you very much. I really appreciate it. I will put these recommendations into action!

1
namasSinjaliβ€’ 190

@namasSinjali

Posted

I'd like to point out one thing though: the card's height changes when the mouse pointer hovers over a button. It doesn't feel good and also causes performance issues as the whole card needs to rerender.

Define the button's border with color transparent and make it visible on hover.

.button {
    ...
    border: 2px solid transparent;
}
.button:hover {
    border-color: white;
}
2

Hugo Padillaβ€’ 210

@HugoPadilla

Posted

@namasSinjali Thanks for your comment. I will try to test it!

0
PhoenixDev22β€’ 16,950

@PhoenixDev22

Posted

Hello @HugoPadilla ,

I have some suggestions regarding your solution:

  • There should be two landmark components as children of the body element - a main (which will be the component ) , a footer landmark for the( attribution).

  • For any decorative images, each img tag should have emptyalt=""and aria-hidden="true" attributes to make all web assistive technologies such as screen reader ignore those images. In this case, all images are decorative only.

  • swap the buttons for anchor tags. Clicking those "learn more" buttons would trigger navigation not do an action so button elements would not be right. And for future, it is essential if you include a button in a form element without specifying it's just a regular button, it defaults to a submit button., though, so it's a good idea to make a habit of specifying the type

  • you can add a <h1> with class="sr-only" (Hidden visually, but present for assistive tech).

.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
		clip-path: inset(50%) !important; 
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;            
}
  • The links learn more moves up on the hover , it's not normal , you can solve it by setting border: 2px solid transparent ; and the hover will border: 2px solid #f2f2f2;(Add transition : ; and better not to use px for the boder-width )

  • I recommend to use em and rem units .Both em and rem are flexible, Using px won't allow the user to control the font size based on their needs.

Overall , your solution is good . Hopefully this feedback helps

1

Hugo Padillaβ€’ 210

@HugoPadilla

Posted

@PhoenixDev22 Thank you very much for your comment. I appreciate all the details. I will certainly try to put them into practice.

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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