-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Right-hand sidebar for staking flow (#132)
Closes: #109 <img width="354" alt="Screenshot 2024-01-05 at 09 03 24" src="https://github.com/thesis/acre/assets/28560653/bffe9854-941b-462b-862d-8b86beb322c6">
- Loading branch information
Showing
9 changed files
with
179 additions
and
19 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
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,34 @@ | ||
import React from "react" | ||
import { Button, ButtonProps, Icon } from "@chakra-ui/react" | ||
import { ArrowUpRight } from "#/static/icons" | ||
|
||
type ButtonLinkProps = ButtonProps & { | ||
icon?: typeof Icon | ||
iconColor?: string | ||
} | ||
|
||
export default function ButtonLink({ | ||
children, | ||
icon = ArrowUpRight, | ||
iconColor = "brand.400", | ||
variant = "outline", | ||
...props | ||
}: ButtonLinkProps) { | ||
return ( | ||
<Button | ||
variant={variant} | ||
justifyContent="flex-start" | ||
borderRadius="md" | ||
leftIcon={ | ||
<Icon | ||
as={icon} | ||
boxSize={4} | ||
color={variant === "solid" ? "white" : iconColor} | ||
/> | ||
} | ||
{...props} | ||
> | ||
{children} | ||
</Button> | ||
) | ||
} |
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,17 @@ | ||
import React from "react" | ||
import { createIcon } from "@chakra-ui/react" | ||
|
||
export const ShieldPlusIcon = createIcon({ | ||
displayName: "ShieldPlusIcon", | ||
viewBox: "0 0 20 20", | ||
path: ( | ||
<path | ||
d="M8.0013 10.1669V6.16691M6.0013 8.16691H10.0013M13.3346 8.50024C13.3346 11.7725 9.76533 14.1525 8.46663 14.9102C8.31903 14.9963 8.24524 15.0393 8.14109 15.0617C8.06026 15.079 7.94234 15.079 7.86152 15.0617C7.75737 15.0393 7.68357 14.9963 7.53598 14.9102C6.23728 14.1525 2.66797 11.7725 2.66797 8.50024V5.31197C2.66797 4.77897 2.66797 4.51246 2.75514 4.28338C2.83215 4.081 2.95729 3.90042 3.11974 3.75726C3.30363 3.5952 3.55317 3.50162 4.05224 3.31447L7.62677 1.97402C7.76537 1.92205 7.83467 1.89606 7.90596 1.88576C7.96919 1.87662 8.03341 1.87662 8.09665 1.88576C8.16794 1.89606 8.23724 1.92205 8.37583 1.97402L11.9504 3.31447C12.4494 3.50162 12.699 3.5952 12.8829 3.75726C13.0453 3.90042 13.1705 4.081 13.2475 4.28338C13.3346 4.51246 13.3346 4.77897 13.3346 5.31197V8.50024Z" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="1.5" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
), | ||
}) |
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 |
---|---|---|
@@ -1,15 +1,43 @@ | ||
import { ComponentSingleStyleConfig } from "@chakra-ui/react" | ||
import { | ||
ComponentSingleStyleConfig, | ||
StyleFunctionProps, | ||
} from "@chakra-ui/react" | ||
|
||
const Card: ComponentSingleStyleConfig = { | ||
baseStyle: { | ||
container: { | ||
boxShadow: "none", | ||
borderWidth: "2px", | ||
borderColor: "gold.100", | ||
borderRadius: "xl", | ||
bg: "gold.200", | ||
}, | ||
}, | ||
variants: { | ||
elevated: ({ colorScheme }: StyleFunctionProps) => { | ||
if (!colorScheme) return {} | ||
|
||
return { | ||
container: { | ||
bg: "gold.100", | ||
borderColor: "white", | ||
}, | ||
} | ||
}, | ||
}, | ||
sizes: { | ||
md: { | ||
container: { | ||
borderWidth: "1px", | ||
}, | ||
}, | ||
lg: { | ||
container: { | ||
borderWidth: "2px", | ||
}, | ||
}, | ||
}, | ||
defaultProps: { | ||
size: "lg", | ||
}, | ||
} | ||
|
||
export default Card |
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 |
---|---|---|
|
@@ -3,4 +3,7 @@ export const semanticTokens = { | |
header_height: 24, | ||
modal_shift: 36, | ||
}, | ||
sizes: { | ||
sidebar_width: 80, | ||
}, | ||
} |