kailo_beewell_dashboard.stylable_container

Generic function to produce stylised containers and then specific function for producing the stylised header containers used on the About page

Module Contents

Functions

stylable_container(key, css_styles)

This function is copied from streamlit-extras. It creates inserts a

header_container(key, text, colour)

Create a stylised container for the About page to container a header

kailo_beewell_dashboard.stylable_container.stylable_container(key, css_styles)

This function is copied from streamlit-extras. It creates inserts a container in the app that we are able to style using CSS.

Parameters

keystr

The unique key associated with container

css_stylesstr | list[str]

The CSS styles to apply to the container elements. This can be a single CSS block or a list of CSS blocks.

Returns: container

A container object. Elements can be added to this container using either the ‘with’ notation or by calling methods directly on the returned object.

kailo_beewell_dashboard.stylable_container.header_container(key, text, colour)

Create a stylised container for the About page to container a header

Args:

key (str): Key for container type text (str): Header text colour (str): HEX colour code for background of container