Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
8
Comments
4
Steven Croft
@scroft001

All comments

  • Shashikant•430
    @shashikantdev3
    Submitted over 2 years ago

    Responsive Product Preview Card Component | Insp by Kevin Powell's Sol

    #accessibility#bem#progressive-enhancement
    2
    Steven Croft•170
    @scroft001
    Posted over 2 years ago

    If you wanted to get it to the center of the viewport you could add this to the parent element:

    main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    }
    

    You could also try using grid but to me that is not as intuitive.

  • mohamed magdy•110
    @mohamed-magdy26
    Submitted over 2 years ago

    Product preview card component using only html and css

    2
    Steven Croft•170
    @scroft001
    Posted over 2 years ago
    • You can use the <picture> tag when you have different versions of the same image. Using the <picture> tag will help you to load the correct image for the user's device saving bandwidth and improving performance.
       <picture>
          <source media="(max-width: 460px)" srcSet={mobileImage} />
          <img src={desktopImage} alt="{your alt text goes here}" />
        </picture>
    
    Marked as helpful
  • P
    Jeff Baldwin•30
    @jbaldwin406
    Submitted over 2 years ago

    Responsive nft preview card built with HTML/CSS

    2
    Steven Croft•170
    @scroft001
    Posted over 2 years ago

    I did something similar, created a child div containing the image that would overlay the actual NFT. Set the visibility to hidden then when the parent was hovered over I set the visibility to visible. It let me avoid setting the opacity of both the div and the image.

  • Raphael Siqueira•150
    @raphaelsiqueiira
    Submitted over 2 years ago
    What are you most proud of, and what would you do differently next time?

    Estou orgulhoso de como as variáveis CSS ajudaram a organizar meu código de forma eficiente, facilitando as atualizações e mantendo uma consistência visual. Para otimizar ainda mais o desempenho, utilizei a minificação de CSS para reduzir o tamanho dos arquivos, garantindo tempos de carregamento mais rápidos e uma experiência de usuário mais ágil. Essa combinação de técnicas resultou em um projeto mais eficiente e profissional, algo que planejo repetir em projetos futuros.

    I'm proud of how CSS variables helped organize my code efficiently, making updates easier and maintaining visual consistency. To further optimize performance, I used CSS minification to reduce file sizes, ensuring faster loading times and a smoother user experience. This combination of techniques resulted in a more efficient and professional project, something I plan to replicate in future projects.

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

    Não enfrentei grandes desafios durante este projeto. A familiaridade com as tecnologias e a clareza dos requisitos tornaram o processo de desenvolvimento bastante tranquilo. Isso me permitiu focar na implementação das funcionalidades e na criação de um design atraente. Ao seguir uma abordagem iterativa e organizada, consegui avançar de maneira eficiente e alcançar os objetivos estabelecidos para o projeto. Essa experiência me permitiu consolidar meus conhecimentos e fortalecer minha confiança como desenvolvedor.

    I didn't face significant challenges during this project. Familiarity with the technologies and clarity of the requirements made the development process quite smooth. It allowed me to focus on implementing features and creating an appealing design. By following an iterative and organized approach, I was able to progress efficiently and achieve the project's established goals. This experience allowed me to solidify my knowledge and strengthen my confidence as a developer.

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

    Como iniciante na programação, gostaria de receber feedback sobre melhorias e possíveis alterações no projeto, especialmente em áreas como organização do código, boas práticas de codificação e otimização de desempenho. Qualquer orientação sobre como melhorar minha abordagem de desenvolvimento e elevar a qualidade do projeto seria muito apreciada.

    As a beginner in programming, I would like to receive feedback on improvements and possible changes to the project, especially in areas such as code organization, coding best practices, and performance optimization. Any guidance on how to improve my development approach and elevate the quality of the project would be greatly appreciated

    qr-code-component-main

    2
    Steven Croft•170
    @scroft001
    Posted over 2 years ago

    I also have trouble finding the correct sizes from the images. What I find is if I inspect the properties of the image provided and set my window size to the size of the image then I can use real world spacing to help get me close. It's not perfect but it gets me near where I should be. Then changing those units to responsive units once I have it pretty close.

    You did a pretty great job!

    Marked as helpful
Frontend Mentor logo

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

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

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

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

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

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

Oops! 😬

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

Log in with GitHub