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

Testimonials Grid Section using React + Tailwind CSS with a twist

#accessibility#react#tailwind-css#vite#animation

@rashidshamloo

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Implemented using components in react and the data is loaded dynamically from a JSON file.

Learned a lot about using various grid properties in Tailwind CSS. if you want to use grid-template-areas in Tailwind CSS, you can use this plugin: Grid Areas for Tailwind CSS

Click the "Dice" button for random colors!

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

.

HEADINGS ⚠️:

  • This solution has generated accessibility error report due to lack of level-one heading <h1>
  • Every site must want at least one h1 element identifying and describing the main content of the page.
  • An h1 heading provides an important navigation point for users of assistive technologies, allowing them to easily find the main content of the page.
  • So we want to add a level-one heading to improve accessibility by reading aloud the heading by screen readers, you can achieve this by adding a sr-only class to hide it from visual users (it will be useful for visually impaired users)

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

1

@rashidshamloo

Posted

@0xAbdulKhalid Thanks for your feedback. I've added an sr-only h1 heading for accessibility. Tailwind CSS has an sr-only class by default with a different implementation than the link you posted but both should work fine I guess.

This is what the sr-only class in Tailwind CSS looks like:

position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
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