"""The page frame: the mockup badge, the header, section cards, paragraphs, small text, the footer and the sources footer. CSS: frame.css.""" from .app_stack import app_stack from .glyphs import glyph from .links import text from .lozenge import lozenge from .page import e, texts from .skill_tag import skill_tag from .tag import tag def mockup_badge(): """The sample data note: an Example data lozenge in the page's top right corner. Put it first in the body. body = mockup_badge() + body """ return f'
{text(x)}
' for x in texts(items)) def small_text(item): """A text field as a line of small subtlest text across the card, 16px under what's above it, for a note such as how the content was made. small_text('Generated from Code search, Bitbucket and Slack. Check it before relying on it.') """ return f'{text(item)}
' def footer(created, apps): """The footer: "Created" and when, then the AI note, with the app stack of the connections used at the right. footer('Oct 7, 4:12 PM PT', ['Google Calendar', 'Confluence', 'Jira']) """ return (f'') def sources_footer(f): """The sources footer: a tag for each app searched, then a list of lines on what was read and how. Data: {"tags": [{"text"}], "lines": [text fields]}. sources_footer({"tags": [{"text": "Jira"}, {"text": "No results from Zoom"}], "lines": ["Prepared just now, Oct 27, 9:05 AM PT."]}) """ tags = ''.join(tag(t['text']) for t in f.get('tags', [])) lines = ''.join(f'