-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
import StaxBannerIllustration from "./StaxBannerIllustration"; | ||
import Illustration from "~/renderer/components/Illustration"; | ||
import bannerEuropa from "./assets/bannerEuropa.png"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
export default StaxBannerIllustration; | ||
const StyledIllustration = styled(Illustration)` | ||
border-radius: 15px; | ||
`; | ||
|
||
const EuropaBannerIllustration = () => ( | ||
<StyledIllustration lightSource={bannerEuropa} darkSource={bannerEuropa} size={30} /> | ||
); | ||
export default EuropaBannerIllustration; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
import StaxCompletionView from "./StaxCompletionView"; | ||
export default StaxCompletionView; | ||
import Animation from "~/renderer/animations"; | ||
import { getDeviceAnimation } from "~/renderer/components/DeviceAction/animations"; | ||
import React from "react"; | ||
import styled, { useTheme } from "styled-components"; | ||
import { Flex } from "@ledgerhq/react-ui"; | ||
import { Device } from "@ledgerhq/types-devices"; | ||
import Europa from "./assets/europa-success.png"; | ||
|
||
type Props = { | ||
device: Device; | ||
}; | ||
|
||
const Container = styled(Flex)` | ||
position: relative; | ||
`; | ||
|
||
const StyledAnimation = styled(Animation)` | ||
position: absolute; | ||
z-index: 0; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
`; | ||
|
||
const EuropaCompletionView: React.FC<Props> = ({ device }) => { | ||
const { colors } = useTheme(); | ||
const palette = colors.palette.type; | ||
|
||
return ( | ||
<Container height="100vh" width="100vw"> | ||
<StyledAnimation | ||
animation={getDeviceAnimation(device.modelId, palette, "onboardingSuccess")} | ||
height="100vh" | ||
width="100vw" | ||
/> | ||
<Flex alignItems="center" justifyContent="center" style={{ zIndex: 1 }} flex={1}> | ||
<img src={Europa} alt="Europa" /> | ||
</Flex> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default EuropaCompletionView; |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.