Skip to content

Commit

Permalink
Merge pull request #5 from JohnathonKoster/template-updates
Browse files Browse the repository at this point in the history
Small tweaks
  • Loading branch information
jackmcdade authored Oct 28, 2024
2 parents 0989a76 + 92780fc commit 2d4c428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/views/events/index.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ <h1 class="text-6xl mb-12 text-center italic uppercase font-light tracking-wides

<div class="max-w-3xl content mx-auto px-4">
<div class="grid md:grid-cols-2 gap-4">
{{ collection:events sort="date:asc" }}
{{ collection:events sort="date:asc" as="events" }}
{{ events }}
<a href="{{ url }}" class="flex items-center border bg-white border-indigo-800 group hover:border-black">
<div class="bg-indigo-800 group-hover:bg-black text-white w-14 text-center py-2 mr-8">
<div class="text-xs tracking-wide uppercase text-indigo-200 leading-none">{{ date format="M" }}</div>
<div class="text-4xl leading-none">{{ date format="j" }}</div>
</div>
<h3 class="m-0 group-hover:text-black">{{ title }}</h3>
</a>
{{ /events }}
{{ /collection:events }}
</div>
</div>
2 changes: 1 addition & 1 deletion resources/views/partials/_form.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ if success }}
<h2 class="text-green-600 mb-0 pb-0 text-center">
{{ success }}
</div>
</h2>
{{ else }}
{{ if errors }}
<div class="bg-red-300 text-white p-2">
Expand Down

0 comments on commit 2d4c428

Please sign in to comment.