Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

just HTML & CSS

hamid Molaβ€’ 120

@hamidMolaDev

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


If someone know the better way to colorize the image, please send me a feedback. how can i get feedback and comments from others?

Community feedback

@MelvinAguilar

Posted

Hello there πŸ‘‹. Good job on completing the challenge !

  • To recreate the exact purple color of the image you can do the following:
figure {
β€Ž β€Ž β€Ž background-color: rgb(171, 92, 219);
}

img {
β€Ž β€Ž . . .
β€Ž β€Ž β€Ž β€Ž/* filter: opacity(45%); */
β€Ž β€Ž β€Ž β€Žopacity: 0.75;    
β€Ž β€Ž β€Ž β€Žmix-blend-mode: multiply;
}

/* Remove all this selector */
#img-div { ... }
  • The second style applies a blending effect to the image by setting the mix-blend-mode property to multiply. This means that the image will blend with the background color in a way that multiplies the color values of each pixel.
  • Now, you won't need an empty div just to display the purple color.

I hope you find it useful! πŸ˜„ Above all, the solution you submitted is great!

Happy coding!

Marked as helpful

3

hamid Molaβ€’ 120

@hamidMolaDev

Posted

Hello @MelvinAguilar , thank you for all that you've done. especially you giving your time for recommendation, thank you ❀. actually i tried to use β€Ž"mix-blend-mode: multiply;" but i couldn't set the exact color how do you do that, i mean how do you know if i use β€Ž"opacity: 0.75;" and "background-color: rgb(171, 92, 219)" it works?

0
hamid Molaβ€’ 120

@hamidMolaDev

Posted

hello @MelvinAguilar can you help me with my new project i get these error i my Chat app CSS illustration sample project: error Buttons must have discernible text

<button id="back"> <span class="back-sign"></span> <span class="back-sign"></span>
          </button>

Learn more error Buttons must have discernible text

<button id="send-button"> <span class="back-sign"></span> <span class="back-sign"></span> </button>
1

@MelvinAguilar

Posted

@hamidMolaDev Hi again!, I have seen that you have already modified the solution, but in case you still want to know, the error you are getting ("Buttons must have discernible text") is related to accessibility. It's important to ensure that buttons have meaningful content for screen readers and other assistive technologies to properly convey their purpose to users.

In summary, your buttons didn't have visible text inside, they only had the empty <span> tags. The solution was to add "invisible text" or an aria-label to the button to provide a description of what the button does for screen readers.

<button id="back" aria-label="Return to previous screen"></button>

Marked as helpful

1
hamid Molaβ€’ 120

@hamidMolaDev

Posted

@MelvinAguilar thank you πŸ™πŸ™

0
hamid Molaβ€’ 120

@hamidMolaDev

Posted

Hello @MelvinAguilar, I read your projects codes and I have a question about it if you don't misunderstand me, why your CSS codes are long and can you tell me what's the best practice for class names?

0

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