Bootstrap 3 Jumbotron element for django-fluent-contents
Project description
fluentcms-jumbotron
Displaying a Bootstrap 3 Jumbotron in a page
Installation
First install the module, preferably in a virtual environment. It can be installed from PyPI:
pip install fluentcms-jumbotron
First make sure the project is configured for django-fluent-contents.
Then add the following settings:
INSTALLED_APPS += (
'fluentcms_jumbotron',
)
FLUENT_CONTENTS_PLACEHOLDER_CONFIG = {
'slot name': {
'plugins': ('JumbotronPlugin', ...),
},
}
The database tables can be created afterwards:
./manage.py migrate
Frontend styling
The jumbotron is renderd with the HTML that Bootstrap prescribes:
<div class="jumbotron">
<h1>Hello, world!</h1>
<p>...</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
The standard Bootstrap 3 CSS will provide a reasonable styling for this, which can either be overwritten, or replaced in your own CSS files.
Contributing
If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)
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
Built Distribution
File details
Details for the file fluentcms-jumbotron-1.0.tar.gz
.
File metadata
- Download URL: fluentcms-jumbotron-1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd277f7f282c0a5aa38aea6fdaa1b579569977bc14398e02c44e697e3e376b9 |
|
MD5 | 0b6f79ed06bf32579594a44761bdbc93 |
|
BLAKE2b-256 | f67f16eba635f85e699d7cf2fcfd0ac8b417fc78ca6c30d2d21b2d8067b4f471 |
File details
Details for the file fluentcms_jumbotron-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fluentcms_jumbotron-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82d7120f90812b769bfc6bea56d22b3aa00a88ba80f880935538c1ba1f912cb |
|
MD5 | 9dbdb78e1d2c158ef76c98b93080a431 |
|
BLAKE2b-256 | 6d39a4907a016e8fa337840b8dda2f9d10911c73b9b0de22afb99a5b24806383 |