grungnet/src/components/Spinner.js

25 lines
479 B
JavaScript
Raw Normal View History

2020-04-14 03:36:25 -04:00
import React from "react";
import { Box } from "theme-ui";
import "./Spinner.css";
import spinnerImage from "../images/Loading.png";
function Spinner() {
return (
<Box className="spinner">
<Box
sx={{
backgroundImage: `url(${spinnerImage})`,
width: "100%",
height: "100%",
position: "absolute",
top: 0,
backgroundSize: "contain",
}}
></Box>
</Box>
);
}
export default Spinner;