2022-05-05 19:25:52 -07:00
|
|
|
import classNames from 'classnames';
|
2022-03-21 11:09:01 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-05-05 19:25:52 -07:00
|
|
|
interface IBackgroundShapes {
|
|
|
|
/** Whether the shapes should be absolute positioned or fixed. */
|
|
|
|
position?: 'fixed' | 'absolute',
|
|
|
|
}
|
|
|
|
|
2022-04-26 10:05:49 -07:00
|
|
|
/** Gradient that appears in the background of the UI. */
|
2022-05-05 19:25:52 -07:00
|
|
|
const BackgroundShapes: React.FC<IBackgroundShapes> = ({ position = 'fixed' }) => (
|
|
|
|
<div className={classNames(position, 'top-0 inset-x-0 flex justify-center overflow-hidden pointer-events-none')}>
|
2022-06-28 08:47:41 -07:00
|
|
|
<div className='w-screen h-screen' style={{ background: 'linear-gradient(112deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(84,72,238,0.1) 30%, rgba(20,156,255,0.1) 70%, rgba(0,0,0,0) 80%, rgba(0,0,0,0) 100%)' }} />
|
2022-03-21 11:09:01 -07:00
|
|
|
</div>
|
|
|
|
);
|
2022-04-26 10:05:49 -07:00
|
|
|
|
|
|
|
export default BackgroundShapes;
|