-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clean up, fix faucet form UI issue
- Loading branch information
Showing
11 changed files
with
100 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { AppContext } from "App/App"; | ||
import React, { useContext } from "react"; | ||
import { Banner, BannerContents } from "./Banner.components"; | ||
|
||
export const AppBanner: React.FC = () => { | ||
const { isTestnetLive, settings } = useContext(AppContext)!; | ||
return ( | ||
<> | ||
{!isTestnetLive && settings?.startsAtText && ( | ||
<Banner> | ||
<BannerContents> | ||
Testnet will go live {settings.startsAtText}! Faucet is disabled | ||
until then. | ||
</BannerContents> | ||
</Banner> | ||
)} | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Heading } from "@namada/components"; | ||
import clsx from "clsx"; | ||
import React from "react"; | ||
import { GoGear } from "react-icons/go"; | ||
|
||
const iconsClassList = clsx( | ||
"flex h-full absolute items-center text-black cursor-pointer text-[22px]", | ||
"top-0 transition-colors ease-out active:top-px hover:text-cyan" | ||
); | ||
|
||
export const AppHeader: React.FC = () => { | ||
return ( | ||
<Heading className="uppercase text-black text-4xl" level="h1"> | ||
Namada Faucet | ||
<i | ||
className={clsx(iconsClassList, "right-7")} | ||
onClick={() => console.log("SETTINGS")} | ||
> | ||
<GoGear /> | ||
</i> | ||
</Heading> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Banner = styled.div` | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: ${(props) => props.theme.colors.utility3.highAttention}; | ||
color: ${(props) => props.theme.colors.primary.main20}; | ||
font-size: 13px; | ||
font-weight: bold; | ||
`; | ||
|
||
export const BannerContents = styled.div` | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
max-width: 762px; | ||
padding: 8px 0; | ||
margin: 0 20px; | ||
`; |
4 changes: 2 additions & 2 deletions
4
apps/faucet/src/App/CallToActionCard.tsx → ...aucet/src/App/Common/CallToActionCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
apps/faucet/src/App/FaqDropdown.tsx → apps/faucet/src/App/Common/FaqDropdown.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export * from "./AppBanner"; | ||
export * from "./AppHeader"; | ||
export * from "./CallToActionCard"; | ||
export * from "./Card.components"; | ||
export * from "./Faq"; | ||
export * from "./FaqDropdown"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters