Skip to content

Commit

Permalink
fix: position overlay over loading elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyotato committed Apr 17, 2024
1 parent b7dae58 commit 7c707ab
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
13 changes: 9 additions & 4 deletions src/app/mypage/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { Container } from '@mantine/core';

import PageFooter from '@/components/shared/layouts/PageFooter';

import { MyPageProps } from '@/types/user';

const PostLayout = (props: MyPageProps) => {
return (
<Container py='xl'>
<Container py='xl'>{props.info}</Container>
<Container py='xl'>{props.roadmaps}</Container>
</Container>
<>
<Container py='xl'>
<Container py='xl'>{props.info}</Container>
<Container py='xl'>{props.roadmaps}</Container>
</Container>
<PageFooter />
</>
);
};

Expand Down
24 changes: 12 additions & 12 deletions src/components/shared/Overlay.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
'use client';
import { Box, LoadingOverlay } from '@mantine/core';
import { LoadingOverlay } from '@mantine/core';

import { theme } from '@/styles/theme';

const OverLay = () => {
return (
<Box pos='relative' h='100vh'>
<LoadingOverlay
visible={true}
zIndex={100000}
overlayProps={{ radius: 'sm', blur: 2 }}
loaderProps={{
color: theme.colors.color_grey2,
type: 'bars',
}}
/>
</Box>
// <Box pos='relative' h='100vh'>
<LoadingOverlay
visible={true}
zIndex={100000}
overlayProps={{ radius: 'sm', blur: 2 }}
loaderProps={{
color: theme.colors.color_grey2,
type: 'bars',
}}
/>
// </Box>
);
};
export default OverLay;
11 changes: 6 additions & 5 deletions src/styles/globalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export const GlobalStyle = createGlobalStyle`
.footer {
margin-top: rem(120px);
padding-top: calc(var(--mantine-spacing-xl) * 2);
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
border-top: rem(1px) solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5));
}
margin-top: 2rem !important;
padding-top: calc(var(--mantine-spacing-xl) * 2);
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
border-top: rem(1px) solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5));
}
.logo {
max-width: rem(200px);
Expand Down Expand Up @@ -280,6 +280,7 @@ iframe {
}
.logo-img{
width: 30px;
height: 30px;
}
.align-ctr{
align-items: center ;
Expand Down

0 comments on commit 7c707ab

Please sign in to comment.