Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Frontend Mentor NFT Preview card component

Alozieโ€ข 10

@Realestfinbarr

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


questions: (1). how do you make it a mobile view? (2). I did'nt quite get a clear css style guide so i had to make mine, do you think it's close?

Community feedback

@efecollins

Posted

Hello Alozie, great job you did here. Congrats!

  1. To make it mobile (responsive), you have to use media query which works in this format:
@media screen and (max-width: 375px) {
          /* your code goes here */
}

For more study on Responsive Web Design, visit W3Schools. Don't forget to google search for queries like how to make your website responsive. You can also visit the Resources page on Front-End Mentor.

  1. This is an explanation of the style guide.
  • Layout: Your viewport for desktop should be 1440px and for mobile 375px.

  • Colors: The colors for your project begin from the hsl keyword e.g Soft blue: hsl(215, 51%, 70%) means hsl(215, 51%, 70%).

  • Font size: Your paragraph should have a font size of 18px.

  • Font: Go to the URL https://fonts.google.com/specimen/Outfit and select the font weights: 300, 400 and 600. Link the font to your CSS as such @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap'); at the top of your CSS page. Then do this:

body {
font-family: 'Outfit', sans-serif;
font-weight: 400;
}

Note: Change your font-weight where applicable.

I hope I was able to answer your questions to a helpful level. Do enjoy your coding journey

0
Hyronโ€ข 5,850

@hyrongennike

Posted

Hi,

Congrats on submitting your solution there's always room to improve You can replace you section rule in the CSS with the below to center the card on the page.

section {
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

You can add the following to the body tag:

body {
    font-family: Arial, sans-serif;
}

You're currently using a serif font in the style guide in the challenge there's a link to the font that should be used.

You can look at my solution below to see which HTML element I used and how I structured my HTML:

my nft card

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord