Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
3
Comments
3
Krisztina Kovari
@krystonen

All comments

  • rebecca•60
    @rebeccaaaaaaaaaaa
    Submitted over 3 years ago

    NFT Card using Reactjs and Styled Components

    #react#styled-components
    2
    Krisztina Kovari•60
    @krystonen
    Posted over 3 years ago

    Hi Rebecca,

    Nice work! I like that you used React and styled components. I have a few comments on your solution (I worked on it myself recently).

    • Check design for the hover state, I found it an interesting challenge in itself (tip: use pseudo elements.)
    • Try to resolve accessibility issues flagged by the report
    • Can you use more meaningful semantic HTML for your markup?
    • Would you consider using css variables styled components ( I actually looked this up for myself as well: https://www.joshwcomeau.com/css/css-variables-for-react-devs/ )
    • Responsiveness: On mobile the card doesn't appear fully. On desktop the card seems larger than on the design. My tips: try using relative units instead of fixed pixels where it makes sense. add media query if relative units don't do the job.
    Marked as helpful
  • Krisztina Kovari•60
    @krystonen
    Submitted over 3 years ago

    NFT preview card component using HTML and CSS

    #accessibility#bem#airtable
    4
    Krisztina Kovari•60
    @krystonen
    Posted over 3 years ago

    I actually found a great youtube video about before after pseudo elements plus hover state: https://www.youtube.com/watch?v=djbtPnNmc0I I thought this may help someone else with this task.

  • Sachin Khatri•30
    @sachinkhatrilin
    Submitted over 3 years ago

    NFT preview card challenge submission

    1
    Krisztina Kovari•60
    @krystonen
    Posted over 3 years ago

    Hi Sachin, Nice job on the challenge!

    As I was just doing this challenge myself, I can share some of my thoughts with you as it's still fresh:

    • Look at the report and try to fix the HTML and accessibility issues. These are such useful messages and will make your code better.
    • I see you applied the hover state at once on the image, title and author name. My question to you: what's the purpose of the hover state(s)? When should they change color? When you hover the image, or when you hover the individual elements (image, title, author).
    • I also struggled to have no opacity on the eye icon on hover state. You can check my code how I did it.
    • When you hover the state, the border-radius from the corners are gone.
    • I think the spacing is ok, but some padding may be missing from the bottom and maybe between the image and the title
    • Some distance the arrow icon and the 0.041ETH missing
    • Your separator line has different color ( I would personally avoid using hr for this purpose)
    • On mobile view the padding got smaller around the image

    Cheers!

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