cynthia_websites_mini_client/pottery/molds/github_layout
GitHub Layout Module
A layout inspired by GitHub’s interface design. Features:
- Clean, focused design with ample whitespace
- Familiar GitHub header and navigation pattern
- Repository-style content presentation
- GitHub-style sidebar for metadata
- Responsive design that works well on all devices
Values
pub fn menu_1(
from model: model_type.Model,
) -> List(@internal Element(messages.Msg))
Primary navigation menu generator
Creates the main site navigation menu styled like GitHub’s nav tabs.
@param model Client model containing menus and current path @return List of HTML elements representing menu items
pub fn page_layout(
from content: @internal Element(messages.Msg),
with variables: dict.Dict(String, dynamic.Dynamic),
store model: model_type.Model,
) -> @internal Element(messages.Msg)
Page layout handler for the GitHub theme
This function creates the layout structure for regular pages (not blog posts).
@param content The main page content as an Element @param variables Dictionary containing page metadata @param store Client data store for menus and other data @return A fully constructed page layout
pub fn post_layout(
from content: @internal Element(messages.Msg),
with variables: dict.Dict(String, dynamic.Dynamic),
store model: model_type.Model,
) -> @internal Element(messages.Msg)
Post layout handler for the GitHub theme
This function creates the layout structure for blog posts with a sidebar.
@param content The main post content as an Element @param variables Dictionary containing post metadata @param store Client data store for menus and other data @return A fully constructed post layout