bigbuffet-rw/app/soapbox/components/loading-screen.tsx

21 lines
577 B
TypeScript
Raw Normal View History

import React from 'react';
import LandingGradient from 'soapbox/components/landing-gradient';
import { Spinner } from 'soapbox/components/ui';
/** Fullscreen loading indicator. */
const LoadingScreen: React.FC = () => {
return (
<div className='fixed h-screen w-screen'>
<LandingGradient />
2022-05-24 10:45:00 -07:00
<div className='fixed d-screen w-screen flex items-center justify-center z-10'>
{/* Bump up spinner vertically to counteract optical illusion. */}
2022-05-24 10:45:00 -07:00
<Spinner size={40} withText={false} />
</div>
</div>
);
};
export default LoadingScreen;