-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor plugin card into its own include
- Loading branch information
Showing
2 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
{% assign plugin = include.plugin %} | ||
|
||
{% capture badges %} | ||
{%- if plugin.tier -%} | ||
{%- include tier.html products=plugin.products tier=plugin.tier url=false-%} | ||
{%- endif -%} | ||
{% endcapture %} | ||
<div class="flex rounded-md border border-primary/5 bg-secondary shadow-primary h-full hover:border hover:border-brand-saturated/40 hover:shadow-hover-card min-h-[260px]"> | ||
<a href="{{plugin.url}}" class="flex flex-col gap-5 hover:no-underline text-secondary w-full p-6"> | ||
<img src="{{ plugin.icon }}" class="w-8 h-8"/> | ||
|
||
{% include card.html icon=plugin.icon title=plugin.name description=plugin.description cta_url=plugin.url badges=badges css_class="min-h-[260px]" %} | ||
<div class="flex flex-col gap-3 flex-grow"> | ||
<h4>{{ plugin.name | liquify }}</h4> | ||
|
||
<p class="text-sm line-clamp-3"> | ||
{{ plugin.description | liquify | markdownify | markdown }} | ||
</p> | ||
</div> | ||
|
||
{% if plugin.tier %} | ||
<div class="flex flex-wrap gap-2"> | ||
{%- if plugin.tier -%} | ||
{%- include tier.html products=plugin.products tier=plugin.tier url=false-%} | ||
{%- endif -%} | ||
</div> | ||
{% endif %} | ||
</a> | ||
</div> |