-
Notifications
You must be signed in to change notification settings - Fork 1
feat: timeline component #164
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
Open
maxnoelp2
wants to merge
7
commits into
main
Choose a base branch
from
feat/timeline-component
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ac0368c
feat: Add MilestoneCard component and update timeline template
maxnoelp2 26c29ba
Merge branch 'main' into feat/timeline-component
maxnoelp2 2470b7c
feat: Enhance MilestoneCard with dark background contrast and respons…
maxnoelp2 bdeab40
feat: Add eyebrow text, title, and text fields to TimelineContainer a…
maxnoelp2 e78c860
feat: Add migration for new frontend UI models including ClientCard, …
maxnoelp2 5a4cec3
Merge branch 'main' into feat/timeline-component
fsbraun 10175d0
Merge branch 'main' into feat/timeline-component
fsbraun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
99 changes: 99 additions & 0 deletions
99
cms_theme/migrations/0007_clientcard_codeblock_countercontainer_heading_and_more.py
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| # Generated by Django 6.0.3 on 2026-03-23 15:38 | ||
|
|
||
| from django.db import migrations | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('cms_theme', '0006_benefitscard_benefitspanel_carouselitem_and_more'), | ||
| ('djangocms_frontend', '0002_migrate_links'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='ClientCard', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Client Card', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.CreateModel( | ||
| name='CodeBlock', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Code Block', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.CreateModel( | ||
| name='CounterContainer', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Counter Panel', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.CreateModel( | ||
| name='Heading', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Heading', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.CreateModel( | ||
| name='MilestoneCard', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Milestone Card', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.CreateModel( | ||
| name='ResponsiveTable', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Responsive Table', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.CreateModel( | ||
| name='Spacing', | ||
| fields=[ | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Spacing', | ||
| 'managed': False, | ||
| 'proxy': True, | ||
| }, | ||
| bases=('djangocms_frontend.frontenduiitem',), | ||
| ), | ||
| migrations.AlterModelOptions( | ||
| name='container1coltext', | ||
| options={'managed': False, 'verbose_name': 'Single Column'}, | ||
| ), | ||
| migrations.AlterModelOptions( | ||
| name='containerwithgrid', | ||
| options={'managed': False, 'verbose_name': 'Grid Section'}, | ||
| ), | ||
| ] |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| {% load cms_tags frontend %} | ||
|
|
||
| <article id="milestone-{{ instance.id }}" class="milestone-card"> | ||
| <div class="card shadow-sm {{ instance.get_classes }}"> | ||
| <div class="card-body"> | ||
| {% if instance.label %} | ||
| <h2 class="mb-2 pb-1">{% inline_field instance "label" %}</h2> | ||
| {% endif %} | ||
| {% if instance.heading %} | ||
| <h3 class="text-primary mb-4 pb-1">{% inline_field instance "heading" %}</h3> | ||
| {% endif %} | ||
| <div class="d-flex flex-column gap-4"> | ||
| {% for plugin in instance|get_slot:"image_top" %} | ||
| {% render_plugin plugin %} | ||
| {% endfor %} | ||
| {% if instance.text %} | ||
| <div class="milestone-text"> | ||
| {% inline_field instance "text" "" "safe" %} | ||
| </div> | ||
| {% endif %} | ||
| {% for plugin in instance|get_slot:"image_bottom" %} | ||
| {% render_plugin plugin %} | ||
| {% endfor %} | ||
| {% for plugin in instance|get_slot:"links" %} | ||
| {% if forloop.first %}<div class="milestone-links">{% endif %} | ||
| {% render_plugin plugin %} | ||
| {% if forloop.last %}</div>{% endif %} | ||
| {% endfor %} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </article> | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this an
<article>tag?