Skip to content

Commit

Permalink
94 add footer (#109)
Browse files Browse the repository at this point in the history
* create footer component

* Export footer from index

* add styles and structure to footer

* place footer on page
  • Loading branch information
thearyadev committed Jan 19, 2024
1 parent 5b1d6f4 commit 7b5b39f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions frontend/app/components/footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

const Footer = () => {

return (
<div className="text-center pb-5 pt-3
bg-gray-300 w-full overflow-x-auto whitespace-nowrap">
<a href="https://github.com/thearyadev/top500-aggregator" className='underline'>
Support this project on Github
</a>
</div>
)
}
export default Footer;
3 changes: 2 additions & 1 deletion frontend/app/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {default as Header} from "./header/header"
export {default as Card} from "./card/card"
export {default as BarChart} from "./charts/barChart"
export {default as LineChart} from "./charts/lineChart"
export {default as LineChart} from "./charts/lineChart"
export {default as Footer} from './footer/footer'
3 changes: 2 additions & 1 deletion frontend/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../app/globals.scss';
import type {AppProps} from 'next/app';
import {Header} from "@/app/components";
import {Footer, Header} from "@/app/components";
import {useRouter} from "next/router";

interface T500AggregatorAppProps extends AppProps {
Expand Down Expand Up @@ -40,6 +40,7 @@ function MyApp({Component, pageProps}: T500AggregatorAppProps) {
<hr className="m-5"/>

<Component {...pageProps} />
<Footer />
</main>
</>
)
Expand Down

0 comments on commit 7b5b39f

Please sign in to comment.