diff --git a/components/footer.js b/components/footer.js
index 178fb28..e88408f 100755
--- a/components/footer.js
+++ b/components/footer.js
@@ -10,8 +10,7 @@ export default function Footer() {
backgroundColor: "#fcfcfc",
width: "100%",
height: "80px",
- position: "fixed",
- bottom: 0,
+ position: "absolute",
display: "flex",
alignItems: "center",
justifyContent: "center",
diff --git a/pages/resources.js b/pages/resources.js
index 99b02e6..45f756a 100755
--- a/pages/resources.js
+++ b/pages/resources.js
@@ -2,14 +2,27 @@ import React, { useState, useEffect } from "react";
import Footer from "@/components/footer";
import Head from "next/head";
import Link from "next/link";
+import { doGetSession } from "@/utilities";
+import { Box, Typography } from "@mui/material";
function ResourcesKnhts() {
const [uploadedFiles, setUploadedFiles] = useState([]);
const [selectedFiles, setSelectedFiles] = useState([]);
const [uploadSuccess, setUploadSuccess] = useState(false);
const [uploadError, setUploadError] = useState(null);
+ const [isLoggedIn, setIsLoggedIn] = useState(false);
useEffect(() => {
+ const checkLoginStatus = async () => {
+ const sessionData = await doGetSession();
+ setIsLoggedIn(sessionData !== null);
+ };
+
+ checkLoginStatus();
+ }, []);
+
+ useEffect(() => {
+ //TODO,
// Initialize IndexedDB database
const request = indexedDB.open("uploadedFilesDB", 1);
@@ -230,17 +243,25 @@ function ResourcesKnhts() {
)}
-
- You can also add resources by uploading files. -
+