Skip to content

Commit

Permalink
Add links
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAurelius committed Mar 25, 2024
1 parent f468adb commit fc18819
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/apps/treasury/assets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ body{
.center {
margin: auto;
width: 100%;
text-align: center;
}


27 changes: 21 additions & 6 deletions src/apps/treasury/pages/hud.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@
mode="number",
value=sg.query([last_metric.marketCap]),
number={"prefix": "$", "valueformat": ".2s"},
title={"text": "Market Cap"},
domain={'y': [0, 0.5], 'x': [0.25, 0.75]}
),
title={
"text":
("<a title='KLIMA supply multiplied by current price' href="
"'https://www.coinbase.com/learn/crypto-basics/what-is-market-cap'>"
"Market Cap</a>")
},
domain={'y': [0, 0.5], 'x': [0.25, 0.75]},
)
)

metric_fig.add_trace(
Expand All @@ -39,7 +44,7 @@
value=sg.query([last_metric.treasuryMarketValue]),
number={"prefix": "$", "valueformat": ".2s"},
title={"text": "Net Asset Value"},
domain={'y': [0.5, 1], 'x': [0.25, 0.75]}
domain={'y': [0.5, 1], 'x': [0.25, 0.75]},
)
)

Expand Down Expand Up @@ -157,7 +162,7 @@
'Treasury Holdings': '#ddf641'
},
category_orders={'bucket': order},
title="Green Ratio: Target",
title="<a href='https://forum.klimadao.finance/d/293-kip-55-the-green-ratio'>Green Ratio: Target</a>",
)
green_ratio_target_fig.update_layout(
title_x=0.5,
Expand All @@ -182,5 +187,15 @@
dcc.Graph(figure=green_ratio_target_fig)
], xs=12, sm=6, md=6, lg=4, xl=4)
]),
], className='center'),
dbc.Row([
dbc.Col([
html.H3(
html.A(
'Learn more',
href='https://dune.com/Cujowolf/Klima-DAO'
)
)
], xs=12, sm=12, md=12, lg=12, xl=12)
])
], className='center')
], id='page_content_hud', fluid=True)

0 comments on commit fc18819

Please sign in to comment.