-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { StyledLpTag, StyledLpText } from "./styles"; | ||
|
||
export enum LpTypeVariants { | ||
APE = "ape", | ||
UNI = "uni", | ||
} | ||
|
||
export interface LpTagProps { | ||
variant: LpTypeVariants; | ||
} | ||
|
||
const LpTag: React.FC<LpTagProps> = ({ variant, ...props }) => { | ||
const bgColor = { | ||
ape: "linear-gradient(53.53deg, rgba(161, 101, 82, 0.2) 15.88%, rgba(225, 178, 66, 0.2) 92.56%)", | ||
uni: "rgba(213, 49, 113, 0.15)", | ||
}; | ||
const textColor = { | ||
ape: "linear-gradient(53.53deg, #A16552 15.88%, #E1B242 92.56%)", | ||
uni: "#D53171", | ||
}; | ||
|
||
return ( | ||
<StyledLpTag background={bgColor[variant]} {...props}> | ||
<StyledLpText background={textColor[variant]}>{variant} LP</StyledLpText> | ||
</StyledLpTag> | ||
); | ||
}; | ||
|
||
export default LpTag; |
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.