Skip to content

Commit 082f740

Browse files
committed
Add links
1 parent 65e40db commit 082f740

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

src/apps/treasury/assets/custom.css

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ body{
6262
.center {
6363
margin: auto;
6464
width: 100%;
65+
text-align: center;
6566
}
6667

6768

src/apps/treasury/pages/hud.py

+27-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pandas as pd
88
import plotly.graph_objects as go
99
import plotly.express as px
10+
from plotly.subplots import make_subplots
1011

1112
from src.apps.treasury.util.constants import BCT_ERC20_CONTRACT
1213
from src.apps.treasury.data.protocol_metrics import \
@@ -27,19 +28,27 @@
2728
mode="number",
2829
value=sg.query([last_metric.marketCap]),
2930
number={"prefix": "$", "valueformat": ".2s"},
30-
title={"text": "Market Cap"},
31-
domain={'y': [0, 0.5], 'x': [0.25, 0.75]}
32-
),
31+
title={
32+
"text":
33+
("<a title='KLIMA supply multiplied by current price' href="
34+
"'https://www.coinbase.com/learn/crypto-basics/what-is-market-cap'>"
35+
"Market Cap</a>")
36+
},
37+
domain={'y': [0, 0.5], 'x': [0.25, 0.75]},
38+
)
3339
)
3440

3541
metric_fig.add_trace(
36-
# Net Asset Value / Total Treasury Value ($) indicator
42+
# Total Treasury Market Value ($) indicator
3743
go.Indicator(
3844
mode="number",
3945
value=sg.query([last_metric.treasuryMarketValue]),
4046
number={"prefix": "$", "valueformat": ".2s"},
41-
title={"text": "Net Asset Value"},
42-
domain={'y': [0.5, 1], 'x': [0.25, 0.75]}
47+
title={
48+
"text":
49+
"Treasury <a href='https://en.wikipedia.org/wiki/Market_value'>Market Value</a>"
50+
},
51+
domain={'y': [0.5, 1], 'x': [0.25, 0.75]},
4352
)
4453
)
4554

@@ -157,7 +166,7 @@
157166
'Treasury Holdings': '#ddf641'
158167
},
159168
category_orders={'bucket': order},
160-
title="Green Ratio: Target",
169+
title="<a href='https://forum.klimadao.finance/d/285-rfc-green-ratio'>Green Ratio: Target</a>",
161170
)
162171
green_ratio_target_fig.update_layout(
163172
title_x=0.5,
@@ -182,5 +191,15 @@
182191
dcc.Graph(figure=green_ratio_target_fig)
183192
], xs=12, sm=6, md=6, lg=4, xl=4)
184193
]),
185-
], className='center'),
194+
dbc.Row([
195+
dbc.Col([
196+
html.H3(
197+
html.A(
198+
'Learn more',
199+
href='https://dune.com/Cujowolf/Klima-DAO'
200+
)
201+
)
202+
], xs=12, sm=12, md=12, lg=12, xl=12)
203+
])
204+
], className='center')
186205
], id='page_content_hud', fluid=True)

0 commit comments

Comments
 (0)