Skip to main content

A Collection of wagtail steam fields

Project description

Build Status Docs PyPI PyPI - Downloads PyPI - Downloads PyPI - License GitHub followers GitHub Repo stars

:exclamation: This project is very beta everything can change any second
:exclamation: And this is my first python package
:exclamation: So no garanties of any kind

wagtail-block-collection

A collection of some basic wagtail streamfields blocks. Based on bootstrap 5.0

The blocks are divided in two categories:
Sections
Sections are a group of multiple blocks and include settings like the background. They are perfect for the basic one-page layout
Blocks
These are just your normal streamfields to fill your site with content. They van be used without the sections

Sections

  • Basic color background
  • Paralax img background
  • img background
  • gradient background
  • section content and image side by side
  • Full-width (and height) slider

Blocks

  • Text
  • Img + Text
  • Title
  • Icon
  • Button
  • Image
  • Youtube video
  • Bootstrap card deck
  • Bootstrap column
  • Spacer
  • Collapse content by button
  • Line
  • Google maps
  • IMG slider
  • Alert
  • Bootstrap accordion
  • Bootstrap alert
  • Countdown

Planed

  • More sliders
  • Bootstrap buttongroup
  • Icon list
  • Price table
  • Counter

Quickstart

This is the short version of what is in the docs

You need to have a working Wagtail project and the bootstrap 5.0 .css and .js

pip install wagtail-block-collection

Add the following entries to your settings.py in the INSTALLED_APPS section:

'wagtailfontawesome',
'wagtail_color_panel',
'wagtail.contrib.settings',
'wagtail_block_collection',

Make sure you have the 'wagtail.contrib.settings.context_processors.settings', templates context_processors

Now you can import any of the blocks from wagtail_block_collection.blocks
Or you can import them all using all_blocks

Todo

  • Add more documentation
  • Add scaling options to the img block
  • Animations
  • Build a easy way to select icons
  • Charts
  • Tabs
  • Masonry image
  • Image lazy loading

Support this project

Committing code

If you want to add a new cool block or see something that could be better? Just fork this project and then open a pull request. I know I am not perfect but please clean and understandable code.

Send me a coffee

Buy Me A Coffee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail_block_collection-0.0.5.tar.gz (16.0 kB view details)

Uploaded Source

File details

Details for the file wagtail_block_collection-0.0.5.tar.gz.

File metadata

  • Download URL: wagtail_block_collection-0.0.5.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for wagtail_block_collection-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ecc76f6cf58a4fc1363e6ef3d2ccfacad2e5b9548d8cca1e03feb37d011515b5
MD5 76f91c131e341641f380caf643ce8d2e
BLAKE2b-256 d9ce40295ac482c823b5b5f54a9232903a40ff0b2a818c8b86d9e44dd09789e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page