File size: 1,026 Bytes
0481dd5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
from pcconfig import config
import pynecone as pc
from .home import home, State
# class State(pc.State):
# """The app state."""
# pass
# def index() -> pc.Component:
# return pc.center(
# pc.vstack(
# pc.heading("Welcome to Pynecone!", font_size="2em"),
# pc.box("Get started by editing ", pc.code(filename, font_size="1em")),
# pc.link(
# "Check out our docs!",
# href=docs_url,
# border="0.1em solid",
# padding="0.5em",
# border_radius="0.5em",
# _hover={
# "color": "rgb(107,99,246)",
# },
# ),
# spacing="1.5em",
# font_size="2em",
# ),
# padding_top="10%",
# )
# Add state and page to the app.
app = pc.App(state=State, stylesheets=[
"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css",
],)
app.add_page(home, route="/")
app.compile()
|