Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

footer fix #51

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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