Class: Protos::Hero
- Defined in:
- lib/protos/hero.rb,
lib/protos/hero/content.rb,
lib/protos/hero/overlay.rb
Defined Under Namespace
Instance Method Summary collapse
- #content ⇒ Object
- #overlay ⇒ Object
-
#view_template ⇒ Object
DOCS: A hero component for a page.
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#content ⇒ Object
13 |
# File 'lib/protos/hero.rb', line 13 def content(...) = render Content.new(...) |
#view_template ⇒ Object
DOCS: A hero component for a page. It will center the content an optionally layout an image for a responsive layout. daisyui.com/components/hero/
9 10 11 |
# File 'lib/protos/hero.rb', line 9 def view_template(&) div(**attrs, &) end |