biffbangpow / silverstripe-bbp-blocks
A selection of blocks and extensions to allow for rapid SilverStripe development.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:silverstripe-module
Requires
This package is auto-updated.
Last update: 2024-10-16 20:05:48 UTC
README
Adds some basic blocks and extensions to allow for rapid SilverStripe development.
Requirements
- sheadawson/silverstripe-blocks: "^1.1"
- Bootstrap 4 as your front end framework (looking to expand in the future but this is the one we use)
Installation
composer require BiffBangPow/bbp-blocks
Usage
- Composer install or unpack the module in the root of your project
- Add what you need to your config.yml from the blocks module to get the blocks working
- Do a
dev/build
. - Head to a page to begin adding the blocks.
Styling
The blocks included here are designed to have only enough styles for basic layout, try adding some basic styles and going from there, for example the following scss:
.text-and-media-block { .text, .content { min-height: 400px; } .text { padding: 50px; } } .text-and-image-block { color: white; background-color: #3F51B5; } .call-to-action-block { .call-to-action-content { width: 100%; text-align: center; } }
Extensions
The extensions in this bundle are designed to be added to your blocks to add easy functionality. They are mostly centered around responsive showing and hiding of content, as we found this gave a lot of control to the end user.