Skip to content

Commit

Permalink
fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Nov 27, 2023
1 parent 91c46aa commit 667216b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/connect/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export default function Root() {
const messages = Object.values(messageConfig);
return (
<>
<NewsBar messages={messages} />
<NavBar />
<div>
<NewsBar messages={messages} />
<NavBar />
</div>
<ConnectLoader config={config} />
</>
);
Expand Down
10 changes: 10 additions & 0 deletions apps/connect/src/components/atoms/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ import Version from "./Version";
const Container = styled("div")(() => ({
display: "flex",
flexDirection: "column",
justifyContent: "space-between",
minHeight: "100vh",
position: "relative",
overflow: "hidden"
}));

const ContainerFooter = styled("div")(() => ({
display: "column",
flexDirection: "row",
alignItems: "flex-end"
}));

export default function Background({
children,
}: {
Expand All @@ -20,6 +27,7 @@ export default function Background({
return (
<Container>
{children}
<ContainerFooter>
<PoweredBy />
<Version />
<Glow
Expand Down Expand Up @@ -68,6 +76,8 @@ export default function Background({
</Elipsis>
</Elipsis>
</Glow>
</ContainerFooter>

</Container>
);
}
1 change: 1 addition & 0 deletions apps/connect/src/components/atoms/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const Footer = styled(Typography)<FooterProps>(({ theme, left, right }) => ({
flexGrow: 1,
justifyContent: "center",
paddingBottom: theme.spacing(2),
alignItems: "flex-end",
},
[theme.breakpoints.up("md")]: {
position: "absolute",
Expand Down

0 comments on commit 667216b

Please sign in to comment.