Skip to main content

Bootstrap 3 Jumbotron element for django-fluent-contents

Project description

fluentcms-jumbotron

https://img.shields.io/travis/edoburu/fluentcms-jumbotron/master.svg?branch=master https://img.shields.io/pypi/v/fluentcms-jumbotron.svg https://img.shields.io/pypi/dm/fluentcms-jumbotron.svg https://img.shields.io/badge/wheel-yes-green.svg https://img.shields.io/pypi/l/fluentcms-jumbotron.svg https://img.shields.io/codecov/c/github/edoburu/fluentcms-jumbotron/master.svg

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

fluentcms-jumbotron-1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

fluentcms_jumbotron-1.0-py2.py3-none-any.whl (18.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fluentcms-jumbotron-1.0.tar.gz.

File metadata

File hashes

Hashes for fluentcms-jumbotron-1.0.tar.gz
Algorithm Hash digest
SHA256 3fd277f7f282c0a5aa38aea6fdaa1b579569977bc14398e02c44e697e3e376b9
MD5 0b6f79ed06bf32579594a44761bdbc93
BLAKE2b-256 f67f16eba635f85e699d7cf2fcfd0ac8b417fc78ca6c30d2d21b2d8067b4f471

See more details on using hashes here.

File details

Details for the file fluentcms_jumbotron-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fluentcms_jumbotron-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f82d7120f90812b769bfc6bea56d22b3aa00a88ba80f880935538c1ba1f912cb
MD5 9dbdb78e1d2c158ef76c98b93080a431
BLAKE2b-256 6d39a4907a016e8fa337840b8dda2f9d10911c73b9b0de22afb99a5b24806383

See more details on using hashes here.

Supported by

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