Skip to content

Commit

Permalink
feat: add registeration button (#285)
Browse files Browse the repository at this point in the history
Add registeration link to QueryAPI

<img width="1243" alt="image"
src="https://github.com/near/queryapi/assets/25015977/4b79eb9b-c6cb-45f0-8b15-d194759f6b2f">
  • Loading branch information
roshaans authored Oct 12, 2023
1 parent 29e77c3 commit 9ad5ac9
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion frontend/widgets/src/QueryApi.Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Wrapper = styled.div`
const NavBarLogo = styled.a`
padding-top: 0.3125rem;
padding-bottom: 0.3125rem;
margin-right: 1rem;
margin-right: .01rem;
font-size: 1.25rem;
text-decoration: none;
white-space: nowrap;
Expand Down Expand Up @@ -274,6 +274,27 @@ const ButtonLink = styled.a`
}}
`;

const SignUpLink = styled.a`
--blue: RGBA(13, 110, 253, 1);
display: ${({ hidden }) => (hidden ? "none" : "inline-block")};
font-size: 14px;
cursor: pointer;
color: var(--blue);
text-decoration: none;
margin-left: 0.1em;
padding: 0;
white-space: nowrap;
&:hover {
color: var(--blue);
text-decoration: none;
}
&:visited {
color: var(--blue);
text-decoration: none;
}
`;
// TODO fix activeTab
// const previousSelectedTab = Storage.privateGet("queryapi:activeTab");
// if (previousSelectedTab && previousSelectedTab !== state.activeTab) {
Expand Down Expand Up @@ -398,6 +419,9 @@ return (
QueryApi
</NavBarLogo>

<SignUpLink target="_blank" href={`http://bit.ly/near-queryapi-beta`}>
(Sign Up)
</SignUpLink>
<div>
<ButtonLink
href={`/#/${REPL_ACCOUNT_ID}/widget/QueryApi.App/?view=create-new-indexer`}
Expand Down

0 comments on commit 9ad5ac9

Please sign in to comment.