def not_found() -> Div:
     """
     Returns the 404 page not found page
     """
     return Container([
         Row([
             Col([
                 H1('404 Page not found'),
                 internal_link('Home', href='/'),
             ])
         ])
     ])
예제 #2
0
 def index() -> Div:
     '''
     Returns the app index page
     '''
     return Container([
         Row([
             Col([
                 H1('Welcome to the Index Page'),
                 P('You can visit a second page by'
                   ' clicking the link below'),
                 internal_link('Hello Page', href='/hello'),
             ])
         ])
     ])
예제 #3
0
 def hello() -> Div:
     '''
     Returns the hello page
     '''
     return Container([
         Row([
             Col([
                 H1('Hello, World!'),
                 Br(),
                 Input(id='hello_input',
                       value='',
                       type='text',
                       placeholder='Enter name',
                       debounce=True),
                 Br(),
                 Div(id='hello_output'),
                 internal_link('Home', href='/'),
             ])
         ])
     ])