-
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.
- Loading branch information
Wojciech Krzywiec
committed
Nov 22, 2024
1 parent
87f4b42
commit 6b671a1
Showing
3 changed files
with
40 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
32 changes: 32 additions & 0 deletions
32
services/mankkoo-ui/components/elements/TextLoader.module.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,32 @@ | ||
.loader { | ||
color: #FFF; | ||
display: inline-block; | ||
position: relative; | ||
font-size: 48px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
box-sizing: border-box; | ||
} | ||
.loader::after { | ||
content: ''; | ||
width: 5px; | ||
height: 5px; | ||
background: currentColor; | ||
position: absolute; | ||
bottom: 10px; | ||
right: -5px; | ||
box-sizing: border-box; | ||
animation: animloader 1s linear infinite; | ||
} | ||
|
||
@keyframes animloader { | ||
0% { | ||
box-shadow: 10px 0 rgba(255, 255, 255, 0), 20px 0 rgba(255, 255, 255, 0); | ||
} | ||
50% { | ||
box-shadow: 10px 0 white, 20px 0 rgba(255, 255, 255, 0); | ||
} | ||
100% { | ||
box-shadow: 10px 0 white, 20px 0 white; | ||
} | ||
} | ||
|
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,7 @@ | ||
import classes from '@/components/elements/Loader.module.css' | ||
|
||
export default function TextLoader() { | ||
return ( | ||
<span className={classes.loader}>Loading</span> | ||
) | ||
} |