added upload button
This commit is contained in:
@@ -1,21 +1,49 @@
|
|||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import dash_mantine_components as dmc
|
import dash_mantine_components as dmc
|
||||||
|
from dash import dcc
|
||||||
from dash import html
|
from dash import html
|
||||||
|
|
||||||
|
title_element = dmc.Center(
|
||||||
|
children=[
|
||||||
|
html.H2(
|
||||||
|
children=[
|
||||||
|
'Visual Critical Discourse Analysis Tool',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
upload_button_element = dcc.Upload(
|
||||||
|
children=[
|
||||||
|
dmc.Button(
|
||||||
|
'upload images'.title(),
|
||||||
|
id='upload-button',
|
||||||
|
color='lime',
|
||||||
|
n_clicks=0,
|
||||||
|
variant='outline',
|
||||||
|
radius='sm',
|
||||||
|
size='md',
|
||||||
|
),
|
||||||
|
],
|
||||||
|
multiple=True,
|
||||||
|
id='upload-data',
|
||||||
|
accept='image/png,image/jpeg,image/jpg',
|
||||||
|
)
|
||||||
|
|
||||||
header_element = dmc.Header(
|
header_element = dmc.Header(
|
||||||
height=80,
|
height=80,
|
||||||
children=[
|
children=[
|
||||||
dmc.Container(
|
dmc.Group(
|
||||||
children=[
|
children=[
|
||||||
html.H2(
|
title_element,
|
||||||
children="Visual Critical Discourse Analysis Tool",
|
upload_button_element,
|
||||||
|
],
|
||||||
|
position='apart',
|
||||||
style={
|
style={
|
||||||
"margin-left": "20px",
|
'margin': '10px',
|
||||||
"padding-top": "-5px"
|
'padding': '10px',
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
size="xl", px="xl",
|
|
||||||
),
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user