feat: add Card and Carousel components; integrate them into NewsPage layout with Newsletter
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import type { ComponentProps, FC, PropsWithChildren } from 'react'
|
||||
|
||||
type TProperties = PropsWithChildren<ComponentProps<'div'>>
|
||||
|
||||
export const Card: FC<TProperties> = (properties) => {
|
||||
const { children, ...rest } = properties
|
||||
return (
|
||||
<div
|
||||
className="border-[.2px] border-black bg-white p-[30px]"
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export const Carousel = () => {
|
||||
return <div>Carousel</div>
|
||||
}
|
||||
Reference in New Issue
Block a user