Skip to content

matthummeldev/results-summary-component

Repository files navigation

Frontend Mentor - Results summary component solution

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

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • TailwindCSS and Flowbite
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • TailwindCSS - A utility-first CSS framework
  • Flowbite - Open-source library of over 600+ UI components for TailWind

What I learned

Use this section to recap over some of your major learnings while working through this project. Writing

 <ul class="flex flex-wrap flex-row gap-y-5">
                    <li class="w-full p-4 bg-red-100 rounded-lg">    
                      <div class="flex flex-row items-center justify-between py-2">
                        <div  class="flex inline-flex">

                          <div class="p-1 text-rose-900">

                            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-4 w-4">
                              <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" />
                            </svg>
                            
                      </div>
                      <div class="text-rose-900">
                            Y Reaction
                      </div>
                        </div>
                      <div class="ml-2 text-sm">
                               <span class="font-extrabold"> 80 </span> <span class="text-slate-400 font-extralight">/ 100</span>
                          </div>
                      </div>
                      <li>
                        <li class="w-full p-4 bg-yellow-100 rounded-lg">    
                          <div class="flex flex-row items-center justify-between py-2">
                            <div  class="flex inline-flex">
    
                              <div class="p-1 text-rose-900">
    
                                <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-4 w-4">
                                  <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" />
                                </svg>
                                
                          </div>
                          <div class="text-rose-900">
                              Memory
                          </div>
                            </div>
                          <div class="ml-2 text-sm">
                                   <span class="font-extrabold"> 92 </span> <span class="text-slate-400 font-extralight">/ 100</span>
                              </div>
                          </div>
                          <li>
                            <li class="w-full p-4 bg-green-100 rounded-lg">    
                              <div class="flex flex-row items-center justify-between py-2">
                                <div  class="flex inline-flex">
        
                                  <div class="p-1 text-rose-900">
        
                                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-4 w-4">
                                      <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" />
                                    </svg>
                                    
                              </div>
                              <div class="text-rose-900">
                                    Verbal
                              </div>
                                </div>
                              <div class="ml-2 text-sm">
                                       <span class="font-extrabold"> 61 </span> <span class="text-slate-400 font-extralight">/ 100</span>
                                  </div>
                              </div>
                              <li>
                                <li class="w-full p-4 bg-purple-100 rounded-lg">    
                                  <div class="flex flex-row items-center justify-between py-2">
                                    <div  class="flex inline-flex">
            
                                      <div class="p-1 text-rose-900">
            
                                        <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-4 w-4">
                                          <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" />
                                        </svg>
                                        
                                  </div>
                                  <div class="text-rose-900">
                                       Visual
                                  </div>
                                    </div>
                                  <div class="ml-2 text-sm">
                                           <span class="font-extrabold"> 72 </span> <span class="text-slate-400 font-extralight">/ 100</span>
                                      </div>
                                  </div>
                                  <li>
                   </ul>
  "build": "tailwindcss -o dist/tailwind.css --minify"
@layer base {
    html {
        font-family: 'Hanken Grotesk', sans-serif;    }
  }

Useful resources

Author

Acknowledgments

Special thank you for the developers at TailWindCSS for the excellent documentation they provide on their website.