-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from WebmasterCamp/feature/add-content
feat: add content and slide
- Loading branch information
Showing
11 changed files
with
368 additions
and
363 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React, { type FC, type ReactNode, useCallback, useRef } from "react"; | ||
// Import Swiper React components | ||
import { Swiper, SwiperSlide } from "swiper/react"; | ||
|
||
// Import Swiper styles | ||
import "swiper/css"; | ||
import "swiper/css/pagination"; | ||
|
||
import { Mousewheel, Keyboard, Pagination } from "swiper/modules"; | ||
import Link from "next/link"; | ||
|
||
export const CaruoselContent = () => { | ||
return ( | ||
<div className="relative w-full"> | ||
<Swiper | ||
autoplay={{ | ||
delay: 3000, | ||
}} | ||
cssMode={true} | ||
navigation={true} | ||
pagination={true} | ||
mousewheel={true} | ||
keyboard={true} | ||
spaceBetween={24} | ||
slidesPerView={1} | ||
modules={[Mousewheel, Keyboard, Pagination]} | ||
> | ||
<SwiperSlide> | ||
<Link | ||
href="/content/1" | ||
className="flex h-[656px] w-full flex-col bg-[url('/assets/food.png')] bg-cover bg-center bg-no-repeat px-[80px] pt-[368px]" | ||
> | ||
<p className="mt-auto text-h1 font-bold text-white"> | ||
BO.LAN : Thai restaurant serves premium dishes from the farm to | ||
the table | ||
</p> | ||
</Link> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<Link | ||
href="/content/2" | ||
className="flex h-[656px] w-full flex-col bg-[url('/assets/bg-2.png')] bg-cover bg-center bg-no-repeat px-[80px] pt-[368px]" | ||
> | ||
<p className="mt-auto text-h1 font-bold text-white"> | ||
Food waste, more than food that is wasted | ||
</p> | ||
</Link> | ||
</SwiperSlide> | ||
</Swiper> | ||
</div> | ||
); | ||
}; |
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.