diff --git a/app/layout.tsx b/app/layout.tsx index e539e85..45c6244 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -39,7 +39,7 @@ export default function RootLayout({ fontSans.variable )} > - +
diff --git a/app/page.tsx b/app/page.tsx index 0a8b1d2..ea3023a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -5,7 +5,7 @@ import VisiMisi from "@/components/landing/visi-misi"; export default function Home() { return ( -
+
diff --git a/components/landing/banner.tsx b/components/landing/banner.tsx index e4f36df..5bec4ff 100644 --- a/components/landing/banner.tsx +++ b/components/landing/banner.tsx @@ -11,41 +11,12 @@ export default function Banner() { slidesToShow: 3, slidesToScroll: 3 }; - + `` return ( -
-
- banner +
+
+
- {/*
-
-
- 1 -
-
2
-
3
-
4
-
-
-
1
-
2
-
3
-
4
-
-
-
1
-
2
-
3
-
4
-
-
*/} - {/*
*/} - - {/*
*/}
) } diff --git a/components/landing/visi-misi.tsx b/components/landing/visi-misi.tsx index 12d272a..cc68210 100644 --- a/components/landing/visi-misi.tsx +++ b/components/landing/visi-misi.tsx @@ -1,19 +1,46 @@ -import "slick-carousel/slick/slick.css"; -import "slick-carousel/slick/slick-theme.css"; +'use client' + +// import "slick-carousel/slick/slick.css"; +// import "slick-carousel/slick/slick-theme.css"; +import { Swiper, SwiperSlide } from "swiper/react"; +import { FreeMode, Pagination } from "swiper/modules"; + +import "swiper/css"; +import "swiper/css/pagination"; +import "swiper/css/free-mode"; -import Slider from "react-slick"; -import { Card, CardBody } from "@nextui-org/react"; import Image from "next/image"; +const images = [ + { + id: 1, + url: "/vm1.jpg", + title: "Image 1", + description: "Description of image 1" + }, + { + id: 2, + url: "/vm2.jpg", + title: "Image 2", + description: "Description of image 2" + }, + { + id: 3, + url: "/vm3.jpg", + title: "Image 3", + description: "Description of image 3" + } +]; + export default function VisiMisi() { return ( -
-
-

Visi & Misi

-

Setelah Perjalanan Panjang dari Aceh hingga Papua, lahirlah visi dengan semangat perubahan yang di impikan oleh jutaan rakyat: "Indonesia Makmur untuk Semua".

-
-
-
+
+
+
+

Visi & Misi

+

Setelah Perjalanan Panjang dari Aceh hingga Papua, lahirlah visi dengan semangat perubahan yang di impikan oleh jutaan rakyat: "Indonesia Makmur untuk Semua".

+
+
banner
-
- - - vm - - - - - vm - - - - - vm - - +
+
+
+ {/*
+ + + vm + + + + + vm + + + + + vm + + +
*/} +
+ + {images.map((item) => ( + +
+ {/*
*/} + vm +
+
+ {/* */} +

{item.title}

+

{item.description}

+ {/*
+ */} +
+
+ + ))} + +
diff --git a/components/navbar.tsx b/components/navbar.tsx index 5865d68..653fc76 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -47,7 +47,9 @@ export const Navbar = () => { ); return ( - + @@ -61,7 +63,7 @@ export const Navbar = () => { -
    +
      {siteConfig.navItems.map((item) => ( { - */} - + + */} {/* {searchInput} */} {/* diff --git a/package-lock.json b/package-lock.json index c67e2f7..ac0b96f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,6 +42,7 @@ "react-dropzone": "^14.2.3", "react-slick": "^0.29.0", "slick-carousel": "^1.8.1", + "swiper": "^11.0.5", "tailwind-variants": "^0.1.18", "tailwindcss": "3.3.5", "typescript": "^5.0.4" @@ -6421,6 +6422,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/swiper": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-11.0.5.tgz", + "integrity": "sha512-rhCwupqSyRnWrtNzWzemnBLMoyYuoDgGgspAm/8iBD3jCvAWycPLH4Z3TB0O5520DHLzMx94yUMH/B9Efpa48w==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "engines": { + "node": ">= 4.7.0" + } + }, "node_modules/tailwind-merge": { "version": "1.14.0", "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-1.14.0.tgz", diff --git a/package.json b/package.json index 2bb0b40..6675840 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "react-dropzone": "^14.2.3", "react-slick": "^0.29.0", "slick-carousel": "^1.8.1", + "swiper": "^11.0.5", "tailwind-variants": "^0.1.18", "tailwindcss": "3.3.5", "typescript": "^5.0.4" diff --git a/tailwind.config.js b/tailwind.config.js index 157a466..5ad38d4 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -6,7 +6,8 @@ module.exports = { './pages/**/*.{js,ts,jsx,tsx,mdx}', './components/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}', - './node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}' + './node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}', + "./node_modules/swiper/swiper-react.mjs", ], theme: { extend: {},