Skip to content

Commit

Permalink
change: spinner and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng committed Nov 28, 2024
1 parent cb97ec2 commit 1d5a453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
27 changes: 3 additions & 24 deletions src/web/components/loading/loading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,19 @@

import React from 'react';

import styled, {keyframes} from 'styled-components';
import styled from 'styled-components';

import Layout from 'web/components/layout/layout';

import GbLogo from 'web/components/icon/svg/greenbone.svg?url';

const Loader = styled.div`
width: 80px;
height: 80px;
margin: 40px auto;
background-image: url(${GbLogo});
background-size: 90%;
background-position: center;
background-repeat: no-repeat;
animation: ${keyframes({
'0%, 100%': {
transform: 'scale(0.9)',
opacity: 0.2,
},
'50%': {
transform: 'scale(1.0)',
opacity: 1,
},
})}
2s infinite ease-in-out;
`;
import {Spinner} from '@greenbone/opensight-ui-components-mantinev7';

const StyledLayout = styled(Layout)`
width: 100%;
`;

const Loading = () => (
<StyledLayout data-testid="loading" align={['center', 'center']}>
<Loader />
<Spinner />
</StyledLayout>
);

Expand Down
2 changes: 1 addition & 1 deletion src/web/components/structure/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


import React from 'react';

import styled from 'styled-components';
Expand All @@ -12,6 +11,7 @@ import Theme from 'web/utils/theme';

const Link = styled.a`
color: ${Theme.mediumGray};
font-size: 10px;
&:link {
color: ${Theme.mediumGray};
}
Expand Down

0 comments on commit 1d5a453

Please sign in to comment.