Skip to content

Commit 7e22fcd

Browse files
authored
Merge pull request #43 from saimadhav24/main
Adding footer
2 parents fa54a8e + 7fb71be commit 7e22fcd

File tree

19 files changed

+466
-75
lines changed

19 files changed

+466
-75
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# misc
1919
.DS_Store
2020
*.pem
21+
yarn.lock
2122

2223
# debug
2324
npm-debug.log*
@@ -31,4 +32,7 @@ yarn-error.log*
3132
# vercel
3233
.vercel
3334

34-
.env
35+
# VSCode
36+
.vscode
37+
38+
.env

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
};

lib/styles.js

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
import {
2+
Grid,
3+
Card,
4+
CardHeader,
5+
CardContent,
6+
TextField,
7+
Button,
8+
Typography,
9+
IconButton,
10+
MenuItem,
11+
Select,
12+
FormControl,
13+
} from "@mui/material";
14+
15+
import { styled } from "@mui/material/styles";
16+
17+
export const StyledCard = styled(Card)(({ theme }) => ({
18+
background:
19+
"linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 15%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1))",
20+
boxShadow: "4px 4px 30px rgba(255, 255, 255, 0.1)",
21+
backdropFilter: "blur(4.7px)",
22+
color: "white",
23+
borderRadius: "12px",
24+
width: "100%",
25+
height: "100%",
26+
margin: "auto",
27+
display: "flex",
28+
flexDirection: "column",
29+
}));
30+
31+
export const StyledCardHeader = styled(CardHeader)(({ theme }) => ({
32+
textAlign: "center",
33+
color: "#fff",
34+
}));
35+
36+
export const StyledCardContent = styled(CardContent)(({ theme }) => ({
37+
flexGrow: 1,
38+
display: "flex",
39+
flexDirection: "column",
40+
justifyContent: "space-between",
41+
}));
42+
43+
export const StyledGrid = styled(Grid)(({ theme }) => ({
44+
height: "100vh",
45+
}));
46+
47+
export const StyledTypography = styled(Typography)(({ theme }) => ({
48+
color: "#fff",
49+
fontWeight: "bold",
50+
}));
51+
52+
export const StyledTextField = styled(TextField)(({ theme }) => ({
53+
"& label": {
54+
color: "#fff",
55+
fontWeight: "bold",
56+
},
57+
"& input": {
58+
color: "#fff",
59+
fontWeight: "bold",
60+
},
61+
"& .MuiInput-underline:before": {
62+
borderBottomColor: "#fff",
63+
},
64+
}));
65+
66+
export const StyledButton = styled(Button)(({ theme }) => ({
67+
background: "transparent",
68+
backdropFilter: "blur(5px)",
69+
color: "white",
70+
fontWeight: "bold",
71+
"&:hover": {
72+
background: "rgba(255, 255, 255, 0.3)",
73+
color: "#fff",
74+
},
75+
}));
76+
77+
export const StyledIconButton = styled(IconButton)(({ theme }) => ({
78+
radio: {
79+
"&$checked": {
80+
color: "#4B8DF8",
81+
},
82+
},
83+
checked: {},
84+
color: "#fff",
85+
}));
86+
87+
export const StyledFormControl = styled(FormControl)(({ theme }) => ({
88+
minWidth: "300px",
89+
"& .MuiSelect-select": {
90+
paddingRight: theme.spacing(4),
91+
},
92+
"& .MuiSelect-icon": {
93+
right: 0,
94+
},
95+
}));
96+
97+
export const StyledMenuItem = styled(MenuItem)(({ theme }) => ({
98+
color: theme.palette.secondary.main,
99+
backgroundColor: theme.palette.background.paper,
100+
"&:hover": {
101+
backgroundColor: theme.palette.secondary.light,
102+
},
103+
"&.Mui-selected": {
104+
backgroundColor: theme.palette.primary.main,
105+
color: theme.palette.primary.contrastText,
106+
},
107+
"&.Mui-selected:hover": {
108+
backgroundColor: theme.palette.primary.light,
109+
},
110+
}));
111+
112+
export const StyledSelect = styled(Select)(({ theme }) => ({
113+
color: "white",
114+
"&.MuiSelect-select": {
115+
paddingRight: theme.spacing(2),
116+
"&:focus": {
117+
backgroundColor: "transparent",
118+
},
119+
},
120+
"& .MuiSelect-icon": {
121+
color: theme.palette.secondary.main,
122+
},
123+
}));

0 commit comments

Comments
 (0)