-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
922276d
commit 8b74e2f
Showing
4 changed files
with
57 additions
and
31 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
packages/p2p-media-loader-demo/src/components/players/loader/Loader.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,10 @@ | ||
// Loader.tsx | ||
import "./loader.css"; | ||
|
||
export const Loader = () => { | ||
return ( | ||
<div className="loader-container"> | ||
<div className="loader"></div> | ||
</div> | ||
); | ||
}; |
33 changes: 33 additions & 0 deletions
33
packages/p2p-media-loader-demo/src/components/players/loader/loader.css
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,33 @@ | ||
.loader-container { | ||
width: 100%; | ||
height: 20%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.loader-container { | ||
height: 40%; | ||
} | ||
} | ||
|
||
.loader { | ||
width: 48px; | ||
height: 48px; | ||
border: 5px solid #fff; | ||
border-bottom-color: #ff3d00; | ||
border-radius: 50%; | ||
display: inline-block; | ||
box-sizing: border-box; | ||
animation: rotation 1s linear infinite; | ||
} | ||
|
||
@keyframes rotation { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} |
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