Skip to content

Commit

Permalink
press release card has footer with date and edited title
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoggridge committed Jun 12, 2024
1 parent 91bf729 commit 27e1e56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ metathis::meta() |>
# >> "card title...", "card text...", "link: either local file name or url"
tibble::tribble(
~title, ~text, ~link,
"Press Release, May 5th, 2024", "Good news! CUBE is part of a successful grant application to Genome Canada’s Genomics Applications Partnership Program (GAPP).", "gapp_release.html",
"Press Release", "\nGood news! CUBE is part of a successful grant application to Genome Canada’s Genomics Applications Partnership Program (GAPP).", "gapp_release.html",
) |>
# map data into nice html cards with responsive bootstrap layout
bs4cards::cards(
title = title,
footer = "May 30th, 2024",
text = text,
link = link,
spacing = 4, # space between cards
Expand Down
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,14 @@ <h4>Developing environmental sampling as a method for monitoring
<div>
<div class="row p-0 row-cols-1 row-cols-lg-2" style="margin-left: -.6rem; margin-right: -.6rem; margin-top: 1rem; margin-bottom: 1rem; ">
<div class="card bg-transparent m-0 border-0 collapse.show bs4cards-blahblahblah " style="padding: .6rem ; border-width: 0; border-radius: .6rem .6rem .6rem .6rem ;">
<div class="card-body justify-content-end m-0 p-0" style="visibility: visible; background-color: inherits; border-style:solid; border-color:inherits; border-width:1px; border-radius: .6rem .6rem .6rem .6rem ;">
<div class="card-body justify-content-end m-0 p-0" style="visibility: visible; background-color: inherits; border-style:solid; border-color:inherits; border-width:1px; border-radius: .6rem .6rem 0 0 ;">
<a href="gapp_release.html">
<h5 class="card-title my-auto px-3 pt-3 pb-1">PRESS RELEASE 2024-05-30</h5>
<h5 class="card-title my-auto px-3 pt-3 pb-1">Press Release</h5>
</a>
<p class="card-text my-auto px-3 pb-3 pt-1">Good news! CUBE is part of a successful grant application to Genome Canada’s Genomics Applications Partnership Program (GAPP).</p>
<p class="card-text my-auto px-3 pb-3 pt-1">
Good news! CUBE is part of a successful grant application to Genome Canada’s Genomics Applications Partnership Program (GAPP).</p>
</div>
<div class="card-footer small text-muted px-3 py-auto" style="border-style:solid; border-color:inherits; border-width:0 1px 1px 1px; border-radius: 0 0 .6rem .6rem ;">May 5th, 2024</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion site_libs/bootstrap-4.6.0/bootstrap.min.css

Large diffs are not rendered by default.

0 comments on commit 27e1e56

Please sign in to comment.