-
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.
Merge pull request #336 from Studio-Yandex-Practicum/enhancement_306_…
…header_logo_skeleton enhancement_306_header_logo_skeleton
- Loading branch information
Showing
7 changed files
with
56 additions
and
20 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
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,11 +1,4 @@ | ||
.logo { | ||
width: 138px; | ||
height: 46px; | ||
} | ||
|
||
.link { | ||
display: flex; | ||
width: 138px; | ||
height: 46px; | ||
margin-right: 92px; | ||
} |
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 @@ | ||
.skeleton { | ||
display: flex; | ||
margin-right: 92px; | ||
} |
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 @@ | ||
import { FC } from 'react' | ||
import Skeleton from 'react-loading-skeleton' | ||
import 'react-loading-skeleton/dist/skeleton.css' | ||
|
||
import { TLogoProps } from '../types/types' | ||
|
||
import styles from './LogoSkeleton.module.scss' | ||
|
||
/** | ||
* Компонент LogoSkeleton - заставка, пока не загрузится картинка логотипа | ||
* @param {string} width - ширина скелетона | ||
* @param {string} height - высота скелетона | ||
*/ | ||
|
||
const LogoSkeleton: FC<TLogoProps> = ({ width, height }) => { | ||
return ( | ||
<div className={styles.skeleton}> | ||
<Skeleton count={1} width={width} height={height} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default LogoSkeleton |
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,6 @@ | ||
export type TLogoProps = { | ||
image?: string | ||
width: string | ||
height: string | ||
logo?: string | ||
} |
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