-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: traits on the champion avatars + minor restyling
- Loading branch information
1 parent
e236fe7
commit f9d46c9
Showing
13 changed files
with
90 additions
and
12 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.
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,7 +1,7 @@ | ||
@use 'sass:color'; | ||
|
||
$colorsByTier: ( | ||
1: #9e9e9e, | ||
1: #455a64, | ||
2: #4caf50, | ||
3: #2196f3, | ||
4: #9c27b0, | ||
|
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
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,14 @@ | ||
@use 'src/assets/styles/theme'; | ||
|
||
.rootTraitTitle { | ||
display: flex; | ||
align-items: center; | ||
gap: 3%; | ||
color: theme.$colorTextMain; | ||
text-shadow: 0.1em 0.1em 0.2em #000, 0.1em -0.1em 0.2em #000, | ||
-0.1em 0.1em 0.2em #000, -0.1em -0.1em 0.2em #000; | ||
} | ||
|
||
.traitHex { | ||
height: 100%; | ||
} |
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,26 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
|
||
import { TraitIcon } from '@src/components/dumb/TraitIcon'; | ||
import { TraitHex } from '@src/components/dumb/TraitHex'; | ||
|
||
import styles from './TraitTitle.module.scss'; | ||
|
||
export type TraitTitleProps = { | ||
className?: string; | ||
trait: string; | ||
}; | ||
|
||
const TraitTitleBase: React.FC<TraitTitleProps> = (props) => { | ||
return ( | ||
<div className={clsx(styles.rootTraitTitle, props.className)}> | ||
<TraitHex className={styles.traitHex}> | ||
<TraitIcon trait={props.trait} /> | ||
</TraitHex> | ||
|
||
<span className={styles.traitName}>{props.trait}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
export const TraitTitle = React.memo(TraitTitleBase); |
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 @@ | ||
export * from './TraitTitle'; |
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