hero.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Hero Block
  2. ==========
  3. A banner block with an image and some text, if desired.
  4. Field Reference
  5. ---------------
  6. Fields and purposes:
  7. * **Full Width** - If selected, sets whether the hero spans the entire width of the screen
  8. * **Parallax Effect** - If selected, background images scroll slower than foreground images, creating an illusion of depth.
  9. * **Background Image** - Image chooser for the background image
  10. * **Tile Background** - If selected, background image will be repeated in a tile pattern
  11. * **Background Color** - Sets a background color to display with hexadecimal, RGBA, or CSS color notation (e.g. #ff0011)
  12. * **Text Color** - Sets the color of the text for the entire hero block
  13. * **Content** - Additional layout options such as a Responsive Grid Row, Card Grid, or HTML
  14. .. note::
  15. If you want to use a hero block in place of the title/cover image on the web page, click on the LAYOUT tab
  16. in the editor and under Visual Design, choose the "Web page without title and cover image" template.
  17. In the **Advanced Settings** you can add CSS classes. In our hero below, we added the Bootstrap class ``py-5`` to give
  18. the hero image more padding and show more of the image. We also selected the focal point in the Image Editor.
  19. .. figure:: img/hero_block.jpeg
  20. :alt: Hero block published on the page
  21. Our published hero block with padding