1.0.0 • Published 3 years ago
@plone-collective/volto-block-banner v1.0.0
volto-block-banner
A volto block add-on for a banner. It contains two sub-elements:
Text: The display text of the banner.CTA-Button: Call To Action (CTA) button.
Customizable properties
text(string): Main text or the heading of the banner.showActionButton(boolean): Toggle theCTA-Button.actionButtonText(string):CTA-Buttonlabel.actionButtonUrl(string):CTA-ButtonURL which is navigated onClick.backgroundColor(string): Specifies thebackgroundColorcss property for the banner.textColor(string): Specifies thecolorcss property forText.showCircle(boolean): Toggle the orange circle background design.marginBottom(string): Specifies themargin-bottomcss property of the banner.
Example
Configuration
text: 'This is a Banner!! Put your message here!'
showActionButton: true
actionButtonText: 'Take Action'
actionButtonUrl: '/'
backgroundColor: '#2b4eff'
textColor: '#ffffff'
showCircle: true
marginBottom: '15px'Output

1.0.0
3 years ago