diff --git a/app/components/ui/breadcrumb.tsx b/app/components/ui/breadcrumb.tsx index 3a10b57..547aa5c 100644 --- a/app/components/ui/breadcrumb.tsx +++ b/app/components/ui/breadcrumb.tsx @@ -7,14 +7,14 @@ type BreadcrumbProperty = { export const Breadcrumb = (property: BreadcrumbProperty) => { const { slug } = property return ( -
+
Blog
{'>'}
- {slug} + {slug.slice(0, 20) + '...'}
) diff --git a/app/pages/news-detail/data.ts b/app/pages/news-detail/data.ts index b083efb..cb61d9b 100644 --- a/app/pages/news-detail/data.ts +++ b/app/pages/news-detail/data.ts @@ -35,7 +35,7 @@ export const CONTENT: TNewsDetail = { author: 'John Doe', date: new Date(), categories: [], - tags: ['Category', 'Popular'], + tags: ['Category', 'Popular', 'Trending', 'Latest'], } export const BERITA: TNews = { diff --git a/app/pages/news-detail/index.tsx b/app/pages/news-detail/index.tsx index 999ba28..eea5db5 100644 --- a/app/pages/news-detail/index.tsx +++ b/app/pages/news-detail/index.tsx @@ -2,7 +2,7 @@ import htmlParse from 'html-react-parser' import { Breadcrumb } from '~/components/ui/breadcrumb' import { Card } from '~/components/ui/card' -import { Carousel } from '~/components/ui/carousel' +import { CarouselSection } from '~/components/ui/carousel-section' import { IconsSocial } from '~/components/ui/social-share' import { BERITA, CONTENT } from './data' @@ -19,8 +19,8 @@ export const NewsDetailPage = () => { {/* next planing create component for this section */} -
-
+
+
{title} {

- +
{/* end next planing create component for this section */}
{title}
@@ -49,16 +49,16 @@ export const NewsDetailPage = () => { {htmlParse(content)}
-
-
+
+

Share this post

-
+
{tags?.map((tag) => ( {tag} @@ -80,8 +80,8 @@ export const NewsDetailPage = () => {
- - + +
)