diff --git a/src/components/card/BlogCard.module.less b/src/components/card/BlogCard.module.less index 377eabe78..590c08e6b 100644 --- a/src/components/card/BlogCard.module.less +++ b/src/components/card/BlogCard.module.less @@ -24,6 +24,10 @@ color: #000; height: 78px; + &:hover { + text-decoration: underline; + } + @media @tablet, @phone { height: 72px; } diff --git a/src/components/card/BlogCard.jsx b/src/components/card/BlogCard.tsx similarity index 71% rename from src/components/card/BlogCard.jsx rename to src/components/card/BlogCard.tsx index 5b681eb97..41a3b47a1 100644 --- a/src/components/card/BlogCard.jsx +++ b/src/components/card/BlogCard.tsx @@ -1,10 +1,18 @@ import React from 'react'; import Link from 'next/link'; -import * as styles from './BlogCard.module.less'; +import styles from './BlogCard.module.less'; import Tags from '../tags'; import clsx from 'clsx'; -const BlogCard = ({ title, desc, tags, cover, locale, path, className }) => { +const BlogCard = (props: { + title: string; + desc: string; + tags: string[]; + cover: string; + path: string; + className?: string; +}) => { + const { title, desc, tags, cover, path, className } = props; const to = `/blog/${path}`; return ( @@ -14,7 +22,7 @@ const BlogCard = ({ title, desc, tags, cover, locale, path, className }) => { [className]: className, })} > -
+
{title}
diff --git a/src/components/cookieConsent/index.module.less b/src/components/cookieConsent/index.module.less index 4da4858a2..5d9570b93 100644 --- a/src/components/cookieConsent/index.module.less +++ b/src/components/cookieConsent/index.module.less @@ -31,7 +31,7 @@ } p { - .paragraph5-regular(); + .paragraph6-regular(); color: @color-black2; font-family: Inter !important; } diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsx new file mode 100644 index 000000000..48d19d717 --- /dev/null +++ b/src/components/ui/pagination.tsx @@ -0,0 +1,147 @@ +import * as React from 'react'; +import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'; + +import { cn } from '@/utils/merge'; +import { ButtonProps, buttonVariants } from '@/components/ui/button'; +import Link from 'next/link'; + +const Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => ( +