Skip to content

Commit c4ad3e8

Browse files
committed
Fix styling to match landing page
1 parent 0bee760 commit c4ad3e8

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

src/apps/treasury/assets/custom.css

+3-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
font-size: 40px;
2424
line-height: 54px;
2525
text-align: center;
26-
color: #FFFFFF;
26+
color: #000;
2727
}
2828

2929
.card_metric{
@@ -33,7 +33,7 @@
3333
font-size: 26px;
3434
line-height: 54px;
3535
text-align: center;
36-
color: #FFFFFF;
36+
color: #000;
3737
}
3838
.vl {
3939
border-left: 1px solid #FFFFFF;
@@ -56,7 +56,7 @@
5656
body{
5757
font-family: 'Poppins', sans-serif;
5858
line-height:1.2;
59-
background-color: #202020;
59+
background-color: #FFF;
6060
background-size:auto;
6161
background-position:center;
6262
}
@@ -65,8 +65,5 @@ body{
6565
margin: auto;
6666
width: 100%;
6767
}
68-
.center_2{
69-
margin: 140px
70-
}
7168

7269

src/apps/treasury/index.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"position": "relative",
77
"margin-right": "0rem",
88
"margin-left": "0rem",
9-
"background-color": "#202020",
9+
"background-color": "#FFF",
1010
"height": "100vh"
1111
}
1212
FOOTER_STYLE = {
@@ -16,13 +16,10 @@
1616
"right": 0,
1717
"height": "6rem",
1818
"padding": "1rem 1rem",
19-
"background-color": "#202020",
19+
"background-color": "#FFF",
2020
}
2121

2222
app.layout = html.Div([
23-
html.Div([
24-
html.H1("KlimaDAO Treasury Dashboard")
25-
], className='center_2'),
2623
dash.page_container
2724
])
2825

src/apps/treasury/pages/hud.py

+15-6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
ILLIQUID_ASSETS_GSHEET = 'https://docs.google.com/spreadsheets/d/1beNgV2Aemu01I-iyTsfOvHDTSevb0dj8GWXqo5KDShk'
1616

17-
# TODO: update page title for browser header
18-
dash.register_page(__name__)
17+
dash.register_page(__name__, title="KlimaDAO Treasury Heads Up Display")
1918

2019
# TODO: add caching
2120

@@ -121,9 +120,19 @@
121120
# TODO: style colors based on KIP
122121
# TODO: style holdings as $xx.yy[m/k] (i.e. human-formatted like indicators)
123122
# TODO: visualize targets in some way
124-
# TODO: load from Google Sheet for maintenance
125-
green_ratio_fig = px.pie(green_ratio_df, values="value",
126-
names="bucket", hole=.3)
123+
# TODO: load targets from Google Sheet for ease of maintenance
124+
green_ratio_fig = px.pie(
125+
green_ratio_df, values="value",
126+
names="bucket", hole=.3, color="bucket",
127+
color_discrete_map={
128+
'Op Ex': '#f2ae00',
129+
'Carbon Forwards': '#6fff93',
130+
'Carbon Backing': '#00cc33',
131+
'Treasury Holdings': '#ddf641'
132+
}
133+
)
134+
135+
# target_indicators =
127136

128137
layout = dbc.Container([
129138
html.Div([
@@ -138,5 +147,5 @@
138147
dcc.Graph(figure=green_ratio_fig)
139148
], xs=12, sm=12, md=12, lg=6, xl=6),
140149
]),
141-
], className='center_2'),
150+
], className='center'),
142151
], id='page_content_hud', fluid=True)

0 commit comments

Comments
 (0)