From f21825ab05897469cec2697784c40fbe68e80054 Mon Sep 17 00:00:00 2001 From: Beserker-356 Date: Sun, 28 Jul 2024 20:56:10 +0530 Subject: [PATCH] Updated CardLink component styles --- src/components/DocsNav.tsx | 52 +++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/src/components/DocsNav.tsx b/src/components/DocsNav.tsx index e1431a39f3b..54d902f66cd 100644 --- a/src/components/DocsNav.tsx +++ b/src/components/DocsNav.tsx @@ -1,9 +1,11 @@ import { useRouter } from "next/router" import { useTranslation } from "next-i18next" +import { FaChevronLeft, FaChevronRight } from "react-icons/fa" import { Box, Flex, FlexProps, + Icon, LinkBox, LinkOverlay, Spacer, @@ -12,7 +14,6 @@ import { import { TranslationKey } from "@/lib/types" import type { DeveloperDocsLink } from "@/lib/interfaces" -import Emoji from "@/components/Emoji" import { BaseLink } from "@/components/Link" import Text from "@/components/OldText" @@ -26,9 +27,9 @@ const TextDiv = ({ children, ...props }: FlexProps) => ( { h="82px" bg="background.base" border="1px" - borderColor="border" - borderRadius={1} + borderColor="primary.base" + borderRadius={4} justify={isPrev ? "flex-start" : "flex-end"} + _hover={{ + borderColor: "primary.hover", + "& svg": { + fill: "primary.hover", + }, + ".btn-txt": { + color: "primary.hover", + }, + }} > - - + + {isPrev ? ( + + ) : ( + + )} - + {t(isPrev ? "previous" : "next")} { href={docData.href} textAlign={isPrev ? "start" : "end"} rel={isPrev ? "prev" : "next"} + fontSize="sm" + textDecoration="none" + _hover={{ textDecoration: "none" }} onClick={() => { trackCustomEvent({ eventCategory: "next/previous article DocsNav",