Skip to content

Commit

Permalink
Merge pull request #37 from mnyrop/ed-design
Browse files Browse the repository at this point in the history
Remove card layout from exhibits carousel
  • Loading branch information
edmadrid authored Feb 14, 2024
2 parents edd2550 + 56f1687 commit ca58090
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion site/_includes/components/heros/exhibits-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2 class="text-center py-6 text-3xl font-bold">Example exhibit carousel title</h2>
<div class="hero block">
<div class="hero-content mx-auto bg-neutral">
<div class="carousel items-center py-5">
<div class="carousel not-prose items-start py-5">
{% assign featured = items | limit: 4 %}
{%- for item in featured -%}
<div class="carousel-item px-5 lg:basis-1/6 basis-1/5">
Expand Down
2 changes: 1 addition & 1 deletion site/_includes/components/items/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<div class="siema">
{%- for item in items -%}
<div class="pr-5">
<div class="pr-12">
{% include "partials/item-card.html" %}
</div>
{%- endfor -%}
Expand Down
17 changes: 11 additions & 6 deletions site/_includes/partials/exhibit-card.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<a class="card w-96 bg-base-100 shadow-xl max-h-96" href="{{ '/item/'| append: item.id | url }}">
<figure class="">
<a class="w-44 md:w-96 flex flex-col" href="{{ '/item/'| append: item.id | url }}">
<div class="p-5 backdrop-brightness-90 align-center justify-center">
{% capture img_url %}https://d1b7k5w7yjwpfg.cloudfront.net/iiif/2/bibliopolitica_{{ item.id }}_{{ item.id }}_001/full/800,/0/default.jpg{% endcapture %}
<img src="{{ img_url }}" alt="" class="" />
</figure>
<div class="card-body items-center text-center">
<h2 class="card-title text-gray-400">{{ item.label }}</h2>
<img src="{{ img_url }}" alt="" class="h-56 mx-auto" />
</div>
<div class="text-base pt-2">
<div class="font-bold">
{{ item.label }}
</div>
<div>
Some more explanatory text for the exhibit
</div>
</div>
</a>

0 comments on commit ca58090

Please sign in to comment.