diff --git a/src/components/OrchDelegatorViewer.js b/src/components/OrchDelegatorViewer.js index 2121f17..d91c5e7 100644 --- a/src/components/OrchDelegatorViewer.js +++ b/src/components/OrchDelegatorViewer.js @@ -6,20 +6,20 @@ const OrchDelegatorViewer = (obj) => { let delegators = obj.delegators; if (delegators && delegators.length) { return ( -
-
-
-

{delegators.length} Current Delegators

+
+
+
+

{delegators.length} Current Delegators

- -
+ +
{ delegators.map((delObj, idx) => { return ( -
+
-
+

{parseFloat(delObj.bondedAmount).toFixed(2)} LPT since round {delObj.startRound}

@@ -34,13 +34,13 @@ const OrchDelegatorViewer = (obj) => { ) } return ( -
-
-
-

The selected Orchestrator has no Delegators

+
+
+
+

The selected Orchestrator has no Delegators

-
+
) } diff --git a/src/components/OrchInfoViewer.js b/src/components/OrchInfoViewer.js index d008730..1b0bc87 100644 --- a/src/components/OrchInfoViewer.js +++ b/src/components/OrchInfoViewer.js @@ -69,41 +69,43 @@ const OrchInfoViewer = (obj) => { } return ( -
-
-
+
+
+
+ -
+
-
+
-
+
-
-
+
) } return ( -
-
-
-

The selected Orchestrator is currently inactive

-
+
+
+
+

The selected Orchestrator is currently inactive

+
) } diff --git a/src/components/TicketViewer.js b/src/components/TicketViewer.js index 2473fdf..4b8e04e 100644 --- a/src/components/TicketViewer.js +++ b/src/components/TicketViewer.js @@ -2,22 +2,22 @@ import React from "react"; const Ticket = (obj) => { return ( -
+
-

{obj.icon}

+

{obj.icon}

-

+

{obj.subtext}

-
+
{obj.descriptions.map(function (thisTextItem, i) { return ( -

+

{thisTextItem}

) diff --git a/src/components/eventViewer.js b/src/components/eventViewer.js index 6ce3275..ecc7c12 100644 --- a/src/components/eventViewer.js +++ b/src/components/eventViewer.js @@ -207,7 +207,7 @@ const EventViewer = (obj) => { showMoreButton =
- - - - - - - -
- obj.setSearchTerm(evt.target.value)} placeholder='Filter by Orchestrator address' @@ -36,34 +36,35 @@ const Filter = (obj) => { />
-
-
+
+
+

{parseFloat(obj.amountFilter) > 0 ? ("Only showing higher than " + obj.amountFilter) : "Filter by minimum value"}

-
-
-
- obj.setAmountFilter(evt.target.value)} placeholder='Filter by minimum value' type="number" /> -
-
-
-
+
) } diff --git a/src/components/orchestratorViewer.js b/src/components/orchestratorViewer.js index bdcb571..4afd54f 100644 --- a/src/components/orchestratorViewer.js +++ b/src/components/orchestratorViewer.js @@ -27,7 +27,7 @@ const Orchestrator = (obj) => { if (obj.thisOrchestrator) { if (obj.forceVertical) { return ( -
+
{
) - }else{ + } else { return ( -
-
+
+
{ if (obj.forceVertical) { return (
-
+

Orchestrator Info

@@ -76,7 +76,7 @@ const Orchestrator = (obj) => { } else { return (
-
+

Orchestrator Info

diff --git a/src/components/statViewer.js b/src/components/statViewer.js index 52cde94..54cfbc5 100644 --- a/src/components/statViewer.js +++ b/src/components/statViewer.js @@ -11,20 +11,24 @@ const Stat = (obj) => { } return ( -
-
-

{obj.header}

+
+
+

{obj.header}

-
-
-

{obj.title1}

-
+
+
+
+

{obj.title1}

+
+

{obj.content1}

-
-

{obj.title2}

-
+
+
+

{obj.title2}

+
+

{obj.content2}

diff --git a/src/pages/grafana.js b/src/pages/grafana.js index 157736b..ef5ba0a 100644 --- a/src/pages/grafana.js +++ b/src/pages/grafana.js @@ -31,26 +31,29 @@ const Grafana = (obj) => { } return ( -
-
+
+
+
-
+
+
-
+
-
+
+

${lptPrice}

({lptPriceChange24h}%)

-
-

Livepeer Orchestrator

+
+

Livepeer Orchestrator

@@ -58,35 +61,40 @@ const Grafana = (obj) => {

({ethPriceChange24h}%)

-
-
+
+
+
-
+
-
+
- +
); } diff --git a/src/pages/home.js b/src/pages/home.js index 00842a7..0462c3a 100644 --- a/src/pages/home.js +++ b/src/pages/home.js @@ -24,12 +24,15 @@ const Home = (obj) => { } return ( -
-
+
+
+
+
+

Home

@@ -54,10 +57,11 @@ const Home = (obj) => {

🔎 Blockchain 🕵️

+
-
-
+
+
{ glowStrength={0.4} />
-
+
nframe.nl
diff --git a/src/pages/livepeer.js b/src/pages/livepeer.js index 4e67da6..9df1a2f 100644 --- a/src/pages/livepeer.js +++ b/src/pages/livepeer.js @@ -55,10 +55,14 @@ const Livepeer = (obj) => { let sidebar; if (showSidebar) { sidebar =
-
-
- +
+
+
+
+ +
+
@@ -74,7 +78,7 @@ const Livepeer = (obj) => {

{headerString}

@@ -85,7 +89,7 @@ const Livepeer = (obj) => { setAmountFilter(0); setMaxAmount(defaultMaxShown); }}> -

✖️ Clear

+

✖️ Clear

Sidebar

setShowSidebar(!showSidebar)}> diff --git a/src/pages/loadingScreen.js b/src/pages/loadingScreen.js index 4cbdb6c..d1a16ce 100644 --- a/src/pages/loadingScreen.js +++ b/src/pages/loadingScreen.js @@ -66,13 +66,13 @@ const Startup = (obj) => { console.log("Rendering Loading Screen"); return (
+
- +
+
-

{texts[Math.floor(Math.random() * texts.length)]}

-
) diff --git a/src/style.css b/src/style.css index 3d7003f..0f19e3f 100644 --- a/src/style.css +++ b/src/style.css @@ -49,6 +49,8 @@ h2, h3, h1, h4, h5, h6 { justify-content: center; align-items: center; display: flex; + margin: 0; + padding: 0; justify-content: space-evenly; } @@ -160,7 +162,8 @@ svg { backdrop-filter: blur(6px); box-shadow: 9px 13px 8px 8px rgba(27, 23, 19, 0.692); border-bottom-right-radius: 1em; - max-width: 400px; + max-width: 500px; + width: 500px; overflow-y: auto; overflow-x: hidden; } @@ -217,15 +220,31 @@ svg { border-radius: 1em; } +.smallTxt { + font-size: small; +} + .verticalSeparator { width: 0.2em; - border-left: dashed 2px rgba(122, 128, 127, 0.4); + border-left: dashed 2px rgba(72, 80, 79, 0.4); margin-left: 0.5em; margin-right: 0.5em; display: flex; align-items: stretch; } +.verticalDivider { + height: 20px; + display: flex; + align-items: stretch; +} + +.smallVerticalDivider { + height: 5px; + display: flex; + align-items: stretch; +} + .flexContainer { box-sizing: border-box; height: 100%; @@ -238,15 +257,30 @@ svg { width: auto; } +.forceVertical { + flex-direction: column; +} + .forceWrap{ flex-direction: column; } +.stretchAndPad { + justify-content: stretch; + padding: 20px; + width: 100%; +} + +.stretchAndBetween { + align-items: stretch; + justify-content: space-between; + width: 100%; +} + .stroke { box-sizing: border-box; - padding-bottom: 20px; - padding-top: 20px; - margin: 10px; + padding: 0; + margin: 0; width: 100%; display: flex; align-items: center; @@ -288,8 +322,17 @@ svg { display: flex; justify-content: space-evenly; vertical-align: middle; - margin-left: 10px; - margin-right: 10px; + margin: 0; + padding: 0; +} + +.sideMargin { + margin-left: 1em; + margin-right: 1em; +} + +.fullMargin { + margin: 2em; } .withWrap { @@ -401,6 +444,9 @@ svg { .nonHomeButton:active { box-shadow: inset -4px -5px 6px 4px rgba(20, 20, 19, 0.692); } +.buttonPadding { + padding: 1em; +} .active { box-shadow: inset -4px -5px 6px 4px rgba(20, 20, 19, 0.692); } @@ -450,7 +496,8 @@ svg { } .overflow-content { color: black; - padding: 1em; + padding-left: 1em; + padding-right: 1em; } @@ -461,9 +508,17 @@ svg { .roundedOpaque { background-color: rgba(214, 214, 214, 0.80); box-shadow: 9px 13px 18px 8px rgba(20, 20, 19, 0.692); - border-radius: 30px; box-sizing: border-box; backdrop-filter: blur(6px); + border-radius: 1em; +} + +.roundedOpaqueDark { + background-color: rgba(17, 18, 23, 0.95); + box-shadow: 9px 13px 18px 8px rgba(20, 20, 19, 0.692); + box-sizing: border-box; + backdrop-filter: blur(6px); + border-radius: 1em; } .header { @@ -554,7 +609,7 @@ svg { left: 2px; } -@media (max-aspect-ratio: 3/2) { +@media (max-aspect-ratio: 4/3) { .mobileSmallerFont{ font-size: xx-small; } @@ -569,11 +624,12 @@ svg { } .flexContainer { height: 100%; + width: 100%; padding: 0; margin: 0; display: flex; - align-items: flex-start; - justify-content: center; + align-items: stretch; + justify-content: space-between; flex-direction: column; } .roundedOpaque { @@ -613,8 +669,4 @@ svg { .main-container { height: calc(100vh - 60px); } - #sideContent { - max-width: 100%; - width: 100%; - } } \ No newline at end of file