Fixed some styling

This commit is contained in:
Marco van Dijk 2022-03-04 00:09:18 +01:00
parent 50dea0e3e8
commit 548e0bde5a
5 changed files with 39 additions and 23 deletions

View File

@ -145,7 +145,9 @@ const EventButton = (obj) => {
return ( return (
<div className="row" style={{ backgroundColor: thisColour, borderRadius: "1.2em" }}> <div className="row" style={{ backgroundColor: thisColour, borderRadius: "1.2em" }}>
<div style={{ flexDirection: 'row', display: "flex" }}> <div style={{ flexDirection: 'row', display: "flex" }}>
<a href={"https://explorer.livepeer.org/accounts/" + transactionCaller}>
<img alt="" src="livepeer.png" width="30" height="30" /> <img alt="" src="livepeer.png" width="30" height="30" />
</a>
<div className="row"> <div className="row">
<button className="selectOrch" onClick={() => { obj.setOrchFunction(transactionCaller) }} >{transactionCaller}</button> <button className="selectOrch" onClick={() => { obj.setOrchFunction(transactionCaller) }} >{transactionCaller}</button>
</div> </div>

View File

@ -81,7 +81,9 @@ class Grafana extends React.Component {
</div> </div>
</div> </div>
<div className="stroke roundedOpaque" style={{ borderRadius: "1em", backgroundColor: "#111217" }}> <div className="stroke roundedOpaque" style={{ borderRadius: "1em", backgroundColor: "#111217" }}>
<div className="row" style={{paddingLeft: "1em", paddingRight: "1em"}}>
<Orchestrator thisOrchestrator={this.props.livepeer.thisOrchestrator} /> <Orchestrator thisOrchestrator={this.props.livepeer.thisOrchestrator} />
</div>
<div className="flexContainer" style={{ justifyContent: "center" }}> <div className="flexContainer" style={{ justifyContent: "center" }}>
<iframe className="fullGrafana" src="https://grafana.stronk.tech/d-solo/71b6OZ0Gz/orchestrator-overview?orgId=1&refresh=5s&theme=dark&panelId=23763572056" height="200" frameBorder="0"></iframe> <iframe className="fullGrafana" src="https://grafana.stronk.tech/d-solo/71b6OZ0Gz/orchestrator-overview?orgId=1&refresh=5s&theme=dark&panelId=23763572056" height="200" frameBorder="0"></iframe>
</div> </div>

View File

@ -135,10 +135,10 @@ class Livepeer extends React.Component {
}}> }}>
<img alt="" src="livepeer.png" width="100em" height="100em" /> <img alt="" src="livepeer.png" width="100em" height="100em" />
</button> </button>
<div className="row" style={{alignItems: 'stretch', height:'100%'}}> <div className="row" style={{alignItems: 'stretch', height:'100%', flex: 2}}>
<Orchestrator thisOrchestrator={thisOrchObj} /> <Orchestrator thisOrchestrator={thisOrchObj} />
</div> </div>
<div className="row metaSidebar" style={{ padding: 0 }}> <div className="row metaSidebar" style={{ padding: 0, flex: 1 }}>
<div className="stroke" style={{ margin: 0, padding: 0 }}> <div className="stroke" style={{ margin: 0, padding: 0 }}>
<h3>Smart contract prices</h3> <h3>Smart contract prices</h3>
<div className="row"> <div className="row">

View File

@ -39,28 +39,38 @@ const Orchestrator = (obj) => {
return ( return (
<div className="hostInfo"> <div className="hostInfo">
<div className="strokeSmollLeft"> <div className="strokeSmollLeft" style={{ flex: 1, display: "flex" }}>
<div style={{ flexDirection: 'row', display: "flex" }}> <div style={{ flexDirection: 'row', flex: 1, display: "flex" }}>
<a href={thisUrl}> <a href={thisUrl}>
<img alt="" src="livepeer.png" width="30" height="30" /> <img alt="" src="livepeer.png" width="30" height="30" />
<h3>Orchestrator Info</h3> <h3 style={{ padding: 0, margin: 0 }}>Orchestrator Info</h3>
{thisID} {thisID}
</a> </a>
</div> </div>
<div className="rowAlignLeft">
<p>Earned fees {totalVolumeETH} Eth (${totalVolumeUSD})</p> <p>Earned fees {totalVolumeETH} Eth (${totalVolumeUSD})</p>
</div>
<div className="rowAlignLeft">
<p>Reward Cut {rewardCut}%</p> <p>Reward Cut {rewardCut}%</p>
</div>
<div className="rowAlignLeft">
<p>Fee Cut {feeCut}%</p> <p>Fee Cut {feeCut}%</p>
</div>
<div className="rowAlignLeft">
<p>Total Stake {totalStake} LPT</p> <p>Total Stake {totalStake} LPT</p>
</div>
<div className="rowAlignLeft">
<p>Self stake {selfStake} LPT ({selfStakeRatio}%)</p> <p>Self stake {selfStake} LPT ({selfStakeRatio}%)</p>
</div> </div>
<div className="strokeSmollLeft"> </div>
<div className="strokeSmollLeft" style={{ alignItems: 'stretch', flex: 2, marginLeft: '1em', borderLeft: '3px solid rgba(15,15,15,0.05)' }}>
<div className="content-wrapper"> <div className="content-wrapper">
<ScrollContainer className="overflow-container" hideScrollbars={false}> <ScrollContainer className="overflow-container" hideScrollbars={false}>
<div className="overflow-content" style={{ cursor: 'grab', height: '300px' }}> <div className="overflow-content" style={{ cursor: 'grab', height: '300px' }}>
{ {
delegators.map((delObj, idx) => { delegators.map((delObj, idx) => {
return ( return (
<div className="rowAlignLeft" key={"delegator"+idx}> <div className="rowAlignLeft" key={"delegator" + idx} style={{ marginLeft: '1em', borderBottom: '2px solid rgba(15,15,15,0.05)' }}>
<a href={"https://explorer.livepeer.org/accounts/" + delObj.id}> <a href={"https://explorer.livepeer.org/accounts/" + delObj.id}>
<img alt="" src="livepeer.png" width="30" height="30" />{delObj.id.substr(0, 6) + ".."}</a> <img alt="" src="livepeer.png" width="30" height="30" />{delObj.id.substr(0, 6) + ".."}</a>
<div className="strokeSmollLeft"> <div className="strokeSmollLeft">
@ -78,7 +88,7 @@ const Orchestrator = (obj) => {
) )
} }
return ( return (
<div className="hostInfo" style={{ height: '100%', width: '100%', display: 'flex' }}> <div className="hostInfo">
<div className="rowAlignLeft"> <div className="rowAlignLeft">
<img alt="" src="livepeer.png" width="30" height="30" /> <img alt="" src="livepeer.png" width="30" height="30" />
<h3>Orchestrator Info</h3> <h3>Orchestrator Info</h3>

View File

@ -199,12 +199,14 @@ svg {
user-select: text; user-select: text;
font-size: small; font-size: small;
color: rgba(15, 15, 15, 0.8750); color: rgba(15, 15, 15, 0.8750);
background-color: rgba(169, 177, 214, 0.8); background-color: rgba(148, 154, 184, 0.8);
-webkit-box-shadow: inset 3px 3px 12px 2px rgba(28, 28, 170, 0.2); -webkit-box-shadow: inset 3px 3px 12px 2px rgba(28, 28, 170, 0.2);
-moz-box-shadow: inset 3px 3px 12px 2px rgba(28, 28, 170, 0.2); -moz-box-shadow: inset 3px 3px 12px 2px rgba(28, 28, 170, 0.2);
box-shadow: inset 3px 3px 12px 2px rgba(28, 28, 170, 0.2); box-shadow: inset 3px 3px 12px 2px rgba(28, 28, 170, 0.2);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 100%;
width: 100%;
} }
.flexContainer { .flexContainer {
@ -248,9 +250,9 @@ svg {
margin: 0; margin: 0;
display: flex; display: flex;
text-align: center; text-align: center;
justify-content: center; justify-content: flex-start;
align-items: center; align-items: flex-start;
justify-content: middle; justify-content: flex-start;
vertical-align: middle; vertical-align: middle;
flex-direction: column; flex-direction: column;
z-index: 2; z-index: 2;