Skip to content

Commit

Permalink
Add Hello World placeholder in the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
pbong committed Oct 31, 2023
1 parent e017f40 commit ccdd675
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/callbacks/home/home_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def init_callback(app, API_URL):
Output('submitted-word', 'data'),
Output('search-word-error', 'children'),
Output('search-word-error', 'hidden'),
Output('search-word-error-container', 'hidden'),
Output('word-exists', 'data'),
Expand Down
48 changes: 25 additions & 23 deletions src/pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,29 +258,31 @@
dbc.Container([
input_word,

dcc.Loading([
html.Div(id='search-word-error', style={'paddingTop': '10em'}, hidden=True),

html.Div(
id='home-body-container',
children=[
senses,
html.Br(id='plot-sense-row'),
plot_by_sense,
html.Br(id='plot-source-row'),
html.Br(),
plot_by_source,
html.Br(id='embeddings-row'),
html.Br(),
embeddings,
html.Br(id='network-row'),
network,
html.Br(id='export-row'),
export
],
hidden=True
),
])
html.Div(id='search-word-error-container', children=[
html.Div(id='search-word-error'),
html.Div('Hello World'),
], style={'paddingTop': '10em'}, hidden=True),

html.Div(
id='home-body-container',
children=[
senses,
html.Br(id='plot-sense-row'),
plot_by_sense,
html.Br(id='plot-source-row'),
html.Br(),
plot_by_source,
html.Br(id='embeddings-row'),
html.Br(),
embeddings,
html.Br(id='network-row'),
network,
html.Br(id='export-row'),
export
],
hidden=True
),

])
),

Expand Down

0 comments on commit ccdd675

Please sign in to comment.