Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Responsive Testimonials using grid

Raptor0x1•210
@Raptor0x1
A solution to the Testimonials grid section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Maybe Next time I wanna make it more accessible. I don't know much about accessibility yet.

What challenges did you encounter, and how did you overcome them?
  • I got stuck in setting the quotes behind the content in the first box. I used pseudo elements such as ::before and ::after but couldn't do it then saw some solutions of others. It was easy, I was just making it difficult. At the end I used background-image without pseudo element. Next time, first I will try to do these types of things without ::before and ::after.
  • One more there was some extra space in the bottom div but i was able to overcome it by asking in the discord. (Setting grid-template-rows to auto)
What specific areas of your project would you like help with?
  • I always get confused what to name the classes which are same like multiple boxes or items. For this project I have written item-one, item-two, .... Is it alright to use these class names.
  • Next there's this box-shadow I never get it right same as the design. If anyone have some tips on this please do share.
Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Gwenaël Magnenat•1,540
    @gmagnenat
    Posted about 1 year ago

    Hi and congrats on completing the challenge !

    The result looks nice as a first sight, so congrats for that !

    As you ask about accessibility i'll try to focus on this. It's a subject i'm very interested in. Accessibility is a lot about correct HTML.

    Does the solution include semantic HTML?

    • You are missing a <main> element
    • I would just use an <img> element for the profile picture. not an empty div with a background image which doesn't tell anything to a screenreader for example.
    • You should use <p> for your text content for name and title so it has a semantical meaning.
    • You should have only one h1 per page then use lower level heading. You can probably use h2 for the item headings.
    • You can use the blockquote element for the quote.
    • The attribution items could be put in a <footer> element

    Is it accessible, and what improvements could be made?

    • it scale correctly when the browser font-size is increased

    • Eveything should be included in a landmark. missing <main> as mentioned above.

    Does the layout look good on a range of screen sizes?

    • it looks good

    Is the code well-structured, readable, and reusable?

    HTML and class names

    • About class names. Instead of "item-one" "item-two" you can use :nth-of-type() in your css and you just keep the item class.
    • Same thing for "img-one" "img-two"... just use the <img> element with the correct image so you don't need these classes. Much simpler to handle and see what is happening.
    • Instead of generic class names like "title" which could be a lot of different things if I don't know the code. Try to check some CSS methodology like BEM for example. the name classe could be something like author__name

    CSS

    • You need a modern CSS reset at the beginning of your stylesheet for browser consistency. Check out Josh Comeau or Andy Bell they both have a good modern CSS reset.
    • The background pattern for the quote could be just added to an extra class. So you could move it to another quote for example.
    • Using better classnames will help a lot to organise this and make it much more maintainable.
    • If you work mobile first I don't think you need to set a min and max media query

    Does the solution differ considerably from the design? The solution respects the design intention.

    Things I liked to see

    • good use of font sizes in rem
    • min-height and max-width
    • relative unit in media queries

    I hope you find something useful to in these comments to improve your solution and your future challenges. Don't hesitate to ask on discord if some of the points here are unclear.

    Happy Coding !

    Marked as helpful
  • P
    Aysenur•380
    @aysenurtatli
    Posted about 1 year ago

    Look's amazing.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub