bigbuffet-rw/app/soapbox/features/ui/components/background-shapes.tsx
2022-11-16 08:35:35 -05:00

16 lines
602 B
TypeScript

import classNames from 'clsx';
import React from 'react';
interface IBackgroundShapes {
/** Whether the shapes should be absolute positioned or fixed. */
position?: 'fixed' | 'absolute',
}
/** Gradient that appears in the background of the UI. */
const BackgroundShapes: React.FC<IBackgroundShapes> = ({ position = 'fixed' }) => (
<div className={classNames(position, 'top-0 inset-x-0 flex justify-center overflow-hidden pointer-events-none')}>
<div className='w-screen h-screen bg-gradient-sm lg:bg-gradient-light lg:dark:bg-gradient-dark' />
</div>
);
export default BackgroundShapes;