Code Monkey home page Code Monkey logo

results-summary-card's Introduction

Frontend Mentor - Results summary component solution

Click here to view my site!!!

score card mobile view score card desktop view active state button

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
  • Bonus: Use the local JSON data to dynamically populate the content

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

Below are clearer class names at a glance. Still a work in progress, but I'm improving

<div class="desktop-container">
  <section class="results-section">
    <header class="results-section-header">Your Result</header>
    <div class="results-section-score">
      76 <span class="out-of-total">of 100</span>
    </div>
    <div class="results-section-text-container">
      <div class="results-section-text">
        <div>Great</div>
        <span class="results-section-percentage">
          You scored higher than 65% of the people who have taken these tests!
        </span>
      </div>
    </div>
  </section>

  <section class="summary-section">
    <h3 class="summary-section-header">Summary</h3>

    <div class="reaction-category">
      <span
        ><img src="./assets/images/icon-reaction.svg" alt="bolt-icon" />
        Reaction</span
      >
      <span class="summary-section-test-scores"
        >80<span class="out-of-total"> / 100</span></span
      >
    </div>

    <div class="memory-category">
      <span>
        <img src="./assets/images/icon-memory.svg" alt="brain-icon" />
        Memory</span
      >
      <span class="summary-section-test-scores"
        >92<span class="out-of-total"> / 100</span></span
      >
    </div>

    <div class="verbal-category">
      <span>
        <img src="./assets/images/icon-verbal.svg" alt="speech-bubble-icon" />
        Verbal</span
      >
      <span class="summary-section-test-scores"
        >61<span class="out-of-total"> / 100</span></span
      >
    </div>

    <div class="visual-category">
      <span>
        <img src="./assets/images/icon-visual.svg" alt="eye-icon" />
        Visual</span
      >
      <span class="summary-section-test-scores"
        >72<span class="out-of-total"> / 100</span></span
      >
    </div>
    <button class="continue-button">Continue</button>
  </section>
</div>

Below is some CSS that I was new to using: gradients

.results-section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background: linear-gradient(
    180deg,
    rgba(119, 85, 255, 1) 20%,
    rgba(47, 44, 233, 1) 100%
  );
  height: 45rem;
  border-radius: 0 0 70px 70px;
  text-align: center;
}

Continued development

Working on using relative units of measurement rather than hardset ones for ease of use on diff screen sizes

Useful resources

Author

results-summary-card's People

Contributors

lbuchanancates avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.