Steven Croft
@scroft001All comments
- @shashikantdev3Submitted over 1 year ago@scroft001Posted over 1 year 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.
2 - @mohamed-magdy26Submitted over 1 year ago
well, I'm feeling that the image part is not best practice is there anyway I can use img tag for image while changing the "src" attribute for different query ? I had to use background image for this to handle but I had a problem that the div has no height when I made the responsive design so I had to give it min-height to image height? also when I used the img tag when I increase gap between elements the component height increase but the image height did not which made a white area under the image
@scroft001Posted over 1 year 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 helpful1 - @jbaldwin406Submitted over 1 year ago
Only pain point I had on this challenge was getting the hover state for the image to work how I wanted it to. Had to use a workaround where I included an 'overlay' class that is set to 0 opacity until hovered. I also set the background color using rgba in order to have just the background color have opacity, and not affect the view icon.
@scroft001Posted over 1 year agoI 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.
0 - @raphaelsiqueiiraSubmitted almost 2 years agoWhat 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
@scroft001Posted over 1 year agoI 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 helpful0