File tree Expand file tree Collapse file tree 6 files changed +18
-12
lines changed
examples/python/templates/multi-page-apps Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,13 @@ def render_page_content(pathname):
8080 elif pathname == "/messages" :
8181 return html .P ("Here are all your messages" )
8282 # If the user tries to reach a different page, return a 404 message
83- return dbc . Jumbotron (
83+ return html . Div (
8484 [
8585 html .H1 ("404: Not found" , className = "text-danger" ),
8686 html .Hr (),
8787 html .P (f"The pathname { pathname } was not recognised..." ),
88- ]
88+ ],
89+ className = "p-3 bg-light rounded-3" ,
8990 )
9091
9192
Original file line number Diff line number Diff line change @@ -42,12 +42,13 @@ def render_page_content(pathname):
4242 elif pathname == "/page-2" :
4343 return html .P ("Oh cool, this is page 2!" )
4444 # If the user tries to reach a different page, return a 404 message
45- return dbc . Jumbotron (
45+ return html . Div (
4646 [
4747 html .H1 ("404: Not found" , className = "text-danger" ),
4848 html .Hr (),
4949 html .P (f"The pathname { pathname } was not recognised..." ),
50- ]
50+ ],
51+ className = "p-3 bg-light rounded-3" ,
5152 )
5253
5354
Original file line number Diff line number Diff line change @@ -114,12 +114,13 @@ def render_page_content(pathname):
114114 elif pathname == "/page-2" :
115115 return html .P ("Oh cool, this is page 2!" )
116116 # If the user tries to reach a different page, return a 404 message
117- return dbc . Jumbotron (
117+ return html . Div (
118118 [
119119 html .H1 ("404: Not found" , className = "text-danger" ),
120120 html .Hr (),
121121 html .P (f"The pathname { pathname } was not recognised..." ),
122- ]
122+ ],
123+ className = "p-3 bg-light rounded-3" ,
123124 )
124125
125126
Original file line number Diff line number Diff line change @@ -101,12 +101,13 @@ def render_page_content(pathname):
101101 elif pathname == "/page-2" :
102102 return html .P ("Oh cool, this is page 2!" )
103103 # If the user tries to reach a different page, return a 404 message
104- return dbc . Jumbotron (
104+ return html . Div (
105105 [
106106 html .H1 ("404: Not found" , className = "text-danger" ),
107107 html .Hr (),
108108 html .P (f"The pathname { pathname } was not recognised..." ),
109- ]
109+ ],
110+ className = "p-3 bg-light rounded-3" ,
110111 )
111112
112113
Original file line number Diff line number Diff line change @@ -145,12 +145,13 @@ def render_page_content(pathname):
145145 elif pathname == "/page-2/2" :
146146 return html .P ("No way! This is page 2.2!" )
147147 # If the user tries to reach a different page, return a 404 message
148- return dbc . Jumbotron (
148+ return html . Div (
149149 [
150150 html .H1 ("404: Not found" , className = "text-danger" ),
151151 html .Hr (),
152152 html .P (f"The pathname { pathname } was not recognised..." ),
153- ]
153+ ],
154+ className = "p-3 bg-light rounded-3" ,
154155 )
155156
156157
Original file line number Diff line number Diff line change @@ -69,12 +69,13 @@ def render_page_content(pathname):
6969 elif pathname == "/page-2" :
7070 return html .P ("Oh cool, this is page 2!" )
7171 # If the user tries to reach a different page, return a 404 message
72- return dbc . Jumbotron (
72+ return html . Div (
7373 [
7474 html .H1 ("404: Not found" , className = "text-danger" ),
7575 html .Hr (),
7676 html .P (f"The pathname { pathname } was not recognised..." ),
77- ]
77+ ],
78+ className = "p-3 bg-light rounded-3" ,
7879 )
7980
8081
You can’t perform that action at this time.
0 commit comments