-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update adaptive + rem, FSD sort, modal update
- Loading branch information
1 parent
323caae
commit c3a2027
Showing
55 changed files
with
572 additions
and
398 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,68 @@ | ||
import { DataCardProps } from './shared/ui/Card'; | ||
|
||
export const cardData: DataCardProps[] = [ | ||
{ | ||
id: 1, | ||
src: '/', | ||
links: [ | ||
{ | ||
src: 'exampleLink1', | ||
market: 'ozon', | ||
}, | ||
{ | ||
src: 'exampleLink2', | ||
market: 'yandex', | ||
}, | ||
], | ||
images: ['cat.png', 'cat.png', 'cat.png'], | ||
title: 'Example Title 1', | ||
rating: 4.5, | ||
reviewCount: 100, | ||
currency: 'RUB', | ||
price: 50, | ||
oldPrice: 60, | ||
}, | ||
{ | ||
id: 2, | ||
src: '/', | ||
links: [ | ||
{ | ||
src: 'exampleLink1', | ||
market: 'ozon', | ||
}, | ||
{ | ||
src: 'exampleLink2', | ||
market: 'yandex', | ||
}, | ||
], | ||
images: ['cat.png', 'cat.png', 'cat.png'], | ||
title: 'Example Title 2', | ||
rating: 4.5, | ||
reviewCount: 100, | ||
currency: 'RUB', | ||
price: 50, | ||
oldPrice: 60, | ||
}, | ||
{ | ||
id: 3, | ||
src: '/', | ||
links: [ | ||
{ | ||
src: 'exampleLink1', | ||
market: 'ozon', | ||
}, | ||
{ | ||
src: 'exampleLink2', | ||
market: 'yandex', | ||
}, | ||
], | ||
images: ['cat.png', 'cat.png', 'cat.png'], | ||
title: | ||
'Example Title Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Elit', | ||
rating: 4.5, | ||
reviewCount: 100, | ||
currency: 'RUB', | ||
price: 50, | ||
oldPrice: 60, | ||
}, | ||
]; |
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
File renamed without changes.
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,20 @@ | ||
export const PasswordIcon = ({ | ||
color = 'var(--color-main-inverted)', | ||
...props | ||
}) => ( | ||
<svg | ||
width='24' | ||
height='24' | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
{...props} | ||
> | ||
<path | ||
d='M12 10V14M10 13L14 11M10 11L14 13M5 10V14M3 13L7 11M3 11L7 13M19 10V14M17 13L21 11M17 11L21 13' | ||
stroke={color} | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
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,23 @@ | ||
export const UserIcon = ({ | ||
color = 'var(--color-main-inverted)', | ||
...props | ||
}) => ( | ||
<svg | ||
width='24' | ||
height='24' | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
{...props} | ||
> | ||
<path | ||
d='M12 10C14.2091 10 16 8.20914 16 6C16 3.79086 14.2091 2 12 2C9.79086 2 8 3.79086 8 6C8 8.20914 9.79086 10 12 10Z' | ||
stroke='white' | ||
/> | ||
<path | ||
d='M19.998 18C20 17.836 20 17.669 20 17.5C20 15.015 16.418 13 12 13C7.582 13 4 15.015 4 17.5C4 19.985 4 22 12 22C14.231 22 15.84 21.843 17 21.563' | ||
stroke={color} | ||
strokeLinecap='round' | ||
/> | ||
</svg> | ||
); |
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,4 @@ | ||
export enum LocalstorageKeys { | ||
LIKED = 'liked-products-id', | ||
HISTORY = 'history-products-id', | ||
} |
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,14 @@ | ||
export type MarketType = 'ozon' | 'yandex'; | ||
|
||
export const Market = { | ||
ozon: { | ||
name: 'Ozon', | ||
color: 'var(--color-ozon-rgb)', | ||
image: 'ozon.svg', | ||
}, | ||
yandex: { | ||
name: 'Yandex Market', | ||
color: 'var(--color-yandex-rgb)', | ||
image: 'yandex-market.svg', | ||
}, | ||
}; |
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,4 @@ | ||
export enum Theme { | ||
LIGHT = 'light', | ||
DARK = 'dark', | ||
} |
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,28 @@ | ||
// import React, { useEffect, useState } from 'react'; | ||
|
||
// interface ElementColorHookOptions { | ||
// ref: React.RefObject<HTMLElement>; | ||
// disableRipple: boolean; | ||
// } | ||
|
||
// function getElementColor(element: HTMLElement | null): string | null { | ||
// if (!element) return null; | ||
// const computedStyle = window.getComputedStyle(element); | ||
// return computedStyle.color; | ||
// } | ||
|
||
// export function useElementColor({ | ||
// ref, | ||
// disableRipple, | ||
// }: ElementColorHookOptions): string | null { | ||
// const [currentColor, setCurrentColor] = useState<string | null>(null); | ||
|
||
// useEffect(() => { | ||
// if (!disableRipple && ref.current) { | ||
// const color = getElementColor(ref.current); | ||
// setCurrentColor(color); | ||
// } | ||
// }, [ref, disableRipple]); | ||
|
||
// return currentColor; | ||
// } |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
export { useCurrency } from './useCurrency/useCurrency'; | ||
export type { Currency } from './useCurrency/useCurrency'; | ||
export { getStorageData } from './useStorageData/getStorageData'; | ||
export { useStorageData } from './useStorageData/useStorageData'; |
Oops, something went wrong.