-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(suite): images, logic, videos for T3T1
- Loading branch information
Showing
61 changed files
with
297 additions
and
112 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
44 changes: 44 additions & 0 deletions
44
packages/components/src/components/ConfirmOnDevice/RotateDeviceImage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import { DeviceAnimation } from '../animations/DeviceAnimation'; | ||
import { DeviceModelInternal } from '@trezor/connect'; | ||
import { Image } from '../Image/Image'; | ||
|
||
interface DeviceImageProps { | ||
deviceModel?: DeviceModelInternal; | ||
deviceColor?: number; | ||
className?: string; | ||
animationHeight?: string; | ||
animationWidth?: string; | ||
} | ||
|
||
export const RotateDeviceImage = ({ | ||
deviceModel, | ||
deviceColor, | ||
className, | ||
animationHeight, | ||
animationWidth, | ||
}: DeviceImageProps) => { | ||
if (!deviceModel) { | ||
return null; | ||
} | ||
|
||
const isDeviceImageRotating = | ||
deviceModel && [DeviceModelInternal.T3T1, DeviceModelInternal.T2B1].includes(deviceModel); | ||
|
||
return ( | ||
<> | ||
{isDeviceImageRotating ? ( | ||
<DeviceAnimation | ||
className={className} | ||
type="ROTATE" | ||
deviceModelInternal={deviceModel} | ||
deviceUnitColor={deviceColor} | ||
height={animationHeight} | ||
width={animationWidth} | ||
/> | ||
) : ( | ||
<Image alt="Trezor" image={`TREZOR_${deviceModel}`} className={className} /> | ||
)} | ||
</> | ||
); | ||
}; |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ export const SVG_IMAGES = { | |
DEVICE_CONFIRM_TREZOR_T1B1: 'device-confirm-trezor-t1b1.svg', | ||
DEVICE_CONFIRM_TREZOR_T2T1: 'device-confirm-trezor-t2t1.svg', | ||
DEVICE_CONFIRM_TREZOR_T2B1: 'device-confirm-trezor-t2b1.svg', | ||
DEVICE_CONFIRM_TREZOR_T3T1: 'device-confirm-trezor-t3t1.svg', | ||
SPINNER: 'spinner.svg', | ||
SPINNER_GREY: 'spinner-grey.svg', | ||
SPINNER_LIGHT_GREY: 'spinner-light-grey.svg', | ||
|
@@ -78,24 +79,32 @@ export const PNG_IMAGES = { | |
DONT_DISCONNECT_TREZOR_T1B1_2x: '[email protected]', | ||
DONT_DISCONNECT_TREZOR_T2B1: 'dont-disconnect-trezor-t2b1.png', | ||
DONT_DISCONNECT_TREZOR_T2B1_2x: '[email protected]', | ||
DONT_DISCONNECT_TREZOR_T3T1: 'dont-disconnect-trezor-t3t1.png', | ||
DONT_DISCONNECT_TREZOR_T3T1_2x: '[email protected]', | ||
TREZOR_T1B1: 'trezor-t1b1.png', | ||
TREZOR_T1B1_2x: '[email protected]', | ||
TREZOR_T2T1: 'trezor-t2t1.png', | ||
TREZOR_T2T1_2x: '[email protected]', | ||
TREZOR_T2B1: 'trezor-t2b1.png', | ||
TREZOR_T2B1_2x: '[email protected]', | ||
TREZOR_T3T1: 'trezor-t3t1.png', | ||
TREZOR_T3T1_2x: '[email protected]', | ||
TREZOR_T1B1_LARGE: 'trezor-t1b1-large.png', | ||
TREZOR_T1B1_LARGE_2x: '[email protected]', | ||
TREZOR_T2T1_LARGE: 'trezor-t2t1-large.png', | ||
TREZOR_T2T1_LARGE_2x: '[email protected]', | ||
TREZOR_T2B1_LARGE: 'trezor-t2b1-large.png', | ||
TREZOR_T2B1_LARGE_2x: '[email protected]', | ||
TREZOR_T3T1_LARGE: 'trezor-t3t1-large.png', | ||
TREZOR_T3T1_LARGE_2x: '[email protected]', | ||
TREZOR_T1B1_GHOST: 'trezor-t1b1-ghost.png', | ||
TREZOR_T1B1_GHOST_2x: '[email protected]', | ||
TREZOR_T2T1_GHOST: 'trezor-t2t1-ghost.png', | ||
TREZOR_T2T1_GHOST_2x: '[email protected]', | ||
TREZOR_T2B1_GHOST: 'trezor-t2b1-ghost.png', | ||
TREZOR_T2B1_GHOST_2x: '[email protected]', | ||
TREZOR_T3T1_GHOST: 'trezor-t3t1-ghost.png', | ||
TREZOR_T3T1_GHOST_2x: '[email protected]', | ||
TREZOR_SAFE_PROMO_PRODUCTS: 'trezor-safe-promo-products.png', | ||
TREZOR_SAFE_PROMO_PRODUCTS_2x: '[email protected]', | ||
TREZOR_SAFE_PROMO_LOGO: 'trezor-safe-promo-logo.png', | ||
|
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.
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
Binary file added
BIN
+3.21 KB
packages/suite-data/files/images/homescreens/COLOR_240x240/original_t3t1.jpg
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.
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.
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.
43 changes: 43 additions & 0 deletions
43
packages/suite-data/files/images/svg/device-confirm-trezor-t3t1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added
BIN
+24.3 KB
packages/suite-data/files/videos/device/trezor_t3t1_rotate_color_1.webm
Binary file not shown.
Binary file added
BIN
+24.3 KB
packages/suite-data/files/videos/device/trezor_t3t1_rotate_color_2.webm
Binary file not shown.
Binary file added
BIN
+24.3 KB
packages/suite-data/files/videos/device/trezor_t3t1_rotate_color_3.webm
Binary file not shown.
Binary file added
BIN
+24.3 KB
packages/suite-data/files/videos/device/trezor_t3t1_rotate_color_4.webm
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
packages/suite-data/files/videos/lottie/trezor_t3t1_connect.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.