Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix button and pricing cards compatibility with blog posts and fix bug with pricing cards #23

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion theme/modules/button.module/module.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="fj-container fj-flex fj-justify-center fj-items-center">
<div class="fj-not-prose fj-container fj-flex fj-justify-center fj-items-center">
{% set href = module.cta_link.url.type == "EMAIL_ADDRESS" ? "mailto:" ~ module.cta_link.url.href : module.cta_link.url.href %}
<a class="fj-button fj-rounded-md"
href="{{ module.cta_link.url.type == "CALL_TO_ACTION" ? href : href|escape_url }}"
Expand Down
9 changes: 5 additions & 4 deletions theme/modules/pricing-cards.module/module.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{% if module.pricing_card_group | length == 3 %}
{% set grid_col_class = 'lg:fj-grid-cols-3' %}
{% set length = module.pricing_card_group | length %}
{% if length == 3 %}
{% set grid_col_class = 'lg:fj-grid-cols-3 lg:fj-max-w-full' %}
{% endif %}

<div class="fj-not-prose fj-grid fj-grid-cols-1 fj-max-w-sm lg:fj-max-w-full fj-place-items-center lg:fj-place-items-baseline fj-mx-auto {{ grid_col_class or 'fj-max-w-2xl' }}">
<div class="fj-not-prose fj-grid fj-grid-cols-1 fj-place-items-center fj-max-w-sm fj-mx-auto {{ grid_col_class or '' }}">
{% for item in module.pricing_card_group %}
<div class="fj-w-full fj-border-gray-300 fj-flex fj-flex-col fj-place-content-center fj-justify-center fj-gap-4 fj-p-12 {{ 'fj-border-t lg:fj-border-t-0 lg:fj-border-l' if loop.index0 }}">
<div class="fj-w-full fj-border-gray-300 fj-flex fj-flex-col fj-place-content-center fj-justify-center fj-gap-4 fj-p-12 {{ 'fj-border-t lg:fj-border-t-0 lg:fj-border-l' if loop.index0 }} {{ 'lg:!fj-border-t lg:fj-border-l-0' if length <= 2 }}">
<p class="fj-text-base fj-font-semibold fj-leading-none">{{ item.tier_name }}</p>

<div class="fj-grid fj-gap-2">
Expand Down