mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
bd93c5d131
* feat: change layout * fix: standalone banner styling * fix: change styling for banner * fix: login page * fix: standalone pages * fix: page tweaks * fix: center text * refactor: new user page * refactor: remove uneccesary markup * refactor: remove secondary actions from hosted * fix: remove authdetails blob * refactor: remove unused import * fix: move overflow * fix: add breakpoint to forgotten password
31 lines
551 B
TypeScript
31 lines
551 B
TypeScript
interface IGradientProps {
|
|
from: string;
|
|
to: string;
|
|
style?: object;
|
|
}
|
|
|
|
const Gradient: React.FC<IGradientProps> = ({
|
|
children,
|
|
from,
|
|
to,
|
|
style,
|
|
...rest
|
|
}) => {
|
|
return (
|
|
<div
|
|
style={{
|
|
background: `linear-gradient(${from}, ${to})`,
|
|
height: '100%',
|
|
width: '100%',
|
|
position: 'relative',
|
|
...style,
|
|
}}
|
|
{...rest}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Gradient;
|