Skip to content

cromega08/nft_preview_card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - NFT preview card component solution

This is a solution to the NFT preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

Cromega_Solution

Links

My process

The process was complicated. At start i accomplish to design the card, was really easy and love it the design. The problem was the responsive design, i didn't know how to do a webpage responsive until now, so push myself to study and ended burnedout and without the ability (xd).

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS @media queries
  • CSS Grid
  • Webpage-first workflow

What I learned

As mentioned before, the main thing i learned was responsive design.

Had problems with the condition of make it responsive for diferents screen sizes because the card scaled with the screen size, but figured out how to resolve it.

My first implementation of a @media query in css:

@media (max-width: 401px) {
    body {
        justify-items: left;
    }
    section {
        width: 72.5vw;
        padding: 3vh 10vw;
    }
    
    aside > div {
        width: 90vw;
        padding: .275em
    }
    
    footer {
        font-size: 1.15em;
        justify-self: center;
    }

    label > img {
        width: 77.5vw;
    }

    #background {
        width: 77.5vw;
    }

    #offer {
        width: 75vw;
        margin: 0 .5em;
        font-size: 1.1em;
    }

    #creator {
        width: 75vw;
        padding-top: 1em;
    }

    #title {
        font-size: 1.5em;
        margin: 0;
        margin-top: .35em;
    }

    #limit {
        font-size: 1.3em;
    }

    #author {
        font-size: 1.3em;
    }
    #description {
        font-size: 1.3em;
        margin: 0;
        margin-top: .3em;
    }

Continued development

I want to continue learning everything i can, actually.

In things related to this project, want to learn more responsive design and conquer it.

Useful resources

  • Learn Responsive Design - this website definitely help and motivated me to understanded how to make responsive design. Only learned "@media queries" until date, but feel pretty confident with my evolution.

Author

Acknowledgments

I wanna thank me, because i managed to accomplish this challenge.

Superbus et Hedonistic~