<div class="product-name">
    <h1 class="product-name__value">PEAHI</h1>
    <h2 class="product-name__summary">Polarized men&#x27;s classic sunglasses</h2>
    <a class="product-name__rating-link" href="#">
    <span class="product-name__rating-label" href="#">
      4.8 (12)
    </span>
    <span class="product-name__rating-review" href="#">
      Write a review
    </span>
  </a>
</div>
<div class="product-name">
  <h1 class="product-name__value">{{product.name}}</h1>
  <h2 class="product-name__summary">{{product.summary}}</h2>
  {{#unless excludeRatingLink}}
  <a class="product-name__rating-link" href="#">
    {{#unless excludeRating}}
    <ul class="product-name__rating">
      {{#each product.rating}}
      <li class="product-name__rating-star product-name__rating-star--{{this}}">
        <svg class="icon icon--star icon--{{this}}">
          <use xlink:href="/assets/icons/icons.svg#{{this}}"></use>
        </svg>
      </li>
      {{/each}}
    </ul>
    {{/unless}}
    <span class="product-name__rating-label" href="#">
      4.8 (12)
    </span>
    <span class="product-name__rating-review" href="#">
      Write a review
    </span>
  </a>
  {{/unless}}
</div>
{
  "pageCss": [
    "products"
  ],
  "product": {
    "name": "PEAHI",
    "summary": "Polarized men's classic sunglasses",
    "description": "Pe'ahi ('peh-AH-hee'), on Maui's north shore. Known for big waves as extreme as 70 feet. Its legendary reef break is respectfully referred to by surfers as Jaws.",
    "category": "Wrap",
    "rating": [
      "star-full",
      "star-full",
      "star-empty",
      "star-empty",
      "star-empty"
    ],
    "vip": null,
    "tax": "Inkl. MWST",
    "variants": [
      {
        "id": "202-02",
        "name": "Gloss Black",
        "color": "#000",
        "orderMonth": "12",
        "orderYear": "2017",
        "locationCategory": "Online Retailer",
        "purchaseLocation": "Dicks.com",
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/202-02_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/202-02_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/202-02_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": true,
        "price": "$149.00",
        "salePrice": "$229.00",
        "url": "#202-02",
        "status": null,
        "stock": "In Stock",
        "lens": "Neutral Grey",
        "lensId": "neutralgrey",
        "lensFull": "Neutral Grey - Highest light reduction for rich color and contrast.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "202-02",
          "inactive": null,
          "material": "superthin"
        }
      },
      {
        "id": "B202-2M",
        "name": "Matte Black",
        "color": "#000",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/B202-2M_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/B202-2M_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/B202-2M_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$189.00",
        "salePrice": "$219.00",
        "url": "#B202-2M",
        "status": null,
        "stock": "In Stock",
        "lens": "Blue Hawaii",
        "lensId": "bluehawaii",
        "lensFull": "Blue Hawaii - Blue mirror coating provides a stylish new look.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "B202-2M",
          "inactive": true,
          "material": "superthin"
        }
      },
      {
        "id": "H202-10",
        "name": "Dark Tortoise",
        "color": "#303032",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/H202-10_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-10_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/H202-10_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": "https://mauijim.scene7.com/is/image/mauijim/10",
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#H202-10",
        "status": null,
        "stock": "In Stock",
        "lens": "HCL® Bronze",
        "lensId": "hclbronze",
        "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "H202-10",
          "inactive": true,
          "material": "superthin"
        }
      },
      {
        "id": "H202-2M",
        "name": "Matte Black",
        "color": "#000",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#H202-2M",
        "status": null,
        "stock": "In Stock",
        "lens": "HCL® Bronze",
        "lensId": "hclbronze",
        "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "H202-2M",
          "inactive": true,
          "material": "superthin"
        }
      },
      {
        "id": "H202-70",
        "name": "Redfish",
        "color": "#7d4a07",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/H202-70_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-70_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/H202-70_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#H202-70",
        "status": null,
        "stock": "In Stock",
        "lens": "HCL® Bronze",
        "lensId": "hclbronze",
        "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "H202-70",
          "inactive": true,
          "material": "superthin"
        }
      },
      {
        "id": "HT202-71",
        "name": "MahiMahi",
        "color": "#218b16",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#HT202-71",
        "status": null,
        "stock": "In Stock",
        "lens": "Maui HT™",
        "lensId": "mauiht",
        "lensFull": "Maui HT™ - Highest usable light transmission for incredible depth perception.",
        "lensMaterial": "MauiPure",
        "lensMaterialFull": "MauiPure - The lightest weight choice for long days in the sun.",
        "lensDetailData": {
          "product": "HT202-71",
          "inactive": true,
          "material": "mauipure"
        }
      },
      {
        "id": "H202-2M-2",
        "name": "Matte Black",
        "color": "#000",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#H202-2M-2",
        "status": "New",
        "stock": "Out of Stock",
        "lens": "HCL® Bronze",
        "lensId": "hclbronze",
        "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "H202-2M-2",
          "inactive": true,
          "material": "superthin"
        }
      },
      {
        "id": "H202-70-2",
        "name": "Redfish",
        "color": "#7d4a07",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/H202-70_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-70_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/H202-70_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#H202-70-2",
        "status": null,
        "stock": "In Stock",
        "lens": "HCL® Bronze",
        "lensId": "hclbronze",
        "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
        "lensMaterial": "SuperThin Glass",
        "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
        "lensDetailData": {
          "product": "H202-70-2",
          "inactive": true,
          "material": "superthin"
        }
      },
      {
        "id": "HT202-71-2",
        "name": "MahiMahi",
        "color": "#218b16",
        "orderMonth": null,
        "orderYear": null,
        "locationCategory": null,
        "purchaseLocation": null,
        "images": {
          "front": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_front?$config1800$",
          "angle": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_quarter?$config1800$",
          "side": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_side?$config1800$"
        },
        "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
        "swatchImage": null,
        "active": null,
        "price": "$229.00",
        "salePrice": null,
        "url": "#HT202-71-2",
        "status": null,
        "stock": "In Stock",
        "lens": "Maui HT™",
        "lensId": "mauiht",
        "lensFull": "Maui HT™ - Highest usable light transmission for incredible depth perception.",
        "lensMaterial": "MauiPure",
        "lensMaterialFull": "MauiPure - The lightest weight choice for long days in the sun.",
        "lensDetailData": {
          "product": "HT202-71-2",
          "inactive": true,
          "material": "mauipure"
        }
      }
    ],
    "callToAction": null,
    "mauijim": null,
    "zeal": null,
    "excludeVariants": null,
    "mymaui": "true",
    "prescription": null
  },
  "excludeRating": true
}
  • Content:
    .product-name {
      text-align: center;
    
      @include breakpoint($breakpoint-md) {
        text-align: left;
      }
    }
    
    .product-name__value {
      margin: 0;
      color: $color-dark;
      font-size: 2.4rem;
      font-weight: $font-weight-bold;
      letter-spacing: 3px;
      line-height: 2.8rem;
      text-shadow: none;
      text-transform: uppercase;
    
      @include breakpoint($breakpoint-md) {
        font-size: 2.7rem;
        line-height: 3.5rem;
      }
    }
    
    .product-name__summary {
      display: block;
      margin: 0 0 20px;
      padding: 0;
      color: $color-dark;
      font-size: 2rem;
      font-weight: $font-weight-normal;
      line-height: 3rem;
    }
    
    .product-name__rating {
      @include reset-list;
      display: inline-block;
      margin: 0 10px 0 0;
      vertical-align: middle;
    
      @include breakpoint($breakpoint-md) {
        float: left;
      }
    }
    
    .product-name__rating-star {
      display: inline-block;
      margin-right: 5px;
    }
    
    .product-name__rating-link {
      display: block;
      color: $color-darkest;
      text-decoration: none;
    
      @include breakpoint($breakpoint-sm-only) {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    
    .product-name__rating-label {
      display: block;
      margin-right: 10px;
      float: left;
      font-size: 1.4rem;
      line-height: 2.0rem;
      vertical-align: middle;
    
      .icon {
        position: relative;
        top: -1px;
        height: 8px;
        padding-left: 5px;
      }
    
      &:hover .icon {
        transition: fill $transition-standard;
        fill: $color-primary;
      }
    }
    
    .product-name__rating-review {
      display: block;
      float: left;
      font-size: 1.4rem;
      line-height: 2.0rem;
      vertical-align: middle;
    }
    
  • URL: /components/raw/product-name/product-name.scss
  • Filesystem Path: src/components/02-components/product-name/product-name.scss
  • Size: 1.6 KB

There are no notes for this item.