diff --git a/src/client/components/features/Partner/Card/PartnerCard.module.scss b/src/client/components/features/Partner/Card/PartnerCard.module.scss index 8f97ce5605..f37c7f3b51 100644 --- a/src/client/components/features/Partner/Card/PartnerCard.module.scss +++ b/src/client/components/features/Partner/Card/PartnerCard.module.scss @@ -46,7 +46,7 @@ } &LogoWrapperPaysage { - height: 44px; + height: 72px; } &LogoWrapperPortrait { diff --git a/src/client/components/features/Partner/Card/PartnerCard.tsx b/src/client/components/features/Partner/Card/PartnerCard.tsx index 9622848ce8..53165c96ec 100644 --- a/src/client/components/features/Partner/Card/PartnerCard.tsx +++ b/src/client/components/features/Partner/Card/PartnerCard.tsx @@ -1,21 +1,21 @@ import classNames from 'classnames'; -import Image from 'next/legacy/image'; import React, { useMemo, } from 'react'; import styles from '~/client/components/features/Partner/Card/PartnerCard.module.scss'; +import { CardComponent } from '~/client/components/ui/Card/AbstractCard/CardComponent'; import { Icon } from '~/client/components/ui/Icon/Icon'; import { Link } from '~/client/components/ui/Link/Link'; +import useBreakpoint from '~/client/hooks/useBreakpoint'; import { useIsInternalLink } from '~/client/hooks/useIsInternalLink'; + interface PartnerCardProps { - alt?: string description: string headline?: string headlineColor?: string logo: string - logoRatio?: 'portrait' | 'paysage' link: string linkLabel: string title?: string @@ -38,8 +38,10 @@ export function PartnerCardList(list: PartnerCardProps[], title?: string){ ); } -export function PartnerCard({ alt = '', description, className, headline, headlineColor, logo, logoRatio = 'portrait', link, linkLabel, title }: PartnerCardProps & React.HTMLAttributes) { +export function PartnerCard({ description, className, headline, headlineColor, logo, link, linkLabel, title }: PartnerCardProps & React.HTMLAttributes) { const isInternalLink = useIsInternalLink(link); + const { isLargeScreen } = useBreakpoint(); + const icon = useMemo(function () { return ; @@ -49,25 +51,39 @@ export function PartnerCard({ alt = '', description, className, headline, headli return ( - <> -
-
- {alt} + {isLargeScreen ? + +
+
-
-
- {title && {title}} -

- {headline && {headline}} - {description} -

- - {linkLabel} - {icon} - -
- + + {title} +

+ {headline && {headline}} + {description} +

+ + + +
+ + : + +
+ +
+ + {title} +

+ {headline && {headline}} + {description} +

+ + + +
+
+ } ); - }