diff --git a/components/Landing Page/HeaderNews.tsx b/components/Landing Page/HeaderNews.tsx
index 4c222f3..4a38a67 100644
--- a/components/Landing Page/HeaderNews.tsx
+++ b/components/Landing Page/HeaderNews.tsx
@@ -1,10 +1,11 @@
+'use client'
import { Button, Card, CardFooter, ScrollShadow } from '@nextui-org/react'
import Image from 'next/image'
import { EyeIcon } from '../icons'
import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/css';
import 'swiper/css/pagination';
-import { Pagination } from 'swiper/modules';
+import { Autoplay, Pagination, Navigation } from 'swiper/modules';
import Link from 'next/link';
import GPRKominfo from '../SocialMedia/GprKominfo';
@@ -24,6 +25,34 @@ export default function HeaderNews() {
views: 82,
imageUrl: '/headernews.png'
},
+ {
+ id: 3,
+ title: 'Pelihara Kondusifitas Kamtibmas, Personel Polsek Sayan Sambangi Warganya yang Masih Beraktifitas Pada Malam Hari',
+ date: '21-07-2023 13:50',
+ views: 82,
+ imageUrl: '/headernews.png'
+ },
+ {
+ id: 4,
+ title: 'Pelihara Kondusifitas Kamtibmas, Personel Polsek Sayan Sambangi Warganya yang Masih Beraktifitas Pada Malam Hari',
+ date: '21-07-2023 13:50',
+ views: 82,
+ imageUrl: '/headernews.png'
+ },
+ {
+ id: 5,
+ title: 'Pelihara Kondusifitas Kamtibmas, Personel Polsek Sayan Sambangi Warganya yang Masih Beraktifitas Pada Malam Hari',
+ date: '21-07-2023 13:50',
+ views: 82,
+ imageUrl: '/headernews.png'
+ },
+ {
+ id: 6,
+ title: 'Pelihara Kondusifitas Kamtibmas, Personel Polsek Sayan Sambangi Warganya yang Masih Beraktifitas Pada Malam Hari',
+ date: '21-07-2023 13:50',
+ views: 82,
+ imageUrl: '/headernews.png'
+ },
];
return (
@@ -52,17 +81,31 @@ export default function HeaderNews() {
-
+
+
+
-
+
{newsData.map((newsItem) => (
-
- Beranda
+
+
+ Beranda
Berita
{listNews.map((news) => (
-
+
-
-
{news.title}
-
+
+
{news.title}
+
{news.date}
{/*
jam
creator
*/}
diff --git a/components/navbar/NavbarHumas.tsx b/components/navbar/NavbarHumas.tsx
index a93788a..29858e7 100644
--- a/components/navbar/NavbarHumas.tsx
+++ b/components/navbar/NavbarHumas.tsx
@@ -29,12 +29,12 @@ export default function NavbarHumas() {
return (
-
+
-

+
-
+
@@ -45,7 +45,7 @@ export default function NavbarHumas() {
-
+
Beranda
@@ -219,7 +219,7 @@ export default function NavbarHumas() {
Kontak
-
{searchInput}
+
{searchInput}
diff --git a/styles/globals.css b/styles/globals.css
index 6382855..22c8f20 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -2,6 +2,56 @@
@tailwind components;
@tailwind utilities;
- /* *{
- border: 1px solid green;
- } */
\ No newline at end of file
+
+.swiper {
+ width: 100%;
+ height: 100%;
+ }
+
+ .swiper-slide {
+ text-align: center;
+ font-size: 18px;
+ background: #fff;
+
+ /* Center slide text vertically */
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .swiper-slide img {
+ display: block;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ }
+
+ .autoplay-progress {
+ position: absolute;
+ right: 16px;
+ bottom: 16px;
+ z-index: 10;
+ width: 48px;
+ height: 48px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-weight: bold;
+ color: var(--swiper-theme-color);
+ }
+
+ .autoplay-progress svg {
+ --progress: 0;
+ position: absolute;
+ left: 0;
+ top: 0px;
+ z-index: 10;
+ width: 100%;
+ height: 100%;
+ stroke-width: 4px;
+ stroke: var(--swiper-theme-color);
+ fill: none;
+ stroke-dashoffset: calc(125.6 * (1 - var(--progress)));
+ stroke-dasharray: 125.6;
+ transform: rotate(-90deg);
+ }
\ No newline at end of file