-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from RamboGj/fix-join-now
Validating if user is community or council member
- Loading branch information
Showing
6 changed files
with
109 additions
and
46 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,40 @@ | ||
const { theme } = VM.require("rambo-dev.near/widget/ThemeProvider"); | ||
|
||
const StyledBullet = styled.div` | ||
width: fit-content; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 4px 12px; | ||
font-family: Aeonik, sans-serif; | ||
font-size: 0.875rem; | ||
font-weight: 500; | ||
border-radius: 8px; | ||
${({ variant, theme }) => { | ||
const isDefault = variant === "default"; | ||
const background = isDefault | ||
? theme.colors.blue500 | ||
: theme.colors.seablue500; | ||
const color = isDefault ? theme.colors.blue500 : theme.colors.seablue500; | ||
const border = `1px solid ${background}33`; | ||
return ` | ||
background: ${background}33; | ||
color: ${color}; | ||
border: ${border}; | ||
`; | ||
}} | ||
`; | ||
|
||
function Bullet({ children, variant }) { | ||
const defaultVariant = variant || "default"; | ||
|
||
return ( | ||
<StyledBullet theme={theme} variant={defaultVariant}> | ||
{children} | ||
</StyledBullet> | ||
); | ||
} | ||
|
||
return { Bullet }; |
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,20 @@ | ||
const colors = { | ||
yellow500: "#FFAF51", | ||
seablue500: "#51FFEA", | ||
blue500: "#51B6FF", | ||
bg1: "#0B0C14", | ||
bg2: "#23242B", | ||
black100: "#000000", | ||
black50: "Black/50", | ||
white100: "#FFFFFF", | ||
white50: "White/50", | ||
error: "#FD2A5C", | ||
success: "#38C793", | ||
warning: "#F17B2C", | ||
}; | ||
|
||
Storage.set("theme", { colors }); | ||
|
||
const theme = Storage.get("theme"); | ||
|
||
return { theme }; |
38 changes: 23 additions & 15 deletions
38
...dao/widget/components/button/join-now.jsx → ...dao/widget/components/buttons/JoinNow.jsx
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