-
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.
- Loading branch information
Mark Melior
committed
Jan 4, 2025
1 parent
b1825dd
commit a287a68
Showing
10 changed files
with
143 additions
and
68 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@use "@/shared/ui/Modal/ui/Modal/modal.global"; | ||
|
||
path { | ||
transition: 0.2s d ease-in-out; | ||
} | ||
|
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,46 @@ | ||
import Image from 'next/image'; | ||
|
||
import { Flex } from '../Flex'; | ||
import { Text } from '../Text'; | ||
|
||
import styles from './empty.module.scss'; | ||
|
||
interface IEmpty { | ||
description?: string | ||
icon?: React.ReactNode | ||
title?: string | ||
} | ||
|
||
export const Empty = ({ | ||
description, | ||
icon = ( | ||
<Image | ||
alt="empty" | ||
height={512} | ||
src="/images/document.png" | ||
width={512} | ||
/> | ||
), | ||
title = 'Ничего не найдено...', | ||
}: IEmpty) => ( | ||
<Flex | ||
align="center" | ||
className={styles.wrapper} | ||
full={true} | ||
gap={8} | ||
justify="center" | ||
vertical={true} | ||
> | ||
<div className={styles.icon}> | ||
{icon} | ||
</div> | ||
<Flex align="center" vertical={true}> | ||
<Text align="text-center" color="text-base-400" size="text-sm"> | ||
{title} | ||
</Text> | ||
<Text align="text-center" color="text-base-600" size={0.7}> | ||
{description} | ||
</Text> | ||
</Flex> | ||
</Flex> | ||
); |
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,11 @@ | ||
.wrapper { | ||
height: 100%; | ||
max-height: calc(100vh - 100px); | ||
} | ||
|
||
.icon { | ||
max-width: 64px; | ||
max-height: 64px; | ||
pointer-events: none; | ||
user-select: none; | ||
} |
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 @@ | ||
export { Empty } from './Empty'; |
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