ExPilot.Web.Components (ExPilot v0.1.1)

Copy Markdown View Source

The pieces ExPilot's pages share: the shell with its top bar (a tab bar along the bottom on a phone or a tablet, where the top bar is hidden), the badge naming an arena's kind, and a sprite cut from the sheet.

Summary

Functions

The kind of arena, as a badge.

A kind of arena in words.

The top bar — wordmark, the pages, the pilot — over a page of content.

One art of the atlas, cut from the sheet and drawn three times its size.

The inline style that shows art from /atlas.png.

Functions

mode_badge(assigns)

The kind of arena, as a badge.

Attributes

  • mode (:atom) (required)

mode_name(mode)

@spec mode_name(atom()) :: String.t()

A kind of arena in words.

shell(assigns)

The top bar — wordmark, the pages, the pilot — over a page of content.

Attributes

  • username (:string) (required)
  • current (:string) (required)
  • wide (:boolean) - Defaults to false.

Slots

  • inner_block (required)

sprite(assigns)

One art of the atlas, cut from the sheet and drawn three times its size.

Attributes

  • art (:any) (required)

sprite_style(art)

@spec sprite_style(term()) :: String.t()

The inline style that shows art from /atlas.png.