-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
750 additions
and
119 deletions.
There are no files selected for viewing
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
36 changes: 18 additions & 18 deletions
36
...ons/getting-started/landing/card/card.tsx → ...etting-started/integrations/card/card.tsx
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
File renamed without changes.
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
72 changes: 72 additions & 0 deletions
72
...on/docs/integrations/getting-started/integrations/promoted-carousel/promoted-carousel.tsx
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,72 @@ | ||
import { useCallback, useRef } from "react"; | ||
import { integrations } from "@site/src/integrations"; | ||
import { Swiper, SwiperSlide, SwiperRef } from "swiper/react"; | ||
import { ArrowLeft, ArrowRight } from "lucide-react"; | ||
import "swiper/css"; | ||
|
||
import { IntegrationCard } from "../card/card"; | ||
|
||
export const PromotedCarousel = () => { | ||
const sliderRef = useRef<SwiperRef>(null); | ||
|
||
const handlePrev = useCallback(() => { | ||
if (!sliderRef.current) return; | ||
sliderRef.current.swiper.slidePrev(); | ||
}, []); | ||
|
||
const handleNext = useCallback(() => { | ||
if (!sliderRef.current) return; | ||
sliderRef.current.swiper.slideNext(); | ||
}, []); | ||
|
||
return ( | ||
<> | ||
<Swiper | ||
ref={sliderRef} | ||
spaceBetween={50} | ||
breakpoints={{ | ||
320: { | ||
slidesPerView: 1, | ||
}, | ||
640: { | ||
slidesPerView: 2, | ||
}, | ||
1280: { | ||
slidesPerView: 3, | ||
}, | ||
}} | ||
autoplay={{ | ||
delay: 2500, | ||
}} | ||
> | ||
{integrations | ||
.filter((section) => section.isPackage && section.featured) | ||
.map((section) => ( | ||
<SwiperSlide key={section.label}> | ||
<IntegrationCard className="h-full" section={section} /> | ||
</SwiperSlide> | ||
))} | ||
</Swiper> | ||
|
||
{/* Arrows */} | ||
<div className="flex pt-4 justify-end"> | ||
<button | ||
type="button" | ||
onClick={handlePrev} | ||
className="carousel-prev relative z-20 w-12 h-12 flex items-center justify-center group" | ||
> | ||
<span className="sr-only">Previous</span> | ||
<ArrowLeft className="w-6 h-6 stroke-slate-500 group-hover:stroke-yellow-500 transition duration-150 ease-in-out" /> | ||
</button> | ||
<button | ||
type="button" | ||
onClick={handleNext} | ||
className="carousel-next relative z-20 w-12 h-12 flex items-center justify-center group" | ||
> | ||
<span className="sr-only">Next</span> | ||
<ArrowRight className="w-6 h-6 stroke-slate-500 group-hover:stroke-yellow-500 transition duration-150 ease-in-out" /> | ||
</button> | ||
</div> | ||
</> | ||
); | ||
}; |
44 changes: 0 additions & 44 deletions
44
documentation/docs/integrations/getting-started/landing/integrations.constants.ts
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
documentation/docs/integrations/plugin-eslint/_category_.json
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,3 @@ | ||
{ | ||
"label": "ESlint" | ||
} |
Empty file.
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
Oops, something went wrong.