This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C-1557] Add TikTok to CompleteProfileWithSocial on desktop (#2341)
* Add tiktok button in signup flow * Add tiktok button to complete profile * Style buttons * Add import tile * Add verified helper * Convert things to typescript * Fix types * Disable feature flag and fix handle key * Undo mobile changes * Undo mobile changes pt 2 * Address pr comments
- Loading branch information
Showing
34 changed files
with
1,224 additions
and
931 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Empty file.
22 changes: 22 additions & 0 deletions
22
packages/web/src/components/tiktok-button/TikTokButton.module.css
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,22 @@ | ||
.button { | ||
background-color: #fe2c55; | ||
} | ||
|
||
.button.includeHoverAnimations:hover:enabled { | ||
background-color: #fe5676; | ||
} | ||
|
||
.button.includeHoverAnimations:active:enabled { | ||
background-color: #e5294d; | ||
} | ||
|
||
.button .text { | ||
font-size: var(--font-l); | ||
font-weight: var(--font-bold); | ||
color: var(--static-white); | ||
color: 'black'; | ||
} | ||
|
||
.button .icon path { | ||
fill: var(--static-white); | ||
} |
33 changes: 33 additions & 0 deletions
33
packages/web/src/components/tiktok-button/TikTokButton.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,33 @@ | ||
import { | ||
Button, | ||
ButtonSize, | ||
ButtonType, | ||
IconTikTokInverted | ||
} from '@audius/stems' | ||
import cn from 'classnames' | ||
|
||
import styles from './TikTokButton.module.css' | ||
|
||
type TikTokButtonProps = { | ||
text?: string | ||
textClassName?: string | ||
iconClassName?: string | ||
onClick?: () => void | ||
className?: string | ||
} | ||
|
||
export const TikTokButton = (props: TikTokButtonProps) => { | ||
const { text, className, onClick, textClassName, iconClassName } = props | ||
return ( | ||
<Button | ||
type={ButtonType.PRIMARY_ALT} | ||
leftIcon={<IconTikTokInverted className={styles.icon} />} | ||
className={cn(styles.button, styles.includeHoverAnimations, className)} | ||
textClassName={cn(styles.text, textClassName)} | ||
iconClassName={cn(styles.icon, iconClassName)} | ||
size={ButtonSize.MEDIUM} | ||
text={text} | ||
onClick={onClick ?? (() => {})} | ||
/> | ||
) | ||
} |
Oops, something went wrong.