-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRobotsWorking.tsx
43 lines (38 loc) · 1010 Bytes
/
RobotsWorking.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import colors from "@/lib/colors";
import { rgba } from "polished";
import React from "react";
import styled from "styled-components";
import Loading from "./universal/Loading";
import Logo from "./universal/Logo";
import Subtitle from "./universal/Subtitle";
import Title from "./universal/Title";
const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
`;
const LoadingWrapper = styled.div`
position: relative;
margin-top: 40px;
display: flex;
justify-content: center;
align-items: center;
`;
type Props = {
title: string;
subtitle?: string;
};
const RobotsWorking: React.FC<Props> = (props) => {
const { subtitle, title } = props;
return (
<Wrapper>
<Subtitle>{subtitle || "🤖 Robots are hard at work"}</Subtitle>
<Title>{title}</Title>
<LoadingWrapper>
<Loading size={160} />
<Logo size={40} style={{ position: "absolute" }} />
</LoadingWrapper>
</Wrapper>
);
};
export default RobotsWorking;