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

dev3

Caiquedev123•80
@Caiquedev123
A solution to the Recipe page 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?

aprendendo sempre a mais

What challenges did you encounter, and how did you overcome them?

css

What specific areas of your project would you like help with?

js

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Bernardo Poggioni•7,030
    @R3ygoski
    Posted over 1 year ago

    Olá Caique, parabéns por ter realizado esse projeto!

    Notei aqui que você utilizou algumas cores e fonte que não são do design original, não sei se foi proposital ou não, caso tenha sido, então por favor ignore o trecho a seguir. Quando é feito o download do projeto, vem um arquivo chamado style-guide.md nele estão definidas as cores, fontes e pesos da fonte a serem utilizadas no projeto.

    Gostaria de dar algumas dicas, começarei pelo HTML, eu percebi que você utilizou muitas tags <div> na estrutura do seu HTML, saiba que isso não está errado, mas isso faz com que sua estrutura não seja semântica, caso você queira focar nessa parte de fazer uma estrutura semântica no HTML, deixarei aqui o seguinte link que explica mais sobre essa parte de semântica: W3School - Semantic HTML.

    Notei que você não coloriu os bullets e números das suas <ul>, uma forma de fazer isso, seria usar o seletor de li e colocar nele uma pseudo-classe de ::marker, dessa forma você conseguirá colorir os bullets e números das listas. Exemplo:

    HTML
    
    <ul>
        <li class="b-red">Item 1</li>
        <li  class="b-blue">Item 2</li>
        <li  class="b-green">Item 3</li>
    </ul>
    
    CSS
    .b-red::marker {
        color: red;
    }
    .b-blue::marker {
        color: blue;
    }
    .b-green::marker {
        color: green;
    }
    

    Nesse exemplo, cada li foi colorida de uma forma diferente, se você quisesse colorir todas, você poderia ou usar o seletor de tag que seria li::marker ou dar a todas as <li> classes com mesmo nome, e utilizar a classe com o ::marker.

    Edit: Acabei dando uma olhada novamente no seu código, e notei que sua tag <img> tem um atributo alt que só está escrito foto, é altamente recomendável que você utilize textos descritivos no atributo alt, pois isso ajuda pessoas com deficiência visual a conseguirem ler a imagem através de leitores de telas e entender o que é.

    Outra coisa que notei, que é mais uma questão organizacional, é a respeito do seu HTML ter algumas <div> com identação um pouco confusa, por exemplo a <div class="receita"> que está mais pra frente do que o conteúdo filho, isso pode causar um pouco de confusão. Mas saiba que isso não irá causar nenhum problema na sua estrutura, é mais uma questão de boa prática mesmo.

    Outra coisa que notei foi que você utilizou vários Lorem ipsum, na pasta de design que vem quando você baixa o projeto, é possível ver os textos corretos, e também quando você baixa o projeto, no index.html também já vem com esses textos, uma dica seria a de copiar tudo que tem no index.html que vêm com o projeto, e deixar em um arquivo de texto, e quando você precisar, basta ir no arquivo de texto, copiar o trecho e colar.

    Edit2: Peço desculpas por estar aqui escrevendo mais um edit, é que eu notei que você colocou na pasta de imagens as suas fontes, isso também não irá causar problemas, mas é uma questão de organização e boa prática coloca-las em uma pasta chamada fonts.

    Novamente, parabéns por ter concluído esse projeto, continue se aprimorando, caso tenha surgido alguma duvida, por favor, responda aqui embaixo que tentarei da melhor forma possível te ajudar.

  • Deepti Singh•120
    @DeeptiGit22
    Posted over 1 year ago

    you are missing the background color on preparation time section and border-bottom in lots of places.

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

Oops! 😬

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

Log in with GitHub