Skip to content

Commit

Permalink
textLoader init
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Krzywiec committed Nov 22, 2024
1 parent 87f4b42 commit 6b671a1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/mankkoo-ui/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { PieChartData } from "@/components/charts/piechart";
import { TableData } from "@/components/charts/table";
import { useEffect, useState } from "react";
import Loader from "@/components/elements/Loader";
import TextLoader from "@/components/elements/TextLoader";


const LineChart = dynamic(() => import('@/components/charts/Line'), {
Expand Down
32 changes: 32 additions & 0 deletions services/mankkoo-ui/components/elements/TextLoader.module.css
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;
}
}

7 changes: 7 additions & 0 deletions services/mankkoo-ui/components/elements/TextLoader.tsx
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>
)
}

0 comments on commit 6b671a1

Please sign in to comment.