Skip to content

Commit 7b9b8b2

Browse files
committed
fix: use rtl responsive chevrons
1 parent 4a2fc64 commit 7b9b8b2

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/components/Homepage/BentoCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { HTMLAttributes } from "react"
22
import { type StaticImageData } from "next/image"
3-
import { MdChevronRight } from "react-icons/md"
43

54
import { TwImage } from "@/components/Image"
65
import { ButtonLink } from "@/components/ui/buttons/Button"
76

87
import { cn } from "@/lib/utils/cn"
98

9+
import { ChevronNext } from "../Chevron"
1010
import { Card, CardTitle } from "../ui/card"
1111
import { Center } from "../ui/flex"
1212

@@ -44,7 +44,7 @@ const BentoCard = ({
4444
</CardTitle>
4545
<p className="mb-8 text-md">{children}</p>
4646
<ButtonLink href={href} variant="outline">
47-
{action} <MdChevronRight />
47+
{action} <ChevronNext />
4848
</ButtonLink>
4949
</div>
5050
</Card>

src/components/Swiper/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { useTranslation } from "next-i18next"
2-
import { MdChevronLeft, MdChevronRight } from "react-icons/md"
32
import { EffectCards, Keyboard, Navigation, Pagination } from "swiper/modules"
43
import { Swiper as SwiperParent, SwiperSlide } from "swiper/react"
54
import type { SwiperOptions } from "swiper/types"
65

6+
import { ChevronNext, ChevronPrev } from "@/components/Chevron"
7+
78
import { cn } from "@/lib/utils/cn"
89

910
import "swiper/css"
@@ -51,9 +52,9 @@ const Swiper = ({
5152
</SwiperSlide>
5253
))}
5354

54-
<MdChevronLeft className="swiper-button-prev" />
55+
<ChevronPrev className="swiper-button-prev" />
5556
<div className="swiper-pagination" />
56-
<MdChevronRight className="swiper-button-next" />
57+
<ChevronNext className="swiper-button-next" />
5758
</SwiperParent>
5859
</div>
5960
)

src/pages/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Fragment, lazy, Suspense } from "react"
22
import type { GetStaticProps, InferGetStaticPropsType } from "next"
33
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
44
import { FaDiscord, FaGithub } from "react-icons/fa6"
5-
import { MdChevronRight } from "react-icons/md"
65

76
import type {
87
AllMetricData,
@@ -13,6 +12,7 @@ import type {
1312
} from "@/lib/types"
1413

1514
import SvgButtonLink from "@/components/Buttons/SvgButtonLink"
15+
import { ChevronNext } from "@/components/Chevron"
1616
import CodeModal from "@/components/CodeModal"
1717
import HomeHero from "@/components/Hero/HomeHero"
1818
import BentoCard from "@/components/Homepage/BentoCard"
@@ -189,7 +189,7 @@ const HomePage = ({
189189
/>
190190
<TranslatathonBanner pathname={asPath} />
191191
<HomeHero heroImg={Hero} className="w-full" />
192-
<div className="w-full space-y-32 lg:space-y-48">
192+
<div className="w-full space-y-32 px-4 md:mx-6 lg:space-y-48">
193193
<div className="my-20 grid w-full grid-cols-2 gap-x-4 gap-y-8 md:grid-cols-4 md:gap-x-10">
194194
{subHeroCTAs.map(({ label, description, href, className, Svg }) => (
195195
<Fragment key={label}>
@@ -329,7 +329,7 @@ const HomePage = ({
329329
<div className="flex justify-center py-8 md:justify-start">
330330
<ButtonLink href="/learn/" size="lg" variant="outline">
331331
{t("page-index:page-index-popular-topics-action")}{" "}
332-
<MdChevronRight />
332+
<ChevronNext />
333333
</ButtonLink>
334334
</div>
335335
</div>
@@ -356,7 +356,7 @@ const HomePage = ({
356356
<div className="flex flex-wrap gap-6 py-8">
357357
<ButtonLink href="/developers/" size="lg" className="w-fit">
358358
{t("page-index:page-index-builders-action-primary")}{" "}
359-
<MdChevronRight />
359+
<ChevronNext />
360360
</ButtonLink>
361361
<ButtonLink
362362
href="/developers/docs/"
@@ -430,7 +430,7 @@ const HomePage = ({
430430
</div>
431431
<div className="flex flex-wrap gap-3 py-8">
432432
<ButtonLink href="/community/" size="lg">
433-
{t("page-index:page-index-community-action")} <MdChevronRight />
433+
{t("page-index:page-index-community-action")} <ChevronNext />
434434
</ButtonLink>
435435
<div className="flex gap-3">
436436
<ButtonLink
@@ -623,7 +623,7 @@ const HomePage = ({
623623
</div>
624624
<div className="flex justify-center py-8 md:justify-start">
625625
<ButtonLink href="/community/events/" size="lg" className="mx-auto">
626-
{t("page-index:page-index-events-action")} <MdChevronRight />
626+
{t("page-index:page-index-events-action")} <ChevronNext />
627627
</ButtonLink>
628628
</div>
629629
</Section>

0 commit comments

Comments
 (0)