Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding loader #53

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions frontend-app/src/app/_components/Loader/loader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
.loader {
position: absolute;
top: 50%;
left: 50%;
z-index: 10;
width: 160px;
height: 100px;
margin-left: -80px;
margin-top: -50px;
border-radius: 5px;
background: #1e3f57;
animation: dot1_ 3s cubic-bezier(0.55,0.3,0.24,0.99) infinite;
}

.loader:nth-child(2) {
z-index: 11;
width: 150px;
height: 90px;
margin-top: -45px;
margin-left: -75px;
border-radius: 3px;
background: #3c517d;
animation-name: dot2_;
}

.loader:nth-child(3) {
z-index: 12;
width: 40px;
height: 20px;
margin-top: 50px;
margin-left: -20px;
border-radius: 0 0 5px 5px;
background: #6bb2cd;
animation-name: dot3_;
}

@keyframes dot1_ {
3%,97% {
width: 160px;
height: 100px;
margin-top: -50px;
margin-left: -80px;
}

30%,36% {
width: 80px;
height: 120px;
margin-top: -60px;
margin-left: -40px;
}

63%,69% {
width: 40px;
height: 80px;
margin-top: -40px;
margin-left: -20px;
}
}

@keyframes dot2_ {
3%,97% {
height: 90px;
width: 150px;
margin-left: -75px;
margin-top: -45px;
}

30%,36% {
width: 70px;
height: 96px;
margin-left: -35px;
margin-top: -48px;
}

63%,69% {
width: 32px;
height: 60px;
margin-left: -16px;
margin-top: -30px;
}
}

@keyframes dot3_ {
3%,97% {
height: 20px;
width: 40px;
margin-left: -20px;
margin-top: 50px;
}

30%,36% {
width: 8px;
height: 8px;
margin-left: -5px;
margin-top: 49px;
border-radius: 8px;
}

63%,69% {
width: 16px;
height: 4px;
margin-left: -8px;
margin-top: -37px;
border-radius: 10px;
}
}
13 changes: 13 additions & 0 deletions frontend-app/src/app/_components/Loader/loader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react'
import './loader.css'

export default function loader() {
return (
<div className="container">
<div className="loader"></div>
<div className="loader"></div>
<div className="loader"></div>
</div>

)
}
3 changes: 2 additions & 1 deletion frontend-app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import { useRouter } from "next/navigation";
import { useEffect } from "react";
import Loader from "./_components/Loader/loader"

export default function Page() {
let router = useRouter();
useEffect(() => {
router.push("/create-run");
}, []);
return <div>Setting up, please wait 🙂</div>;
return <div>{<Loader />}</div>;
}