Skip to content

Commit

Permalink
eat: Add header and footer to Bootstrap cards
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jan 26, 2024
1 parent 9fea9c5 commit c51e1aa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions public/js/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ function loadCollections() {

domString += `
<div class="card mb-5">
<div class="card-body">
<div class="card-header">
<h2>${terms[i].term}</h2>
</div>
<div class="card-body">
<p class="card-text">
${terms[i].definition}
</p>
</div>
<div class="card-footer">
<p class="card-text">
This definition comes from: ${terms[i].organisation}
This definition comes from: ${terms[i].organisation}
</p>
</div>
</div>
`;
}
Expand Down

0 comments on commit c51e1aa

Please sign in to comment.