from textual.app import App
from textual.widgets import Header, Label, Footer


# Same as dock_scroll.py but with 2 labels
class TestApp(App):
    BINDINGS = [("ctrl+q", "app.quit", "Quit")]
    CSS = """
    
    Label {
        border: solid red;
    }
    Footer {
        height: 4;
    }
    """

    def compose(self):
        text = (
            "this is a sample sentence and here are some words".replace(" ", "\n") * 2
        )
        yield Header()
        yield Label(text)
        yield Label(text)
        yield Footer()


if __name__ == "__main__":
    app = TestApp()
    app.run()
