UNPKG

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) 719 B
import React from 'react'; import { styled, keyframes } from '@mui/system'; const gradientAnimation = keyframes` 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } `; const GradientBackground = styled('div')` position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(270deg, #ff7e5f, #feb47b, #86a8e7, #91eae4); background-size: 800% 800%; animation: ${gradientAnimation} 15s ease infinite; z-index: -1; `; const GradientBackgroundComponent = ({ children }) => { return <GradientBackground>{children}</GradientBackground>; }; export default GradientBackgroundComponent;