-
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
dev-madhurendra
committed
Feb 25, 2024
1 parent
43c1c27
commit 8462f1b
Showing
3 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { placeholders } from "../../../services/mocks/mocks"; | ||
import { SkeletonHomeDiv, SkeletonLeftHomeDiv, SkeletonPlaceholder, SkeletonRightHomeDiv } from "../../../utils/styled"; | ||
|
||
|
||
const SkeletonHomeSection = () => | ||
<SkeletonHomeDiv> | ||
<SkeletonLeftHomeDiv> | ||
{placeholders.map((placeholder, index) => ( | ||
<SkeletonPlaceholder key={index} {...placeholder} /> | ||
))} | ||
</SkeletonLeftHomeDiv> | ||
<SkeletonRightHomeDiv> | ||
<SkeletonPlaceholder width="31.25rem" height="25rem" /> | ||
</SkeletonRightHomeDiv> | ||
</SkeletonHomeDiv> | ||
|
||
|
||
export default SkeletonHomeSection; |
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 { keyframes } from "@emotion/react"; | ||
import styled from "@emotion/styled"; | ||
import React from "react"; | ||
import { SkeletonDiv, SkeletonIconContainer, SkeletonLeftDiv, SkeletonMiddleDiv, SkeletonRightDiv } from "../../../utils/styled"; | ||
|
||
|
||
const SidebarSkeletonLoader = () => | ||
<SkeletonIconContainer> | ||
<SkeletonLeftDiv> | ||
<SkeletonDiv /> | ||
</SkeletonLeftDiv> | ||
<SkeletonMiddleDiv> | ||
{new Array(6).fill(0).map((_, index) => ( | ||
<SkeletonDiv key={index} /> | ||
))} | ||
</SkeletonMiddleDiv> | ||
<SkeletonRightDiv> | ||
<SkeletonDiv /> | ||
<SkeletonDiv /> | ||
</SkeletonRightDiv> | ||
</SkeletonIconContainer> | ||
|
||
export default SidebarSkeletonLoader; |
28 changes: 28 additions & 0 deletions
28
frontend/src/components/molecules/SkeletonLoader/index.tsx
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 { keyframes } from "@emotion/react"; | ||
import styled from "@emotion/styled"; | ||
import React from "react"; | ||
import SidebarSkeletonLoader from "../../atoms/SidebarSkeleton"; | ||
import HomeSkeleton from "../../atoms/HomeSkeleton"; | ||
|
||
|
||
const Container = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
`; | ||
|
||
|
||
|
||
const PortfolioSkeletonLoader: React.FC = () => { | ||
return ( | ||
<Container> | ||
<SidebarSkeletonLoader /> | ||
<HomeSkeleton /> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default PortfolioSkeletonLoader; |