Define the layout.
()
| 18 | |
| 19 | |
| 20 | def make_layout() -> Layout: |
| 21 | """Define the layout.""" |
| 22 | layout = Layout(name="root") |
| 23 | |
| 24 | layout.split( |
| 25 | Layout(name="header", size=3), |
| 26 | Layout(name="main", ratio=1), |
| 27 | Layout(name="footer", size=7), |
| 28 | ) |
| 29 | layout["main"].split_row( |
| 30 | Layout(name="side"), |
| 31 | Layout(name="body", ratio=2, minimum_size=60), |
| 32 | ) |
| 33 | layout["side"].split(Layout(name="box1"), Layout(name="box2")) |
| 34 | return layout |
| 35 | |
| 36 | |
| 37 | def make_sponsor_message() -> Panel: |
no test coverage detected