-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI work for mnemonic phrase screen, url whitelisting improvements (#8)
* content script update * whitelist PR preview env * adding UI work for mnemonic phrase screen plus some url whitelisting improvemnents * rm debugger
- Loading branch information
Showing
20 changed files
with
225 additions
and
23 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,52 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import Header from "./Header"; | ||
|
||
const H1 = styled.h1` | ||
font-weight: 200; | ||
font-size: 2.5rem; | ||
line-height: 3.4rem; | ||
margin: 1rem 0; | ||
`; | ||
|
||
const Screen = styled.div` | ||
align-content: center; | ||
align-items: center; | ||
display: flex; | ||
justify-content: center; | ||
padding: 100px 170px; | ||
`; | ||
|
||
const HalfScreen = styled.div` | ||
padding: 0 30px; | ||
width: 355px; | ||
:nth-child(1) { | ||
margin-top: -20px; | ||
} | ||
`; | ||
|
||
const Fullscreen = ({ | ||
header, | ||
icon: [src, alt], | ||
children, | ||
}: { | ||
header: string; | ||
icon: [string, string]; | ||
children: JSX.Element; | ||
}) => { | ||
return ( | ||
<> | ||
<Header /> | ||
<Screen> | ||
<HalfScreen> | ||
<img src={src} alt={alt} /> | ||
<H1>{header}</H1> | ||
</HalfScreen> | ||
<HalfScreen>{children}</HalfScreen> | ||
</Screen> | ||
</> | ||
); | ||
}; | ||
|
||
export default Fullscreen; |
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,39 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { COLOR_PALETTE } from "styles"; | ||
|
||
const HeaderEl = styled.header` | ||
background: ${COLOR_PALETTE.primaryGradient}; | ||
box-sizing: border-box; | ||
font-family: "Muli"; | ||
display: flex; | ||
height: 6.2rem; | ||
justify-content: space-between; | ||
padding: 26px 54px; | ||
text-align: left; | ||
`; | ||
|
||
const HeaderH1 = styled.h1` | ||
color: #fff; | ||
font-size: 2rem; | ||
font-weight: 200; | ||
line-height: 41px; | ||
margin: 0; | ||
`; | ||
|
||
const NetworkEl = styled.h3` | ||
opacity: 0.5; | ||
color: #fff; | ||
font-size: 1rem; | ||
font-weight: 800; | ||
line-height: 21px; | ||
`; | ||
|
||
const Header = () => ( | ||
<HeaderEl> | ||
<HeaderH1>Lyra</HeaderH1> | ||
<NetworkEl>Test net</NetworkEl> | ||
</HeaderEl> | ||
); | ||
|
||
export default Header; |
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,12 @@ | ||
import styled from "styled-components"; | ||
import { Button } from "styles/Basics"; | ||
|
||
const ActionButton = styled(Button)` | ||
color: #748098; | ||
font-size: 0.875rem; | ||
font-weight: 500; | ||
line-height: 1.7rem; | ||
opacity: 0.6; | ||
`; | ||
|
||
export default ActionButton; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export const newTabHref = (path = "") => `index.html#${path}`; | ||
export const removeQueryParam = (url = "") => url.replace(/\?(.*)/, ""); |
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,12 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Button = styled.button` | ||
background: none; | ||
border: none; | ||
cursor: pointer; | ||
-webkit-appearance: none; | ||
:focus { | ||
outline: none; | ||
} | ||
`; |
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 const COLOR_PALETTE = { | ||
background: "#F0F2F6", | ||
text: "#060E1A", | ||
primary: "#391EDA", | ||
primaryGradient: "linear-gradient(90deg, #391EDA 100%, #5339ED 0%)", | ||
}; |
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
Oops, something went wrong.