From 2c8d367a9667aeacee253d73888d529d8b5201c9 Mon Sep 17 00:00:00 2001 From: Roshaan Siddiqui Date: Mon, 5 Jun 2023 18:16:08 -0500 Subject: [PATCH] [DPLT-1007] feat: Add link to QueryApi Docs (#95) --- .../widgets/src/QueryApi.IndexerExplorer.jsx | 39 +++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/frontend/widgets/src/QueryApi.IndexerExplorer.jsx b/frontend/widgets/src/QueryApi.IndexerExplorer.jsx index f8b3c4b02..62afe4def 100644 --- a/frontend/widgets/src/QueryApi.IndexerExplorer.jsx +++ b/frontend/widgets/src/QueryApi.IndexerExplorer.jsx @@ -60,6 +60,8 @@ const Header = styled.div` display: flex; flex-direction: column; gap: 12px; + min-width: 200px; + max-width: 500px; `; const H1 = styled.h1` @@ -200,15 +202,25 @@ const TabsButton = styled.a` } `; +const TextLink = styled.a` + margin: 0; + font-size: 14px; + line-height: 20px; + font-weight: ${(p) => (p.bold ? "600" : "400")}; + font-size: ${(p) => (p.small ? "12px" : "14px")}; + overflow: ${(p) => (p.ellipsis ? "hidden" : "visible")}; + text-overflow: ${(p) => (p.ellipsis ? "ellipsis" : "unset")}; + white-space: nowrap; + outline: none; + + &:focus, + &:hover { + text-decoration: underline; + } +`; + return ( - {state.selectedTab == "my-indexers" && state.my_indexers.length == 0 && ( -
-

- You currently have no indexers. Explore new Indexers and fork them! -

-
- )} State.update({ selectedTab: "my-indexers" })} @@ -244,6 +256,19 @@ return ( )} + {state.selectedTab == "my-indexers" && state.my_indexers.length == 0 && ( +
+

+ QueryAPI streamlines the process of querying specific data from the Near Blockchain. Explore new Indexers and fork them to try it out! +

+

+ To learn more about QueryAPI, visit + + QueryAPI Docs + +

+
+ )} {state.selectedTab == "my-indexers" && ( <>