Skip to content

Commit

Permalink
add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayThomble committed Feb 11, 2023
1 parent 501582d commit 65a2150
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion react-frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function App() {
<Route path="*" element={<Home />} />
<Route path={"/history"} element={<History />} />
</Routes>
{/*<Footer />*/}
<Footer />
</UserContext.Provider>
</BrowserRouter>
</div>
Expand Down
19 changes: 8 additions & 11 deletions react-frontend/src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import React from "react";
import { Container } from "react-bootstrap";

function Footer(props) {
return (
// footer using react-bootstrap
<div>
<footer className="footer">
<div className="container">
<div className="row justify-content-center">
<div className="col-auto">
<p className="text-muted">Developed By Dhananjay Thomble</p>
</div>
</div>
</div>
</footer>
</div>
<Container
fluid
className="text-center bg-secondary fixed-bottom
text-white text-uppercase p-2"
>
URL Shortener App by <b> Dhananjay </b>
</Container>
);
}

Expand Down
16 changes: 8 additions & 8 deletions react-frontend/src/components/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function History() {
};

return (
<Container className={"pt-4"}>
<Container className={"pb-5"}>
<ToastContainer
position="top-center"
autoClose={3000}
Expand All @@ -52,19 +52,19 @@ function History() {
pauseOnHover
theme="light"
/>
{history.map((data) => {
return (
<Row className={"my-1"}>
<Col>
<Row className={"my-1"}>
{history.map((data) => {
return (
<Col md={6} className={"p-1"}>
<HistoryCard
shortUrl={data.shortUrl}
originalUrl={data.originalUrl}
visitCount={data.visitCount || 0}
/>
</Col>
</Row>
);
})}
);
})}
</Row>
</Container>
);
}
Expand Down

0 comments on commit 65a2150

Please sign in to comment.