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

Projeto Feito com Flex

accessibility
Elson Martins•150
@ElsonMartins
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Olá, comunidade, sou o Elson, mas um projeto realizado.

Foi um projeto mais tranquilo, comparado aos que fiz, porém, tem o detalhe da foto não consegui fazer, tentei, mas eu acho que é um pouco mais complexo do que parece.

Hello, community, I'm Elson, but a completed project.

It was a calmer project, compared to the ones I've done, however, there's the detail in the photo that I couldn't do, I tried, but I think it's a little more complex than it seems.

Code
Couldn’t fetch repository

Please log in to post a comment

Log in with GitHub

Community feedback

  • Luciano Lima•1,270
    @LucianoDLima
    Posted over 1 year ago

    Salve maninho, espero que esteja curtindo essa jornada, vi que você começou recentemente, e ta mandando bem!

    Algumas dicas ai que possam te ajudar, desculpa que vai ficar um textão kk

    • É legal evitar o uso essessivo de divs, mas é importante também não usar as tags erradas. Digo isso pois você utilizou duas vezes a tag <section>, uma para englobar a parte onde mostra os days left e a outra na foto de perfil. Nesses dois casos o correto seria usar div e não **section. Section você usa quando é literalmente separar uma seção de páginas, por exemplo, aqui no frontendmentor tem 4 seções dentro da main tag:
    1. A seção onde mostra a imagem de fundo com o seu projeto e o botão de preview e de visitar o código
    2. A seção do design comparison, onde da para comparar o seu projeto com o design oficial
    3. A seção onde você deixa a sua mensagem com perguntas ou dúvidas sobre o projeto
    4. E finalmente, essa seção que estou usando agora que engloba a parte de deixar um feedback pra você

    Então aqui você pode ver que a seção está separando temas distintos. No caso do seu projeto, ele tem apenas uma seção, que seria a que mostra o card todo e você está usando a tag <main> (correto inclusive). Então caso você queira utilizar a tag section, por exemplo, o correto seria você criar uma tag <section class="container"> e remover o class="container" da tag <main> mas sem remover a tag main, faz sentido? Espero que eu não tenha deixado mais confuso haha mas qualquer dúvida pode perguntar

    Marked as helpful

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.

Oops! 😬

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

Log in with GitHub