diff --git a/client/src/App.css b/client/src/App.css
index 48bc08d..cbdebfa 100644
--- a/client/src/App.css
+++ b/client/src/App.css
@@ -12,6 +12,18 @@ label.total_volunteers_label{
margin: 10px;
}
+body.public_layout {
+
+ display: flex;
+ flex-direction: column;
+ min-height: 100vh;
+
+}
+
+main.public_layout {
+ flex-grow: 1;
+}
+
/* 992px expand:lg */
@media screen and (max-width: 992px) {
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 7fb5a9d..509168a 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -1,28 +1,25 @@
-import { Outlet } from 'react-router-dom'
-import useAuth from '../hooks/useAuth'
-import PublicHeader from './PublicHeader'
-import { ToastContainer } from 'react-toastify'
-import PublicFooter from './PublicFooter'
+import { Outlet } from "react-router-dom";
+import useAuth from "../hooks/useAuth";
+import PublicHeader from "./PublicHeader";
+import { ToastContainer } from "react-toastify";
+import PublicFooter from "./PublicFooter";
const Layout = () => {
+ const { volunId, role } = useAuth();
- const {volunId, role}= useAuth()
+ const displayPublic = !volunId && !role;
- const displayPublic = !volunId && !role
+ return (
+
+ {displayPublic && }
+
- return (
-
-
- {displayPublic && }
-
-
-
-
-
-
-
- {displayPublic && }
-
- )
-}
-export default Layout
\ No newline at end of file
+
+
+
+
+ {displayPublic && }
+
+ );
+};
+export default Layout;
diff --git a/client/src/components/PublicEvents.jsx b/client/src/components/PublicEvents.jsx
index 3ef2cac..5a12d21 100644
--- a/client/src/components/PublicEvents.jsx
+++ b/client/src/components/PublicEvents.jsx
@@ -9,7 +9,8 @@ import SortedEventsList from "../features/event/sort/SortedEventsList";
import FilteredEventList from "../features/event/filter/FilteredEventList";
const PublicEvents = () => {
- const authData = useAuth();
+
+// const authData = useAuth();
const content = (
<>
@@ -23,7 +24,7 @@ const PublicEvents = () => {
>
);
- console.log("guest info: ", authData);
+// console.log("guest info: ", authData);
return content;
};
diff --git a/client/src/components/PublicPage.jsx b/client/src/components/PublicPage.jsx
index eaebc99..ca6b025 100644
--- a/client/src/components/PublicPage.jsx
+++ b/client/src/components/PublicPage.jsx
@@ -16,8 +16,9 @@ const PublicPage = () => {
-
- or
+
+ or
+