leumas-private-shared
Version:
Private React JSX Package For Leumas Shared Components, Headers, Footers, Asides, Login Pages, API Key Manager and much more. Styles and everything reusable to avoid DRY code across all of our subdomains
27 lines (22 loc) • 679 B
JSX
import React from 'react';
import { styled, keyframes } from '@mui/system';
const neonGridAnimation = keyframes`
0% { background-position: 0% 0%; }
50% { background-position: 100% 100%; }
100% { background-position: 0% 0%; }
`;
const NeonGrid = styled('div')`
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, rgba(255,0,150,1) 0%, rgba(0,204,255,1) 100%);
background-size: 200% 200%;
animation: ${neonGridAnimation} 15s ease infinite;
z-index: -1;
`;
const NeonGridBackground = ({ children }) => {
return <NeonGrid>{children}</NeonGrid>;
};
export default NeonGridBackground;