Skip to content

Commit

Permalink
fix page login layout
Browse files Browse the repository at this point in the history
  • Loading branch information
karenyov committed Apr 6, 2023
1 parent 0af39bc commit 5c739ff
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
12 changes: 11 additions & 1 deletion src/components/template/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import { Text, Container, Center } from "@chakra-ui/react";

export default function Footer() {
return <></>;
return (
<Container as="footer">
<Center>
<Text fontSize="sm" color="subtle">
&copy; {new Date().getFullYear()} Finances reserved.
</Text>
</Center>
</Container>
);
}
10 changes: 7 additions & 3 deletions src/components/template/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Box, Flex } from "@chakra-ui/react";

import Footer from "./Footer";
import NavbarTop from "./NavbarTop";

Expand All @@ -7,10 +9,12 @@ interface Props {

export default function Layout({ children }: Props) {
return (
<>
<Box w="100%">
<NavbarTop />
<Box w="100%" h="calc(100vh)">
<main>{children}</main>
</Box>
<Footer />
</>
</Box>
);
}
}
5 changes: 0 additions & 5 deletions src/pages/profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ import { useSession } from "next-auth/react";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";

import InputMask from "react-input-mask";
import MaskedInput from "react-text-mask";
import { useEffect, useState } from "react";
import emailMask from "text-mask-addons/dist/emailMask";

import Button from "@/components/Button";
import { Input } from "@/components/Input";
import Layout from "@/components/template/Layout";
Expand Down

0 comments on commit 5c739ff

Please sign in to comment.