diff --git a/src/assets/images/chevron-right-no-stroke.svg b/src/assets/images/chevron-right-no-stroke.svg new file mode 100644 index 00000000..bea4b50d --- /dev/null +++ b/src/assets/images/chevron-right-no-stroke.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Button/button.module.scss b/src/components/Button/button.module.scss index 38d985dc..98d1fe77 100644 --- a/src/components/Button/button.module.scss +++ b/src/components/Button/button.module.scss @@ -25,8 +25,8 @@ transition: 0.5s; &:disabled { - background-color: black; - cursor: not-allowed; + background-color: $accent-color-lightest-green; + cursor: initial; } } diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 1f3791ec..da9e54e8 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -1,10 +1,14 @@ import clsx from 'clsx'; import styles from './button.module.scss'; -type ButtonProps = { +export type ButtonProps = { buttonText: string; - buttonStyle: string; - classNameActive?: string; + buttonStyle: + | 'green-border-button' + | 'green-border-button__active' + | 'greenish-button' + | 'green-button'; + classNameActive?: 'greenish-button__active' | ''; onClick?: () => void; disabled?: boolean; classNames?: string; diff --git a/src/components/card-block-link/card-block-link.module.scss b/src/components/card-block-link/card-block-link.module.scss deleted file mode 100644 index 0c084173..00000000 --- a/src/components/card-block-link/card-block-link.module.scss +++ /dev/null @@ -1,53 +0,0 @@ -.card-block-link { - margin: 0; - width: 100%; - height: 200px; - background-color: gray; - border-radius: 16px; - transition: 0.2s; - overflow: hidden; - background-position: center; - background-repeat: no-repeat; - background-size: cover; - box-sizing: border-box; - display: inline-block; - text-decoration: none; - color: #fff; - - @media screen and (width <= 768px) { - height: 97px; - } - - &:hover { - cursor: pointer; - opacity: 0.7; - } -} - -.card-block-link__title { - margin: 0; - padding: 10px; - text-align: center; - max-width: 150px; - font-family: Ubuntu, Arial, sans-serif; - font-size: 24px; - font-style: normal; - font-weight: 700; - line-height: 140%; - box-sizing: border-box; - text-wrap: wrap; - position: relative; - - @media screen and (width <= 768px) { - max-width: 100px; - font-size: 15px; - } -} - -.card-block-link__title-wrapper { - display: flex; - align-items: center; - justify-content: center; - background-color: rgb(0 0 0 / 48.6%); - height: 100%; -} diff --git a/src/components/card-block-link/index.tsx b/src/components/card-block-link/index.tsx deleted file mode 100644 index 279b13da..00000000 --- a/src/components/card-block-link/index.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import styles from './card-block-link.module.scss'; -import { Link } from 'react-router-dom'; - -type CardBlockLinkProps = { - title: string; - link: string; - backgroundImage: string | undefined; -}; - -function CardBlockLink({ title, link, backgroundImage }: CardBlockLinkProps) { - return ( - -
-

{title}

-
- - ); -} - -export default CardBlockLink; diff --git a/src/components/card-catalog-link/card-catalog-link.module.scss b/src/components/card-catalog-link/card-catalog-link.module.scss index be7e7088..76e6fed3 100644 --- a/src/components/card-catalog-link/card-catalog-link.module.scss +++ b/src/components/card-catalog-link/card-catalog-link.module.scss @@ -19,33 +19,10 @@ } } -.card-catalog-link__title-container_type_bento-grid { - margin-bottom: 28px; -} - .card-catalog-link__title-container_type_single-row { margin-bottom: 16px; } -.card-catalog-link__title { - margin: 0; - color: #1a1a1a; - - @media screen and (width <= 768px) { - font-size: 24px; - } -} - -.card-catalog-link__arrow { - width: 20px; - height: 32px; - margin-top: auto; - background-position: center; - background-size: cover; - background-repeat: no-repeat; - background-image: url('@images/chevron-right.svg'); -} - .card-catalog-link__list-single { margin: 0; padding: 0; @@ -76,30 +53,6 @@ } } -.card-catalog-link__list-bento { - margin: 0; - padding: 0; - list-style: none; - gap: 20px; - display: grid; - grid-template-areas: - 'a a b b c c' - 'd d d e e e'; - margin-bottom: 13px; - - @media screen and (width <= 768px) { - grid-template-areas: - 'a b' - 'c d' - 'e .'; - gap: 4px; - } - - &:last-of-type { - margin-bottom: 0; - } -} - .card-catalog-link__list-item { margin: 0; padding: 0; diff --git a/src/components/card-catalog-link/index.tsx b/src/components/card-catalog-link/index.tsx index 9ea137f3..df5e4dbb 100644 --- a/src/components/card-catalog-link/index.tsx +++ b/src/components/card-catalog-link/index.tsx @@ -1,16 +1,15 @@ /* eslint-disable */ -import CardBlockLink from '../card-block-link'; import clsx from 'clsx'; import ProductCard from '../product-card'; +import TitleArrowLink from '@components/title-arrow-link'; import styles from './card-catalog-link.module.scss'; -import { Link } from 'react-router-dom'; import { Product } from '@services/generated-api/data-contracts'; type CardCatalogLinkProps = { title: string; category?: string; array: Product[] | { title: string; link: string; backgroundImage: string }[]; - type: 'bento-grid' | 'single-row'; + type: 'single-row'; }; function CardCatalogLink({ title, array, type, category }: CardCatalogLinkProps) { @@ -21,18 +20,11 @@ function CardCatalogLink({ title, array, type, category }: CardCatalogLinkProps) styles[`card-catalog-link__title-container_type_${type}`] }`} > - -

{title}

- - +