diff --git a/app/components/icons/carousel-next.tsx b/app/components/icons/carousel-next.tsx new file mode 100644 index 0000000..4ea0605 --- /dev/null +++ b/app/components/icons/carousel-next.tsx @@ -0,0 +1,30 @@ +import type { JSX, SVGProps } from 'react' + +export const CarouselNextIcon = ( + properties: JSX.IntrinsicAttributes & SVGProps, +) => { + return ( + + + + + ) +} diff --git a/app/components/icons/carousel-previous.tsx b/app/components/icons/carousel-previous.tsx new file mode 100644 index 0000000..e003357 --- /dev/null +++ b/app/components/icons/carousel-previous.tsx @@ -0,0 +1,30 @@ +import type { JSX, SVGProps } from 'react' + +export const CarouselPreviousIcon = ( + properties: JSX.IntrinsicAttributes & SVGProps, +) => { + return ( + + + + + ) +} diff --git a/app/components/icons/facebook.tsx b/app/components/icons/facebook.tsx index e354032..d7a558a 100644 --- a/app/components/icons/facebook.tsx +++ b/app/components/icons/facebook.tsx @@ -11,6 +11,7 @@ export const FacebookIcon = ( width={100} height={100} viewBox="0 0 30 30" + fill="currentColor" {...properties} > diff --git a/app/components/icons/instagram.tsx b/app/components/icons/instagram.tsx index 231bb57..c053087 100644 --- a/app/components/icons/instagram.tsx +++ b/app/components/icons/instagram.tsx @@ -11,6 +11,7 @@ export const InstagramIcon = ( width={100} height={100} viewBox="0 0 30 30" + fill="currentColor" {...properties} > diff --git a/app/components/icons/linkedin.tsx b/app/components/icons/linkedin.tsx index c1e94e1..fb22bfe 100644 --- a/app/components/icons/linkedin.tsx +++ b/app/components/icons/linkedin.tsx @@ -11,6 +11,7 @@ export const LinkedinIcon = ( width={100} height={100} viewBox="0 0 30 30" + fill="currentColor" {...properties} > diff --git a/app/components/icons/search.tsx b/app/components/icons/search.tsx index 1d91245..a158851 100644 --- a/app/components/icons/search.tsx +++ b/app/components/icons/search.tsx @@ -14,7 +14,7 @@ export const SearchIcon = ( > ) diff --git a/app/components/icons/x.tsx b/app/components/icons/x.tsx index f3daaf5..64b7146 100644 --- a/app/components/icons/x.tsx +++ b/app/components/icons/x.tsx @@ -11,6 +11,7 @@ export const XIcon = ( width={100} height={100} viewBox="0 0 30 30" + fill="currentColor" {...properties} > diff --git a/app/components/ui/carousel.tsx b/app/components/ui/carousel.tsx index d6fa8be..35d6256 100644 --- a/app/components/ui/carousel.tsx +++ b/app/components/ui/carousel.tsx @@ -1,28 +1,57 @@ import { twMerge } from 'tailwind-merge' +import { CarouselNextIcon } from '~/components/icons/carousel-next' +import { CarouselPreviousIcon } from '~/components/icons/carousel-previous' import type { TNews } from '~/types/news' +import { Button } from './button' + export const Carousel = (properties: TNews) => { const { title, description, items, type } = properties return (
-
-

{title}

-

{description}

+
+
+

{title}

+

+ {description} +

+
+
+ + +
{items.map(({ image, title, content }, index) => ( -
+
{title} -

{title}

-

{content}

+
+

{title}

+

{content}

+ +
))}
diff --git a/app/layouts/footer-links.tsx b/app/layouts/footer-links.tsx index f970f2f..0730917 100644 --- a/app/layouts/footer-links.tsx +++ b/app/layouts/footer-links.tsx @@ -23,7 +23,7 @@ export const FooterLinks = () => { > {Icon && (