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

feat: split layout template #882

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

feat: split layout template #882

wants to merge 6 commits into from

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Oct 2, 2024

Overview

Layout that offers left- and right-side content.

Status

  • Verify whether this is useful.
    Django CMS Bootstrap grid already provides this and lets editor handle narrow screen layout.
  • Support narrow screen layout.

Related

Changes

  • added template with Left and Right placeholders
  • added styles for breadcrumbs overlapping layout
  • added styles for angled background

Testing

  1. Checkout this branch and run:

    npm run build:css
    docker exec -it core_cms sh -c "python manage.py collectstatic --no-input"
    
  2. Add/Edit to settings_custom.py or settings_local.py with:

    CMS_TEMPLATES = (
        ('standard.html', 'Standard'),
        ('fullwidth.html', 'Full Width'),
        ('split.html', 'Split (Two-Side)'),
    )
  3. Create/Update page to have "Split (Two-Side)" layout.

  4. Create/Update structure to have different color fluid containers with text.
    structure

    • In the "Left" add a Container "Fluid container + Muted section" with child Text.
    • In the "Right" add a Container "Fluid container + Light section" with child Text.

UI

Muted & Light Section Dark & Light Section
Muted + Light Dark + Light

@wesleyboar wesleyboar marked this pull request as ready for review October 2, 2024 18:33
@wesleyboar wesleyboar added the paused Started but not actively in progress label Oct 2, 2024
@wesleyboar wesleyboar marked this pull request as draft October 2, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paused Started but not actively in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant