def title(self, title, heading=None): self.deprecatedPrint() return tags.H1( attributes.InlineStyle( color="#000000", font_size="32px", font_weight="800", line_height="32px", margin="48px 0", text_align="center", ), tags.Text(title), tags.Br(), (tags.Span( attributes.InlineStyle( font_size="24px", font_weight="600", color="darkgray"), tags.Text(heading), ) if heading else None), )
def title(self, title, subtitle=None): return tags.H1( attributes.InlineStyle( color="#000000", font_size="32px", font_weight="800", line_height="32px", margin="48px 0", text_align="center", ), tags.Text(title), tags.Br(), ( tags.Span( attributes.InlineStyle( font_size="24px", font_weight="600", color="darkgray" ), tags.Text(subtitle), ) if subtitle else None ), )
def space(self): self.deprecatedPrint() return tags.Br()
def space(self): return tags.Br()