-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard.ejs
21 lines (19 loc) · 902 Bytes
/
card.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
```{=html}
<%
// Number of columns
const cols = 3;
%>
<div class="list grid quarto-listing-cols-<%=cols%>">
<% for (const item of items) { %>
<div class="g-col-1" <%= metadataAttrs(item) %>>
<div class="quarto-grid-item card h-100 card-left" style="padding-top: 0.5em; padding-left: 0.5em; background-color: #7b8a8b; color: #ffffff;">
<h3 class="no-anchor card-title listing-title" style="padding-bottom: 3.5em;"><%= item.text %></h3>
<% if ('content') { %>
<p class="card-content listing-content" style="padding-bottom: 1em; position: absolute; bottom: 0;"><%= item.content %></p>
<% } %>
<button type="button" onclick="window.open('<%= item.href %>', '_blank');" target = "_blank" style="position: absolute; bottom: 0.3em; left: 0; right: 0; margin: 0 auto; background-color: #2c3e50; border: none; color: #ccd1d5;">View</button>
</div>
</div>
<% } %>
</div>
```