-
Notifications
You must be signed in to change notification settings - Fork 1
/
mylayouts.py
executable file
·166 lines (153 loc) · 4.92 KB
/
mylayouts.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# -*- coding: utf-8 -*-
import base64
import datetime
import io
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
import pandas as pd
from myinput import *
from radioitems import *
from upload import *
from droplist import *
from button import *
from image import *
def TitleHTML(children,color='#000000',fontSize='64'):
return html.H1(
children=children,
style={
'textAlign': 'center',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginTop': '35px',
'marginBot': '35px'
}
)
def TitleLeftHTML(children,color='#000000',fontSize='64'):
return html.H1(
children=children,
style={
'width': '80%', 'height': '100%',
'textAlign': 'left',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginLeft': '20%',
}
)
def SubTitleHTML(children,color='#000000',fontSize='18'):
return html.P(
children= children,
style={
'width': '90%', 'height': '100%',
'textAlign': 'center',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'normal',
'marginLeft': '5%',
'marginRight': '5%',
}
)
def SubTitleBoldHTML(children,color='#000000',fontSize='18'):
return html.P(
children= children,
style={
'width': '90%', 'height': '100%',
'textAlign': 'center',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginLeft': '5%',
'marginRight': '5%',
},
)
def SectionHTML(children,color='#000000',fontSize='24'):
return html.H1(
children= children,
style={
'textAlign': 'left',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginLeft': '35px',
'marginTop': '35px',
}
)
def SectionCenterHTML(children,color='#000000',fontSize='24'):
return html.H1(
children= children,
style={
'textAlign': 'center',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginTop': '35px',
}
)
def SubsectionHTML(children,color='#000000',fontSize='20'):
return html.H1(
children= children,
style={
'textAlign': 'left',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginLeft': '35px',
'marginTop': '15px',
}
)
def SubsectionCenterHTML(children,color='#000000',fontSize='20'):
return html.H1(
children= children,
style={
'textAlign': 'center',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'bold',
'marginTop': '15px',
}
)
def ParagraphHTML(children,color='#000000',fontSize='18'):
return html.P(
children= children,
style={
'textAlign': 'justify',
'color': color,
'fontFamily': 'Roboto Condensed',
'fontSize': fontSize,
'fontWeight': 'normal',
'margin': '35px',
}
)
def SystemAnswerHTML(children,id_):
return html.H1(
id = id_,
children=children,
style={
'width': '95%', 'height': '100%',
'textAlign': 'left',
'color': '#000000',
'fontFamily': 'Roboto Condensed',
'fontSize': '16',
'marginLeft': '5%',
}
)
def ThreeColumnsHTML(children):
return html.Div([
html.Div(children=children[0],
style={'textAlign': 'center','width': '33%', 'display': 'inline-block'}),
html.Div(children=children[1],
style={'textAlign': 'center','width': '33%', 'display': 'inline-block'}),
html.Div(children=children[2],
style={'textAlign': 'center','width': '33%', 'display': 'inline-block'}),
])