<div class="england-merchandise-card">
    <img class="england-merchandise-card__image" src="/assets/example-content/merchandise-image.png" alt="">
    <img class="england-merchandise-card__product-image" src="/assets/example-content/merchandise-product-img.png" alt="">
    <div class="england-merchandise-card__card-content">
        <div class="england-merchandise-card__price-section">
            <div class="price"><span>&#163;</span>70</div>
            <div class="discount"><span>&#163;</span>30</div>
        </div>
        <div class="title">Mens Home Shirt 2021-22</div>
        <div class="england-merchandise-card__cta-section">
            <div class="buynow"><a href="" class="cta cta--primary " target="_blank" name="buy-now">
                    <p>Buy Now</p>
                </a>
            </div>
            <div class="seemore"><a href="" class="cta cta--primary " target="_blank" name="see-more">
                    <p>See More</p>
                </a>
            </div>
        </div>
    </div>
</div>

No notes defined.

{
  "card-image": "/assets/example-content/merchandise-image.png",
  "product-image": "/assets/example-content/merchandise-product-img.png",
  "title": "Mens Home Shirt 2021-22",
  "pricesection": {
    "price": "70",
    "discount": "30"
  },
  "cta1": {
    "copy": "Buy Now",
    "name": "buy-now",
    "href": "",
    "target": "_blank"
  },
  "cta2": {
    "copy": "See More",
    "name": "see-more",
    "href": "",
    "target": "_blank"
  }
}
  • Content:
    .england-merchandise-card {
      border: 0.1rem solid #eceef330;
      border-radius: 0.4rem;
      background: $blue;
      width: 27.2rem;
      position: relative;
      transition: transform 0.3s;
    
      &:hover {
        transform: translateY(-15px);
      }
    
      &__image {
        height: 20.2rem;
        width: 27.2rem;
        border-radius: 0.4rem;
      }
    
      &__product-image {
        position: absolute;
        top: 0;
        left: 7rem;
      }
    
      &__price-section {
        font-family: $ef-font;
        font-style: normal;
        font-weight: 400;
        display: flex;
        column-gap: 1.3rem;
        align-items: center;
        justify-content: left;
        margin-bottom: 0.5rem;
    
        .price {
          position: relative;
          font-size: 1.6rem;
          line-height: 2.6rem;
          color: $grey-light;
          opacity: 0.75;
    
          &::before {
            content: '';
            display: block;
            width: 3.4rem;
            border-top: 0.1rem solid $red;
            height: 0.1rem;
            position: absolute;
            top: 1.3rem;
            left: -0.4rem;
          }
        }
    
        .discount {
          font-size: 2.8rem;
          line-height: 2.6rem;
          color: $white;
        }
      }
    
      &__card-content {
        padding: 1.8rem 1.6rem 1.6rem 1.6rem;
    
        .title {
          font-family: $ef-font;
          font-style: normal;
          font-weight: 400;
          font-size: 1.8rem;
          line-height: 2.6rem;
          color: $white;
        }
      }
    
      &__cta-section {
        display: flex;
        flex-direction: column;
        row-gap: 0.8rem;
        margin-top: 0.8rem;
    
        .buynow a {
          font-family: $ef-font;
          font-weight: 400;
          text-align: center;
          color: $blue;
          background-color: $white;
          border: 0.1rem solid $white;
          border-radius: 0.2rem;
          width: 24rem;
          height: 3.6rem;
          min-height: 3.6rem;
          transition: all 0.2s ease-in;
        }
    
        .seemore a {
          font-family: $ef-font;
          font-weight: 400;
          text-align: center;
          color: $white;
          background-color: $blue;
          border: 0.1rem solid $white;
          border-radius: 0.2rem;
          width: 24rem;
          height: 3.6rem;
          min-height: 3.6rem;
          transition: all 0.2s ease-in;
        }
    
        .buynow a:hover {
          border: 0.1rem solid $red;
          background-color: $red;
          color: $white;
        }
    
        .seemore a:hover {
          border: 0.1rem solid $red;
          background-color: $red;
          color: $white;
        }
      }
    
      @media screen and (min-width: $mq-medium) {
        width: 35.2rem;
    
        &__image {
          height: 24.2rem;
          width: 35.2rem;
        }
    
        &__product-image {
          left: 13rem;
        }
    
        &__price-section {
          font-weight: 500;
        }
    
        &__card-content {
          .title {
            font-weight: 500;
          }
        }
    
        &__cta-section {
          flex-direction: row;
          margin-top: 1.6rem;
          column-gap: 1.4rem;
    
          .buynow a {
            width: 15.2rem;
          }
    
          .seemore a {
            width: 15.2rem;
          }
        }
      }
    }
    
  • URL: /components/raw/england-merchandise-card/england-merchandise-card.scss
  • Filesystem Path: src/library/components/england-merchandise-card/england-merchandise-card.scss
  • Size: 3 KB
<div class="england-merchandise-card">
  <img class="england-merchandise-card__image" src="{{card-image}}" alt="">
  <img class="england-merchandise-card__product-image" src="{{product-image}}" alt="">
  <div class="england-merchandise-card__card-content">
    <div class="england-merchandise-card__price-section">
      {{#if pricesection.price}}
      <div class="price"><span>&#163;</span>{{pricesection.price}}</div>
      {{/if}}
      <div class="discount"><span>&#163;</span>{{pricesection.discount}}</div>
    </div>
    <div class="title">{{title}}</div>
    <div class="england-merchandise-card__cta-section">
      <div class="buynow">{{render '@cta' cta1 merge="true"}}</div>
      <div class="seemore">{{render '@cta' cta2 merge="true"}}</div>
    </div>
  </div>
</div>