@paperbits/core
Version:
Paperbits core components.
24 lines (22 loc) • 855 B
HTML
<div class="testimonials">
<blockquote>
<span data-bind="text: textContent"></span>
</blockquote>
<!-- ko foreach: { data: [...Array(allStarsCount()).keys()] } -->
<!-- ko if: $index() <= $parent.starsCount()-1 -->
<svg height="20" width="20">
<polygon points="10,1 4,19 19,8 1,8 16,19" stroke="rgb(0 0 0 / 51%)" stroke-width="2px"></polygon>
<polygon points="10,1 4,19 19,8 1,8 16,19" fill="#ffdc12" />
</svg>
<!-- /ko -->
<!-- ko if: $index() > $parent.starsCount()-1 -->
<svg height="20" width="20">
<polygon points="10,1 4,19 19,8 1,8 16,19" fill="#B6B6B4" />
</svg>
<!-- /ko -->
<!-- /ko -->
<div class="name">
<b><span data-bind="text: author"></span></b>
<p><span data-bind="text: authorTitle"></span></p>
</div>
</div>