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

Result summary component

P

@Qayyax

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

Not putting the images in public folder before deploying.

Community feedback

@sksksk2024

Posted

Hallow, @Qayyax!! πŸ‘‹πŸ‘‹πŸ‘‹

Your project looks solid! Appreciate that you put the percent (in / 100), icon, and the category in variables in a separate folder (data.json). Fun little fact to improve your code: put the color variables, fonts, and media queries in the Tailwind config file like so:

module.exports = {
  content: ["./src/**/*.{js,jsx,ts,tsx}"], // Adjust the path if your components are elsewhere
  theme: {
    screens: {
      'sm': {'min': '320px', 'max': '410px'},
    },
    extend: {
      fontFamily: {
        hanken: ["hanken"],
      },
      colors: {
        "pale-blue": "hsl(221, 100%, 96%)",
        "slate-blue": {
          "light": "hsl(252, 100%, 67%)",
          "dark": "hsl(241, 81%, 54%)",
        },
        "violet-blue": "hsla(256, 72%, 46%, 1)",
        "dark-gray-blue": "hsl(224, 30%, 27%)",
        "light-red": {
          default: "hsl(0, 100%, 67%)",
          light: "hsl(0, 100%, 67%, .2)",
        },
        "orangey-yellow": {
          default: "hsl(39, 100%, 56%)",
          light: "hsl(39, 100%, 56%, .2)",
        },
        "green-teal": {
          default: "hsl(166, 100%, 37%)",
          light: "hsl(166, 100%, 37%, .2)",
        },
        "cobalt-blue": {
          default: "hsl(234, 85%, 45%)",
          light: "hsl(234, 85%, 45%, .2)",
        },
      }
    },
  },
  plugins: [],
};

Hope it helps and keep it up the flawless work! πŸ”₯πŸ”₯

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