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

bugfix and update styling for modules #24

Merged
merged 2 commits into from
Aug 29, 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/card.module/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% set imageAlign = 'fj-justify-end' %}
{% endif %}

<div class="fj-grid fj-grid-cols-1 fj-place-items-center fj-mx-auto {{ grid_col_class }}">
<div class="fj-not-prose fj-container fj-grid fj-grid-cols-1 fj-place-items-center fj-mx-auto {{ grid_col_class or '' }}">
{% for card in module.card %}
<div class="fj-max-w-96 fj-p-4">
{% if card.image.src %}
Expand Down
2 changes: 1 addition & 1 deletion theme/modules/flip-cards.module/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set grid_col_class = 'lg:fj-grid-cols-3' %}
{% endif %}

<div class="fj-container fj-grid fj-grid-cols-1 fj-place-items-center fj-gap-8 fj-mx-auto {{ grid_col_class or 'fj-max-w-2xl' }}">
<div class="fj-not-prose fj-container fj-grid fj-grid-cols-1 fj-place-items-center fj-gap-8 fj-mx-auto {{ grid_col_class or '' }}">
{% for flipcard in module.flip_cards_list %}
<div class="fj-min-h-[375px] fj-max-w-sm fj-relative fj-w-full fj-h-full
fj-transform fj-transition-all fj-transform-style-3d fj-perspective-1000 fj-group">
Expand Down
1 change: 1 addition & 0 deletions theme/modules/list.module/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"BLOG_LISTING",
"BLOG_POST"
],
"label": "List",
"is_available_for_new_content": true
}
12 changes: 5 additions & 7 deletions theme/modules/stats-simple-grid.module/module.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
{% if module.stats_list | length == 2 %}
{% set grid_col_class = 'lg:fj-grid-cols-2' %}
{% endif %}
{% set cols = module.stats_list | length %}

{% if module.stats_list | length == 3 %}
{% if cols == 3 %}
{% set grid_col_class = 'lg:fj-grid-cols-3' %}
{% endif %}

{% if module.stats_list | length >= 4 %}
{% if cols >= 4 %}
{% set grid_col_class = 'lg:fj-grid-cols-4' %}
{% endif %}

<div class="fj-not-prose fj-grid fj-gap-1 fj-grid-cols-1 sm:fj-grid-cols-2 fj-text-balance {{ grid_col_class or '' }}">
<div class="fj-not-prose fj-grid fj-grid-cols-1 fj-gap-1 fj-text-balance {{ 'sm:fj-grid-cols-2' if cols >= 2 }} {{ grid_col_class }}">
{% for item in module.stats_list %}
<div class="fj-grid fj-bg-gray-100 fj-place-items-center fj-text-center fj-p-2">
<p class="fj-text-3xl fj-font-semibold fj-tracking-tight">{{ item.title }}</p>

<p class="fj-text-sm fj-leading-7">{{ item.subtext }}</p>
<p class="fj-text-sm">{{ item.subtext }}</p>
</div>
{% endfor %}
</div>
8 changes: 4 additions & 4 deletions theme/modules/stats-simple.module/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
{% set grid_col_class = 'lg:fj-grid-cols-4' %}
{% endif %}

<div class="fj-not-prose fj-grid fj-grid-cols-1 fj-gap-x-4 fj-gap-y-16 fj-text-balance {{ grid_col_class or '' }}">
<div class="fj-not-prose fj-container fj-place-items-center fj-grid fj-grid-cols-1 fj-gap-6 {{ grid_col_class }}">
{% for item in module.stats_list %}
<div class="fj-grid fj-place-items-center fj-gap-2 fj-text-center">
<p class="fj-text-3xl fj-font-semibold fj-tracking-tight sm:fj-text-4xl">{{ item.stats_title }}</p>
<div class="fj-grid fj-gap-2 fj-text-center">
<p class="fj-text-3xl fj-font-semibold fj-tracking-tight">{{ item.stats_title }}</p>

<p class="fj-text-base fj-leading-7">{{ item.subtext }}</p>
<p class="fj-text-sm">{{ item.subtext }}</p>
</div>
{% endfor %}
</div>
2 changes: 1 addition & 1 deletion theme/modules/stats-timeline.module/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<circle cx="2" cy="2" r="2" fill="currentColor" />
</svg>
{{ item.date }}
<div class="fj-absolute fj-h-px fj-bg-blue-600 lg:fj-static fj-w-auto fj-flex-auto lg:fj-translate-x-0"></div>
<div class="fj-absolute fj-h-px fj-bg-gradient-to-r fj-max-w-xs fj-from-blue-600 lg:fj-static fj-w-auto fj-flex-auto lg:fj-translate-x-0"></div>
</div>

<p class="fj-text-2xl fj-font-semibold">{{ item.title }}</p>
Expand Down