✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix: stick footer to bottom of the page (#469)
Lorenzo Palaia89c29e94c082
diff --git a/src/layout/PageLayout/Footer.tsx b/src/layout/PageLayout/Footer.tsxindex 360d1d6f..88545bd2 100644--- a/src/layout/PageLayout/Footer.tsx+++ b/src/layout/PageLayout/Footer.tsx@@ -8,7 +8,7 @@ import { JSONCrackLogo } from "../JsonCrackLogo";export const Footer = () => {return (- <Container mt={60} px={60} pb="xl" bg="black" fluid>+ <Container w="100%" mt={60} px={60} pb="xl" bg="black" fluid><Divider color="gray.3" mb="xl" mx={-60} /><Flex justify="space-between"><Stack gap={4} visibleFrom="sm">diff --git a/src/layout/PageLayout/index.tsx b/src/layout/PageLayout/index.tsxindex 476e4b45..9d76b2d5 100644--- a/src/layout/PageLayout/index.tsx+++ b/src/layout/PageLayout/index.tsx@@ -12,6 +12,13 @@ const inter = Inter({const StyledLayoutWrapper = styled.div`background: #fff;font-family: ${inter.style.fontFamily};+ display: flex;+ flex-direction: column;+ min-height: 100vh;+`;++const ContentWrapper = styled.div`+ flex: 1;`;const PageLayout = ({ children }: React.PropsWithChildren) => {@@ -19,7 +26,7 @@ const PageLayout = ({ children }: React.PropsWithChildren) => {<ThemeProvider theme={lightTheme}><StyledLayoutWrapper><Navbar />- {children}+ <ContentWrapper>{children}</ContentWrapper><Footer /></StyledLayoutWrapper></ThemeProvider>