Skip to content

Commit

Permalink
Move useful links from the landing page to the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Sep 3, 2024
1 parent 25daa65 commit 64e94ce
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function PageLayoutColumn(props: PageLayoutColumnProps) {

return (
<VStack
spacing={4}
spacing={5}
gridArea={
isMain
? {
Expand Down
30 changes: 30 additions & 0 deletions dapp/src/pages/DashboardPage/UsefulLinks.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from "react"
import { VStack } from "@chakra-ui/react"
import ButtonLink from "#/components/shared/ButtonLink"
import { EXTERNAL_HREF } from "#/constants"

export default function UsefulLinks() {
return (
<VStack>
{[
{ label: "Documentation", url: EXTERNAL_HREF.DOCS },
{ label: "Blog", url: EXTERNAL_HREF.BLOG },
{ label: "FAQ", url: EXTERNAL_HREF.FAQ },
].map(({ label, url }) => (
<ButtonLink
key={url}
href={url}
isExternal
color="brand.400"
w="100%"
size="lg"
fontWeight="semibold"
variant="card"
justifyContent="center"
>
{label}
</ButtonLink>
))}
</VStack>
)
}
2 changes: 2 additions & 0 deletions dapp/src/pages/DashboardPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { PageLayout, PageLayoutColumn } from "./PageLayout"
import AcrePointsCard from "./AcrePointsCard"
import { CurrentSeasonCard } from "./CurrentSeasonCard"
import BeehiveCard from "./BeehiveCard"
import UsefulLinks from "./UsefulLinks"

export default function DashboardPage() {
const isMobileMode = useMobileMode()
Expand All @@ -31,6 +32,7 @@ export default function DashboardPage() {

<PageLayoutColumn position="relative">
<AcrePointsCard />
<UsefulLinks />
</PageLayoutColumn>
</PageLayout>
)
Expand Down

0 comments on commit 64e94ce

Please sign in to comment.