PromucFlow_constructor/app/client/src/pages/common/PageLoadingBar.tsx
Satish Gandham 7f7f6f666b
Development: Add eslint rules for code consistency (#4083)
Co-authored-by: Satish Gandham <satish@appsmith.com>
Co-authored-by: Abhinav Jha <abhinav@appsmith.com>
2021-04-28 15:58:39 +05:30

48 lines
763 B
TypeScript

import React from "react";
import styled from "styled-components";
const StyledLoader = styled.div`
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 4px;
overflow-x: hidden;
.line {
position: absolute;
opacity: 0.4;
background: #d36500;
width: 150%;
height: 4px;
}
.subline {
position: absolute;
background: #d36500;
height: 4px;
}
.inc {
animation: increase 2s infinite;
}
@keyframes increase {
from {
left: -5%;
width: 5%;
}
to {
left: 130%;
width: 100%;
}
}
`;
function PageLoadingBar() {
return (
<StyledLoader>
<div className="line" />
<div className="subline inc" />
</StyledLoader>
);
}
export default PageLoadingBar;