Skip to content

Commit

Permalink
Footer Added
Browse files Browse the repository at this point in the history
  • Loading branch information
AswinAsok committed Apr 15, 2021
1 parent 5a0f111 commit 1946f5c
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Components/App/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import Display from "../Display/Display";
import Footer from '../Footer/Footer';
import Header from "../Header/Header";
import SearchBar from "../SearchBar/SearchBar";
import "./App.css";
Expand All @@ -17,6 +18,8 @@ function App() {
<SearchBar setInput={setInput} input={input} />

<Display input={input}/>

<Footer />

</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Display/Display.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const Display = ({ input }) => {
<p className="username">Error Message: {userdata.message}</p>
)

}
}
})()}
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions src/Components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
a {
color: inherit;
text-decoration: none;
}

.Footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
color: white;
text-align: center;
}
38 changes: 38 additions & 0 deletions src/Components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import Typography from "@material-ui/core/Typography";
import './Footer.css';

const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
},
menuButton: {
marginRight: theme.spacing(2),
},
title: {
flexGrow: 1,
},
}));

const Footer = () => {
const classes = useStyles();
return (
<div className="Footer">
<AppBar position="static">
<Toolbar>

<Typography variant="h7" className={classes.title}>
Made with Passion 💙 by Aswin Asok
<a href = "https://github.com/AswinAsok/Profile-Retriever"> <br></br>Star 🌟 on GitHub</a>
</Typography>

</Toolbar>
</AppBar>
</div>
);
};

export default Footer;

0 comments on commit 1946f5c

Please sign in to comment.