-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin_page.py
64 lines (47 loc) · 2.6 KB
/
Admin_page.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
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import dash_design_kit as ddk
import uuid
import os
from app import dash_app
import pandas as pd
main_path_data = os.path.abspath("./data")
############################ TABS ###################################
first_tab = dcc.Tab(label="ФИЛЬМЫ",
children=[live_teams,
ddk.Block(width=100,
children=html.H2('Team 1', style={'margin': '0px'})),
score_table,
ddk.Block(width=100,
children=html.H2('Team 2', style={'margin': '0px'})),
score_table],
style={'margin': '10px',
'border-radius': '10px',
'background-color': '#0e4e70', 'color': 'azure',
'border': '1px solid rgb(14, 78, 112)'},
selected_style={'margin': '10px', 'border-radius': '10px',
'background-color': '#0e4e70', 'color': 'azure', 'border': '2px solid #1f78b4'})
second_tab = dcc.Tab(label="НОВОСТИ",
children=[stat,chart_table],
style={'margin': '10px',
'border-radius': '10px',
'background-color': '#0e4e70',
'color': 'azure',
'border': '1px solid rgb(14, 78, 112)'},
selected_style={'margin': '10px',
'border-radius': '10px', 'background-color': '#0e4e70', 'color': 'azure',
'border': '2px solid #1f78b4'})
tabs = dcc.Tabs(children=[first_tab, second_tab])
########################## MAIN PAGE ##############################
admin_card = ddk.Block(width=100,
style={'height': '93vh',
'text-align': 'center'},
children=[
ddk.Block(width=70,
style={'height': '89vh', 'margin': '0', 'padding': '0', 'color': 'azure', 'overflowY': 'scroll',
'overflowX': 'hidden', },
children=[
ddk.Card(style={'width': '-webkit-fill-available', 'margin': '10px', 'padding': '0',
'background-color': '#f9f9f91c', },
children=tabs)])])