Skip to content

Commit 7d019f3

Browse files
committed
updated footer for every page and changed its route
1 parent 7dd06f4 commit 7d019f3

File tree

14 files changed

+46
-8
lines changed

14 files changed

+46
-8
lines changed

components/generator/array/arrayGenerator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import DownloadIcon from "@mui/icons-material/GetApp";
1919
import toast, { Toaster } from "react-hot-toast";
2020

2121
import ArrayGeneratorFunc from "components/generator/array/arrayGeneratorFunc";
22+
import Footer from "@/pages/footer";
2223

2324
const options = [
2425
"Negative Outputs",
@@ -376,6 +377,7 @@ const GenerateArray = () => {
376377
</StyledComponents.StyledCardContent>
377378
</StyledComponents.StyledCard>
378379
</Grid>
380+
<Footer/>
379381
</StyledComponents.StyledGrid>
380382
);
381383
};

components/generator/binaryTreeGenerator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import FileCopyIcon from "@mui/icons-material/FileCopy";
1515
import RefreshIcon from "@mui/icons-material/Refresh";
1616
import GenerateIcon from "@mui/icons-material/PlayArrow";
1717
import { styled } from "@mui/material/styles";
18+
import Footer from "@/pages/footer";
1819

1920
const StyledCard = styled(Card)(({ theme }) => ({
2021
background: "linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",
@@ -275,6 +276,8 @@ const BinaryTreeGenerator = () => {
275276
</StyledCard>
276277
</Grid>
277278
</StyledGrid>
279+
280+
<Footer/>
278281
</>
279282
);
280283
};

components/generator/graph/graphGenerator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import DownloadIcon from "@mui/icons-material/GetApp";
1818
import toast, { Toaster } from "react-hot-toast";
1919

2020
import GraphGeneratorFunc from "components/generator/graph/graphGeneratorFunc.js";
21+
import Footer from "@/pages/footer";
2122

2223
const options = [
2324
"Show Total Cases",
@@ -437,6 +438,7 @@ const GenerateGraph = () => {
437438
</StyledComponents.StyledCardContent>
438439
</StyledComponents.StyledCard>
439440
</Grid>
441+
<Footer/>
440442
</StyledComponents.StyledGrid>
441443
);
442444
};

components/generator/integer/integerGenerator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import GenerateIcon from "@mui/icons-material/PlayArrow";
88
import DownloadIcon from "@mui/icons-material/GetApp";
99

1010
import toast, { Toaster } from "react-hot-toast";
11-
11+
import Footer from "@/pages/footer";
1212
import IntegerGeneratorFunc from "components/generator/integer/integerGeneratorFunc";
1313

1414
const options = ["Show Total Cases"];
@@ -174,6 +174,7 @@ const GenerateInteger = () => {
174174
</StyledComponents.StyledCardContent>
175175
</StyledComponents.StyledCard>
176176
</Grid>
177+
<Footer/>
177178
</StyledComponents.StyledGrid>
178179
);
179180
};

components/generator/linkedList/linkedListGenerator.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StyledComponents } from "components/style";
2-
2+
import Footer from "@/pages/footer";
33
import {
44
Grid,
55
Tooltip,
@@ -584,6 +584,7 @@ const GenerateLinkedList = () => {
584584
: "")
585585
: "Empty List"}
586586
</div>
587+
587588
))
588589
: null}
589590
</StyledComponents.StyledTypography>
@@ -592,7 +593,10 @@ const GenerateLinkedList = () => {
592593
</StyledComponents.StyledCardContent>
593594
</StyledComponents.StyledCard>
594595
</Grid>
596+
597+
<Footer/>
595598
</StyledComponents.StyledGrid>
599+
596600
);
597601
};
598602

components/generator/matrixGenerator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
import GenerateIcon from "@mui/icons-material/PlayArrow";
2222
// import DownloadIcon from "@mui/icons-material/GetApp";
2323
import { styled } from "@mui/material/styles";
24+
import Footer from "@/pages/footer";
2425

2526
const StyledCard = styled(Card)(({ theme }) => ({
2627
background: "linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",
@@ -608,6 +609,7 @@ const GenerateMatrix = () => {
608609
</StyledCardContent>
609610
</StyledCard>
610611
</Grid>
612+
<Footer/>
611613
</StyledGrid>
612614
);
613615
};

components/generator/palindrome/palindromeGenerator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import DownloadIcon from "@mui/icons-material/GetApp";
1818
import toast, { Toaster } from "react-hot-toast";
1919

2020
import PalindromeGeneratorFunc from "components/generator/palindrome/palindromeGeneratorFunc.js";
21+
import Footer from "@/pages/footer";
2122

2223
const options = ["Show Total Cases", "Show Length"];
2324

@@ -331,6 +332,7 @@ const PalindromeGenerator = () => {
331332
</StyledComponents.StyledCardContent>
332333
</StyledComponents.StyledCard>
333334
</Grid>
335+
<Footer/>
334336
</StyledComponents.StyledGrid>
335337
);
336338
};

components/generator/string/stringGenerator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import DownloadIcon from "@mui/icons-material/GetApp";
1919
import toast, { Toaster } from "react-hot-toast";
2020

2121
import StringGeneratorFunc from "components/generator/string/stringGeneratorFunc";
22+
import Footer from "@/pages/footer";
2223

2324
const options = [
2425
"Hide Length",
@@ -359,6 +360,7 @@ const GenerateString = () => {
359360
</StyledComponents.StyledCardContent>
360361
</StyledComponents.StyledCard>
361362
</Grid>
363+
<Footer/>
362364
</StyledComponents.StyledGrid>
363365
);
364366
};

pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import '@/styles/globals.css'
22
import Footer from './footer.js'
33
export default function App({ Component, pageProps }) {
44
return <>
5-
<Component {...pageProps} /><Footer/>
5+
<Component {...pageProps} /><br/><br/>
66
</>
77
}

pages/about.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Link from 'next/link'
22
import styles from "@/styles/Home.module.css";
3-
3+
import Footer from './footer';
44
export default function about() {
55
return (
66
<>
@@ -20,7 +20,7 @@ export default function about() {
2020
</div>
2121
</nav>
2222
</div>
23-
23+
<Footer/>
2424
</>
2525
)
2626
}

0 commit comments

Comments
 (0)