Skip to content

Commit 8b4a15f

Browse files
committed
Add links
1 parent 65e40db commit 8b4a15f

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-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

+26-8
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,27 @@
2727
mode="number",
2828
value=sg.query([last_metric.marketCap]),
2929
number={"prefix": "$", "valueformat": ".2s"},
30-
title={"text": "Market Cap"},
31-
domain={'y': [0, 0.5], 'x': [0.25, 0.75]}
32-
),
30+
title={
31+
"text":
32+
("<a title='KLIMA supply multiplied by current price' href="
33+
"'https://www.coinbase.com/learn/crypto-basics/what-is-market-cap'>"
34+
"Market Cap</a>")
35+
},
36+
domain={'y': [0, 0.5], 'x': [0.25, 0.75]},
37+
)
3338
)
3439

3540
metric_fig.add_trace(
36-
# Net Asset Value / Total Treasury Value ($) indicator
41+
# Total Treasury Market Value ($) indicator
3742
go.Indicator(
3843
mode="number",
3944
value=sg.query([last_metric.treasuryMarketValue]),
4045
number={"prefix": "$", "valueformat": ".2s"},
41-
title={"text": "Net Asset Value"},
42-
domain={'y': [0.5, 1], 'x': [0.25, 0.75]}
46+
title={
47+
"text":
48+
"Treasury <a href='https://en.wikipedia.org/wiki/Market_value'>Market Value</a>"
49+
},
50+
domain={'y': [0.5, 1], 'x': [0.25, 0.75]},
4351
)
4452
)
4553

@@ -157,7 +165,7 @@
157165
'Treasury Holdings': '#ddf641'
158166
},
159167
category_orders={'bucket': order},
160-
title="Green Ratio: Target",
168+
title="<a href='https://forum.klimadao.finance/d/285-rfc-green-ratio'>Green Ratio: Target</a>",
161169
)
162170
green_ratio_target_fig.update_layout(
163171
title_x=0.5,
@@ -182,5 +190,15 @@
182190
dcc.Graph(figure=green_ratio_target_fig)
183191
], xs=12, sm=6, md=6, lg=4, xl=4)
184192
]),
185-
], className='center'),
193+
dbc.Row([
194+
dbc.Col([
195+
html.H3(
196+
html.A(
197+
'Learn more',
198+
href='https://dune.com/Cujowolf/Klima-DAO'
199+
)
200+
)
201+
], xs=12, sm=12, md=12, lg=12, xl=12)
202+
])
203+
], className='center')
186204
], id='page_content_hud', fluid=True)

0 commit comments

Comments
 (0)