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

Summary component using CSS and Bootstrap

@genos-ux

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I couldn't use the fonts I was instructed to use.

Community feedback

Lucas 👾 104,420

@correlucas

Posted

👾Hello @genos-ux, Congratulations on completing this challenge!

Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:

Your background is applied but it's not too similar to the design yet. Add background-size: contain instead of background-size: cover to make it display the size full width and center with the card vertically. Note that now is slightly different from the challenge design.Here’s the code with the modification and the image applied as background:

body {
    background: url(images/pattern-background-desktop.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: hsl(225, 100%, 94%);
}

Add the website favicon inserting the svg image inside the <head>. <link rel="icon" type="image/x-icon" href="./images/favicon-32x32.png">

✌️ I hope this helps you and happy coding!

0

@Jorggyh

Posted

To add the font, you can go to Google Fonts https://fonts.google.com/specimen/Red+Hat+Display?query=red+hat

Add the fonts and weights, and copy the link, there is a link that can be added in the html file, and another for the css file, just use one, the link for you to add in the css:

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap');

And finally add in the desired selectors, for example:

body,
button {
     font-family: 'Red Hat Display', sans-serif;
}

Another thing, it is highly recommended that all css be in the css file, not inside the html (but I don't know if you did it that way because of the bootstrap, I've never used it so if that's the case, disregard.)

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