-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix after review-1 enhancement_350_adaptive_main_page
- Loading branch information
1 parent
27e4a64
commit f389c8e
Showing
26 changed files
with
357 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import AdvantageCard from './ui/AdvantageCard' | ||
export default AdvantageCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
src/entities/AdvantageCard/ui/AdvantageCard/advantageCard.module.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@use '@/shared/styles/utils/mixins' as media; | ||
@use '@/shared/styles/utils/variables' as var; | ||
|
||
.advantageCard { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 12px; | ||
width: 100%; | ||
max-width: 220px; | ||
min-height: 70px; | ||
border-radius: 10px; | ||
background: var.$white; | ||
font-size: 13px; | ||
font-weight: 700; | ||
line-height: 20px; | ||
color: var.$body-color; | ||
padding: 13px 18px; | ||
transition: 0.25s; | ||
border: 1px solid red; | ||
} | ||
|
||
.image { | ||
width: 36px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import LinkButton from './ui/LinkButton' | ||
export default LinkButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
@use '@/shared/styles/utils/variables' as var; | ||
|
||
.linkCard { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
padding: 20px; | ||
|
||
&__link { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 10px; | ||
width: 150px; | ||
height: 150px; | ||
border: 1px dashed var.$border-color; | ||
border-radius: 50%; | ||
background: var.$white; | ||
box-shadow: 0 10px 20px var.$bg-no-image; | ||
padding: 20px; | ||
transition: 0.5s; | ||
|
||
&:hover { | ||
box-shadow: 0 10px 20px var.$body-color-light-grey; | ||
} | ||
|
||
&:active { | ||
box-shadow: 0 10px 20px var.$body-color-light-grey; | ||
} | ||
|
||
&::before { | ||
content: ''; | ||
position: absolute; | ||
inset: 0; | ||
border: 1px dashed var.$link-color; | ||
border-radius: 50%; | ||
animation: clippath 7s infinite linear; | ||
} | ||
} | ||
|
||
&__arrow { | ||
animation: arrow 1.5s linear infinite; | ||
fill: var.$link-color; | ||
} | ||
} | ||
|
||
@keyframes clippath { | ||
0% { | ||
clip-path: inset(50% 0 0 0); | ||
} | ||
|
||
25% { | ||
clip-path: inset(0 50% 0 0); | ||
} | ||
|
||
50% { | ||
clip-path: inset(0 0 50% 0); | ||
} | ||
|
||
75% { | ||
clip-path: inset(0 0 0 50%); | ||
} | ||
|
||
100% { | ||
clip-path: inset(50% 0 0 0); | ||
} | ||
} | ||
|
||
@keyframes arrow { | ||
0% { | ||
transform: translateX(0) rotate(270deg); | ||
} | ||
|
||
25% { | ||
transform: translateX(3px) rotate(270deg); | ||
} | ||
|
||
50% { | ||
transform: translateX(0) rotate(270deg); | ||
} | ||
|
||
75% { | ||
transform: translateX(-3px) rotate(270deg); | ||
} | ||
|
||
100% { | ||
transform: translateX(0) rotate(270deg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
import LinkButton from './LinkButton' | ||
|
||
const meta = { | ||
title: 'entities/LinkButton', | ||
component: LinkButton, | ||
parameters: { | ||
layout: 'centered' | ||
}, | ||
tags: ['autodocs'] | ||
} satisfies Meta<typeof LinkButton> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = () => { | ||
const text = 'Link Button' | ||
|
||
return ( | ||
<div style={{ width: '500px' }}> | ||
<LinkButton link="#" text={text} /> | ||
</div> | ||
) | ||
} | ||
|
||
Default.args = { | ||
link: '#', | ||
text: 'Link Button' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { FC } from 'react' | ||
|
||
import ArrowIcon from '@/assets/images/sideBarMenu/IconArrowDown.svg' | ||
import Link from '@/shared/ui/Link/Link' | ||
|
||
import styles from './LinkButton.module.scss' | ||
|
||
interface ILinkButton { | ||
link: string | ||
text: string | ||
} | ||
|
||
/** | ||
* Компонент LinkButton - используется как кнопка перехода | ||
* @param {string} link - массив категорий полученный из редакса; | ||
* @param {string} text - телефон полученный из редакса; | ||
*/ | ||
|
||
const LinkButton: FC<ILinkButton> = ({ link, text }) => { | ||
return ( | ||
<li className={styles.linkCard}> | ||
<Link to={link} className={styles.linkCard__link}> | ||
<span>{text}</span> | ||
<ArrowIcon className={styles.linkCard__arrow} /> | ||
</Link> | ||
</li> | ||
) | ||
} | ||
|
||
export default LinkButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$one: 1; | ||
$two: 2; | ||
$three: 3; | ||
$four: 4; | ||
$five: 5; |
Oops, something went wrong.