Skip to content

Commit

Permalink
Merge pull request #51 from J4Web/footer-bug
Browse files Browse the repository at this point in the history
footer fix
  • Loading branch information
mujibsayyad authored Oct 22, 2023
2 parents 26fd0df + 17bae46 commit a927011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function App() {
// console.log(isLoggedIn);

return (
<div className='conatainer min-h-screen mx-auto'>
<div className='flex flex-col h-screen w-full justify-between'>
<Navbar />
<Routes>
<Route path='oauth' element={<LoginCallback />} />
Expand Down Expand Up @@ -78,7 +78,7 @@ function App() {
<Route path='/f' element={<Error500 />} />
<Route path='*' element={<Error404 />} />
</Routes>
{!loading && pathname !== '/' && <FooterPage />}
{!loading && pathname !== '/' && pathname!=='/all-posts' && <FooterPage />}
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/FooterPage/FooterPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const FooterPage = () => {
const year = new Date().getFullYear();

return (
<footer className='h-auto bg-slate-700 text-gray-700 w-full'>
<footer className='h-auto bg-slate-700 text-gray-700 w-full static bottom-0'>
<hr />
<div className='px-5 py-4 mx-auto flex items-center sm:flex-row flex-col'>
<a className='flex title-font font-medium items-center md:justify-start justify-center text-gray-900'>
Expand Down

0 comments on commit a927011

Please sign in to comment.