feat: add component form-login

add component form-login
This commit is contained in:
fredy.siswanto
2025-02-21 16:44:51 +07:00
parent eafe70a021
commit 7c4440cc6b
13 changed files with 358 additions and 23 deletions
+7 -4
View File
@@ -9,7 +9,7 @@ import { Button } from './button'
export const Carousel = (properties: TNews) => {
const location = useLocation()
const hasCategory = location.pathname.includes('/categories/')
const hasCategory = location.pathname.includes('/category/')
const { title, description, items, type } = properties
return (
@@ -71,8 +71,11 @@ export const Carousel = (properties: TNews) => {
)}
>
<div className={`${type === 'hero' ? 'hidden' : ''} `}>
{tags?.map((item) => (
<span className="my-3 mr-2 inline-block rounded bg-gray-200 px-3 py-1">
{tags?.map((item, index) => (
<span
key={index}
className="my-3 mr-2 inline-block rounded bg-gray-200 px-3 py-1"
>
{item}
</span>
))}
@@ -97,7 +100,7 @@ export const Carousel = (properties: TNews) => {
size="block"
as={Link}
to={`detail/${slug}`}
className={twMerge('', type === 'hero' ? '' : 'mb-5 sm:mb-0')}
className={twMerge('', type === 'hero' ? '' : 'mb-5')}
>
View More
</Button>