Skip to content

Commit

Permalink
change loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil307 committed Aug 16, 2023
1 parent 3f90d80 commit e79d019
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
Binary file added public/icons/loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 25 additions & 6 deletions src/shared/ui/loader/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
import React from "react";
import styles from "./styles.module.css";
// import styles from "./styles.module.css";
import loader from '../../../../public/icons/loader.gif';
import styled from 'styled-components';

const Page = styled.div`
width: 100wh;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
`

const Gif = styled.img`
width: 200px;
height: 200px;
`

const Loader: React.FC = () => {
return (
<div className={styles.loader}>
<div className={styles.one}></div>
<div className={styles.two}></div>
<div className={styles.three}></div>
</div>
// <div className={styles.loader}>
// <div className={styles.one}></div>
// <div className={styles.two}></div>
// <div className={styles.three}></div>
// </div>
<Page>
<Gif src={loader} alt="" />
</Page>
);
};

Expand Down

0 comments on commit e79d019

Please sign in to comment.