JumarWeb.MarketingLayout (Jumar v0.1.0)
View SourceA 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
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".
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 tonil.
Slots
inner_block(required)
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.