mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 02:19:01 +01:00
use set instead
This commit is contained in:
parent
fef0cc3edc
commit
a931643afc
1 changed files with 6 additions and 7 deletions
|
@ -163,15 +163,14 @@ const features = [
|
||||||
const randomFeatures = features.sort(() => 0.5 - Math.random()).slice(0, 3);
|
const randomFeatures = features.sort(() => 0.5 - Math.random()).slice(0, 3);
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<div class="features-container">
|
|
||||||
<% randomFeatures.forEach(feature => { %>
|
<% randomFeatures.forEach(feature => { %>
|
||||||
<div class="feature">
|
<div class="feature-set">
|
||||||
<div class="feature-set-title"><%- feature.icon %>
|
|
||||||
|
<div class="feature-set-title"><%- feature.icon %>
|
||||||
<%- feature.title %> </div>
|
<%- feature.title %> </div>
|
||||||
<p><%- feature.description %></p>
|
<p><%- feature.description %></p></div>
|
||||||
</div>
|
|
||||||
<% }) %>
|
<% }) %>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="adaptive-grid">
|
<div class="adaptive-grid">
|
||||||
<%- include('./partials/card',
|
<%- include('./partials/card',
|
||||||
|
|
Loading…
Reference in a new issue