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
1 parent
70d6b8f
commit 413836d
Showing
16 changed files
with
145 additions
and
22 deletions.
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
client/src/features/chat/components/chatBox/components/ChatLoader/ChatLoader.jsx
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 from "react" | ||
import ContentLoader from "react-content-loader" | ||
|
||
const ChatLoader = (props) => { | ||
return ( | ||
<ContentLoader | ||
speed={1.25} | ||
height={1200} | ||
width={1060} | ||
backgroundColor="#b4b5b6" | ||
foregroundColor="#72767d" | ||
{...props} | ||
> | ||
{new Array(12).fill(" ").map((_, i) => { | ||
return ( | ||
<> | ||
<rect x="48" y={i*48+8} rx="3" ry="3" width="88" height="6" /> | ||
<rect x="48" y={i*48+26} rx="3" ry="3" width="410" height="6" /> | ||
<circle cx="20" cy={i*52+20} r="20" /> | ||
</> | ||
); | ||
})} | ||
|
||
</ContentLoader> | ||
) | ||
} | ||
|
||
export default ChatLoader |
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
24 changes: 24 additions & 0 deletions
24
client/src/features/sidebar/Channel/components/channel.loader.jsx
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,24 @@ | ||
import React from "react" | ||
import ContentLoader from "react-content-loader" | ||
|
||
const ChannelLoader = (props) => ( | ||
<ContentLoader | ||
speed={2} | ||
width={240} | ||
height={600} | ||
backgroundColor="#b4b5b6" | ||
foregroundColor="#72767d" | ||
{...props} | ||
> | ||
{new Array(6).fill(" ").map((_, i) => { | ||
return ( | ||
<> | ||
<rect x="12.5" y={i*32+14} rx="3" ry="3" width="213" height="20" /> | ||
</> | ||
); | ||
})} | ||
|
||
</ContentLoader> | ||
) | ||
|
||
export default ChannelLoader |
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
31 changes: 31 additions & 0 deletions
31
client/src/features/sidebar/Server/components/server.loader.jsx
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,31 @@ | ||
import React from "react" | ||
import ContentLoader from "react-content-loader" | ||
|
||
const ServerLoader = (props) => { | ||
return( | ||
<> | ||
<ContentLoader | ||
speed={1.25} | ||
width={72} | ||
height={600} | ||
// viewBox="0 0 72 124" | ||
// backgroundColor="#b4b5b6" | ||
backgroundColor="#2f3134" | ||
foregroundColor="#72767d" | ||
{...props} | ||
> | ||
{new Array(12).fill(" ").map((_, i) => { | ||
return ( | ||
<> | ||
<circle cx="37" cy={i*65+35} r="29" /> | ||
<rect x="-2" y={i*65+29} rx="19" ry="19" width="8" height="16" /> | ||
</> | ||
); | ||
})} | ||
|
||
</ContentLoader> | ||
</> | ||
) | ||
} | ||
|
||
export default ServerLoader |
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