2020-08-03 14:18:48 +00:00
|
|
|
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%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-04-28 10:28:39 +00:00
|
|
|
function PageLoadingBar() {
|
|
|
|
|
return (
|
|
|
|
|
<StyledLoader>
|
|
|
|
|
<div className="line" />
|
|
|
|
|
<div className="subline inc" />
|
|
|
|
|
</StyledLoader>
|
|
|
|
|
);
|
|
|
|
|
}
|
2020-08-03 14:18:48 +00:00
|
|
|
|
|
|
|
|
export default PageLoadingBar;
|