#10 Score Card

Preview

  • Friends 23K + 23
  • Likes 1857 - 105
  • Posts 44 + 6

HTML

SCSS


*, ::after, ::before {
  box-sizing: border-box;
}

/* css element */

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

ul.score-card {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;

  li {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 160px;
    margin: 30px 20px 20px 20px;
    position: relative;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
    
    .icon {
      width: 50px;
      height: 50px;
      border-radius: 10px;
      background-color: #a4d077;
      position: absolute;
      top: -25px;
      left: 50%;
      margin-left: -25px;
      text-align: center;
      line-height: 50px;
      
      svg {
        fill: #ffffff;
        width: 32px;
        vertical-align: middle;
      }
    }
    
    .information {
      padding-top: 20px;
      font-family: 'Fira Sans', sans-serif;
      text-align: center;
      
      .title {
        color: #162B39;
        font-size: 14px;
        font-weight: 400;
        display: block;
        margin-bottom: 5px;
      }
      
      .value {
        color: #162B39;
        font-size: 28px;
        font-weight: 900;
        display: block;
        margin-bottom: 5px;
      }
      
      .comparation {
        color: #8492A6;
        font-size: 14px;
        font-weight: 400;
        display: block;
        
        &.red {
          color: #EB0001;
        }
          
        &.green {
          color: #4ebc04;
        }
      }
    }
  }
}


Notes

In the code you can replace the images, icons and font. For icons and font you may have to change the size in the css.

Help the Project

Your help is important for the success of this project. We will make this project grow for everyone.