This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: add AppStore button in the footer
- Loading branch information
Showing
7 changed files
with
83 additions
and
18 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ReactElement } from 'react' | ||
import AppstoreLightBadge from 'src/assets/icons/appstore-light.png' | ||
import AppstoreDarkBadge from 'src/assets/icons/appstore-dark.svg' | ||
|
||
enum LINKS { | ||
footer = 'https://apps.apple.com/app/apple-store/id1515759131?pt=119497694&ct=Web%20App%20Footer&mt=8', | ||
pairing = 'https://apps.apple.com/us/app/gnosis-safe/id1515759131', | ||
} | ||
|
||
type AppstoreButtonProps = { | ||
light?: boolean | ||
placement: 'footer' | 'pairing' | ||
} | ||
|
||
const AppstoreButton = (props: AppstoreButtonProps): ReactElement => { | ||
return ( | ||
<a href={LINKS[props.placement]} target="_blank" rel="noreferrer"> | ||
<img | ||
src={props.light ? AppstoreLightBadge : AppstoreDarkBadge} | ||
alt="Download on the App Store" | ||
style={{ | ||
display: 'block', | ||
height: `${props.light ? 30 : 35}px`, | ||
}} | ||
/> | ||
</a> | ||
) | ||
} | ||
|
||
export default AppstoreButton |