feat: move homepage carousel arrows to the sides of job container

This commit is contained in:
Tiago Yamamoto 2026-02-23 20:50:19 -06:00
parent 279c0cf067
commit cf761a70e4

View file

@ -149,29 +149,20 @@ export default function Home() {
<h2 className="text-2xl md:text-3xl font-bold text-gray-900">
{t("home.featuredJobs.title")}
</h2>
<div className="flex items-center gap-2">
</div>
<div className="relative group">
<Button
variant="outline"
size="icon"
className="rounded-full border-gray-300 hover:border-orange-500 hover:text-orange-500 transition-all w-10 h-10"
className="absolute left-0 top-1/2 -translate-y-1/2 -ml-4 md:-ml-6 z-10 bg-white shadow-md rounded-full border-gray-300 hover:border-orange-500 hover:text-orange-500 transition-all w-10 h-10 lg:w-12 lg:h-12 flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed"
onClick={scrollPrev}
disabled={prevBtnDisabled}
>
<ChevronLeft className="w-5 h-5" />
<ChevronLeft className="w-5 h-5 lg:w-6 lg:h-6" />
</Button>
<Button
variant="outline"
size="icon"
className="rounded-full border-gray-300 hover:border-orange-500 hover:text-orange-500 transition-all w-10 h-10"
onClick={scrollNext}
disabled={nextBtnDisabled}
>
<ChevronRight className="w-5 h-5" />
</Button>
</div>
</div>
<div className="overflow-hidden" ref={emblaRef}>
<div className="overflow-hidden px-1 py-4" ref={emblaRef}>
<div className="flex gap-6">
{loading ? (
<div className="flex-[0_0_100%] text-center py-8">Carregando vagas...</div>
@ -182,6 +173,17 @@ export default function Home() {
))}
</div>
</div>
<Button
variant="outline"
size="icon"
className="absolute right-0 top-1/2 -translate-y-1/2 -mr-4 md:-mr-6 z-10 bg-white shadow-md rounded-full border-gray-300 hover:border-orange-500 hover:text-orange-500 transition-all w-10 h-10 lg:w-12 lg:h-12 flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed"
onClick={scrollNext}
disabled={nextBtnDisabled}
>
<ChevronRight className="w-5 h-5 lg:w-6 lg:h-6" />
</Button>
</div>
</div>
</section>