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.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: Nft_Preview_Card
- Live Site URL: CodePen
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).
- Semantic HTML5 markup
- CSS custom properties
- CSS @media queries
- CSS Grid
- Webpage-first workflow
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;
}
I want to continue learning everything i can, actually.
In things related to this project, want to learn more responsive design and conquer it.
- 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.
- Github - Cromega08
- Frontend Mentor - @cromega08
- CodePen - Cromega08
- Hashnode - @Cromega08
I wanna thank me, because i managed to accomplish this challenge.
Superbus et Hedonistic~