Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Farmaha committed Jan 23, 2024
1 parent 22c055f commit 525b2e9
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Layout/Layout-styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import styled from "styled-components";
export const ScrollWrap = styled.div`
height: 100vh;
overflow-y: scroll;
`;
`;
5 changes: 1 addition & 4 deletions src/Layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ export const Layout = () => {
<AppBar />

<ScrollWrap>
<main style={{paddingTop: "100px"}}>
<main style={{ paddingTop: "100px" }}>
<Outlet />
</main>

<Footer />
<ScrollToTopButton />
</ScrollWrap>



</>
);
};
1 change: 0 additions & 1 deletion src/components/Loaders/Loaders-styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const LoaderOverlay = styled.div`
display: flex;
align-items: center;
justify-content: center;
`;

export const LoaderWWrap = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/components/ScrollToTopButton/ScrollToTopButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ScrollToTopButton = () => {
if (scrollBottom < 100) {
setButtonScrollBottom(120);
} else {
setButtonScrollBottom(20)
setButtonScrollBottom(20);
}

if (scrollTop > 300) {
Expand Down
5 changes: 0 additions & 5 deletions src/pages/GalleryPage/GalleryPage-styled.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
import styled from "styled-components";

export const GalleryPageWrap = styled.div`
height: 100vh;
overflow-y: scroll;
`;
5 changes: 1 addition & 4 deletions src/pages/GalleryPage/GalleryPage.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { ImageGallery } from "../../components/ImageGallery/ImageGallery";
import { GalleryPageWrap } from "./GalleryPage-styled";

const GalleryPage = () => {
return (
<>
{/* <GalleryPageWrap> */}
<ImageGallery />
{/* </GalleryPageWrap> */}
<ImageGallery />
</>
);
};
Expand Down

0 comments on commit 525b2e9

Please sign in to comment.