JumarWeb.MarketingLayout (Jumar v0.1.0)

View Source

A layout with a stacked top navigation bar and footer. This is usuaully used for unauthenticated pages like the homepage or legal pages before the user accesses the dashboard.

Summary

Functions

Shows the flash group with standard titles and content.

Renders the marketing layout.

Provides dark vs light theme toggle based on themes defined in app.css.

Functions

flash_group(assigns)

Shows the flash group with standard titles and content.

Examples

<.flash_group flash={@flash} />

Attributes

  • flash (:map) (required) - the map of flash messages.
  • id (:string) - the optional id of flash container. Defaults to "flash-group".

marketing_layout(assigns)

Renders the marketing layout.

Examples

<MarktingLayout.marketing_layout flash={@flash}>
  <h1>Content</h1>
</MarktingLayout.marketing_layout>

Attributes

  • flash (:map) (required) - the map of flash messages.
  • current_scope (:map) - the current scope. Defaults to nil.

Slots

  • inner_block (required)

theme_toggle(assigns)

Provides dark vs light theme toggle based on themes defined in app.css.

See <head> in root_layout which applies the theme before page load.