-
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 * feat: hook up settings modal * feat: improve forms & components * fix: touch up styles
- Loading branch information
Showing
19 changed files
with
293 additions
and
88 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
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,7 @@ | ||
import styled from "styled-components"; | ||
|
||
export const AppHeaderContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; |
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,13 @@ | ||
import { Heading } from "@namada/components"; | ||
import React from "react"; | ||
import { AppHeaderContainer } from "./AppHeader.components"; | ||
|
||
export const AppHeader: React.FC = () => { | ||
return ( | ||
<AppHeaderContainer> | ||
<Heading className="uppercase text-black text-4xl" level="h1"> | ||
Namada Faucet | ||
</Heading> | ||
</AppHeaderContainer> | ||
); | ||
}; |
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"; |
Oops, something went wrong.
9d8711e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://namada-interface-dev.netlify.app as production
🚀 Deployed on https://66d6f93193eedb1c9081b627--namada-interface-dev.netlify.app