Skip to content

Commit 6a09274

Browse files
authored
Merge pull request #758 from iron-fish/rahul/get-started
New Get Started Page
2 parents be58b45 + 6159b7a commit 6a09274

File tree

9 files changed

+422
-10
lines changed

9 files changed

+422
-10
lines changed

content/get-started/sidebar.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { SidebarDefinition } from "@/lib/markdown";
22

33
export const sidebar: SidebarDefinition = [
4-
"get-started",
54
"mining",
65
// "ledger", // TODO: Uncomment after Ledger Live launch
76
"glossary",

lib/ui/src/components/NavBar/Desktop/DesktopVariant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function DesktopVariant({ content }: { content: NavItems }) {
112112
})}
113113
</HStack>
114114
<HStack alignItems="center">
115-
<Button size="lg" as={Link} href="/use/get-started">
115+
<Button size="lg" as={Link} href="/get-started">
116116
<Box mr={4}>Get Started</Box>
117117
<FancyArrowRight />
118118
</Button>

lib/ui/src/components/NavBar/Mobile/MobileVariant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function MobileVariant({ content }: { content: NavItems }) {
164164
);
165165
})}
166166
<Box py={6}>
167-
<Button size="lg" as={Link} href="/use/get-started">
167+
<Button size="lg" as={Link} href="/get-started">
168168
<Box mr={4}>Get Started</Box>
169169
<FancyArrowRight />
170170
</Button>

lib/ui/src/components/ShadowBox/ShadowBox.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Box, BoxProps, ChakraComponent } from "@chakra-ui/react";
1+
import { Box, BoxProps, ChakraComponent, useBoolean } from "@chakra-ui/react";
22

33
export type ShadowBoxProps = {
44
children: React.ReactNode;
55
shadowColor?: BoxProps["bg"];
6+
hoverShadowColor?: BoxProps["bg"];
67
borderColor?: BoxProps["borderColor"];
78
offset?: string;
89
containerProps?: BoxProps;
@@ -11,6 +12,7 @@ export type ShadowBoxProps = {
1112
export const ShadowBox: ChakraComponent<"div", ShadowBoxProps> = ({
1213
children,
1314
shadowColor = "pink.500",
15+
hoverShadowColor,
1416
offset = "6px",
1517
borderRadius = "1.5px",
1618
borderWidth = "1.5px",
@@ -19,6 +21,8 @@ export const ShadowBox: ChakraComponent<"div", ShadowBoxProps> = ({
1921
containerProps,
2022
...rest
2123
}: ShadowBoxProps) => {
24+
const [isHovered, setHovered] = useBoolean(false);
25+
2226
return (
2327
<Box
2428
position="relative"
@@ -28,6 +32,8 @@ export const ShadowBox: ChakraComponent<"div", ShadowBoxProps> = ({
2832
alignItems="stretch"
2933
justifyContent="stretch"
3034
w={width}
35+
onMouseEnter={setHovered.on}
36+
onMouseLeave={setHovered.off}
3137
{...containerProps}
3238
>
3339
<Box
@@ -37,7 +43,7 @@ export const ShadowBox: ChakraComponent<"div", ShadowBoxProps> = ({
3743
inset={0}
3844
mt={offset}
3945
ml={offset}
40-
bg={shadowColor}
46+
bg={isHovered ? hoverShadowColor : shadowColor}
4147
/>
4248
<Box
4349
bg="white"

next.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ ${isDev ? '' : 'upgrade-insecure-requests;'}
7575
},
7676
{
7777
source: "/use/get-started",
78-
destination: "/use/get-started/get-started",
78+
destination: "/get-started",
79+
permanent: false,
80+
},
81+
{
82+
source: "/learn/get-started",
83+
destination: "/get-started",
7984
permanent: false,
8085
},
8186
{

0 commit comments

Comments
 (0)