Some example content.
()
| 35 | |
| 36 | |
| 37 | def make_sponsor_message() -> Panel: |
| 38 | """Some example content.""" |
| 39 | sponsor_message = Table.grid(padding=1) |
| 40 | sponsor_message.add_column(style="green", justify="right") |
| 41 | sponsor_message.add_column(no_wrap=True) |
| 42 | sponsor_message.add_row( |
| 43 | "Twitter", |
| 44 | "[u blue link=https://twitter.com/textualize]https://twitter.com/textualize", |
| 45 | ) |
| 46 | sponsor_message.add_row( |
| 47 | "CEO", |
| 48 | "[u blue link=https://twitter.com/willmcgugan]https://twitter.com/willmcgugan", |
| 49 | ) |
| 50 | sponsor_message.add_row( |
| 51 | "Textualize", "[u blue link=https://www.textualize.io]https://www.textualize.io" |
| 52 | ) |
| 53 | |
| 54 | message = Table.grid(padding=1) |
| 55 | message.add_column() |
| 56 | message.add_column(no_wrap=True) |
| 57 | message.add_row(sponsor_message) |
| 58 | |
| 59 | message_panel = Panel( |
| 60 | Align.center( |
| 61 | Group("\n", Align.center(sponsor_message)), |
| 62 | vertical="middle", |
| 63 | ), |
| 64 | box=box.ROUNDED, |
| 65 | padding=(1, 2), |
| 66 | title="[b red]Thanks for trying out Rich!", |
| 67 | border_style="bright_blue", |
| 68 | ) |
| 69 | return message_panel |
| 70 | |
| 71 | |
| 72 | class Header: |
no test coverage detected