mirror of https://github.com/JoshKarpel/spiel
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
443 B
Python
19 lines
443 B
Python
from rich.align import Align
|
|
from rich.console import RenderableType
|
|
from rich.text import Text
|
|
|
|
from spiel import Deck
|
|
|
|
deck = Deck(name="Deck Name")
|
|
|
|
|
|
@deck.slide(title="Slide Title")
|
|
def slide_content() -> RenderableType:
|
|
return Align(
|
|
Text.from_markup(
|
|
"[blue]Your[/blue] [red underline]content[/red underline] [green italic]here[/green italic]!"
|
|
),
|
|
align="center",
|
|
vertical="middle",
|
|
)
|