mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
Add footer component
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
import { FC } from 'react';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
|
const StyledFooter = styled.footer`
|
||||||
|
display: grid;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-content: center;
|
||||||
|
padding: 1rem 0rem;
|
||||||
|
|
||||||
|
p {
|
||||||
|
display: inline;
|
||||||
|
text-align: right;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const Footer: FC = () => {
|
||||||
|
return (
|
||||||
|
<StyledFooter>
|
||||||
|
<p>Hazem Krimi © {new Date().getFullYear()}</p>
|
||||||
|
</StyledFooter>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Footer;
|
||||||
@@ -5,6 +5,7 @@ import DarkMode from '../components/DarkMode';
|
|||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import GlobalStyles from '../components/GlobalStyles';
|
import GlobalStyles from '../components/GlobalStyles';
|
||||||
import Theme from '../components/Theme';
|
import Theme from '../components/Theme';
|
||||||
|
import Footer from '../components/Footer';
|
||||||
|
|
||||||
const App = ({ Component, pageProps }: AppProps) => {
|
const App = ({ Component, pageProps }: AppProps) => {
|
||||||
return (
|
return (
|
||||||
@@ -23,6 +24,7 @@ const App = ({ Component, pageProps }: AppProps) => {
|
|||||||
<Container>
|
<Container>
|
||||||
<Nav />
|
<Nav />
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
|
<Footer />
|
||||||
</Container>
|
</Container>
|
||||||
</Theme>
|
</Theme>
|
||||||
</DarkMode>
|
</DarkMode>
|
||||||
|
|||||||
Reference in New Issue
Block a user