hero: Hero

Description Usage Arguments See Also Examples

Description

Display a section with a background image and some content inside (mj_text, mj_button, mj_image ...) wrapped in mj-hero-content component.

Usage

1
2
3

Arguments

...

Unnamed items that comprise this list of MJML tags.

See Also

https://mjml.io/documentation/#mjml-hero

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
mj_ml(
  mj_body(
    mj_container(
      mj_hero(
        mode = "fluid-height",
        `background-url` = paste0("https://media.vanityfair.com/photos/",
                                  "54cbf3da998d4de83ba3602a/master/",
                                  "w_960,c_limit/image.jpg"),
        mj_hero_content(
          mj_text("HERO")
        ),
        mj_button("MJML")
      )
    )
  )
)

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.