diff --git a/client/index.html b/client/index.html
index ad34c80..43e4aa0 100644
--- a/client/index.html
+++ b/client/index.html
@@ -2,7 +2,7 @@
-
+
Bikelane - Web
diff --git a/client/src/assets/bikelane-icon.png b/client/public/favicon.png
similarity index 100%
rename from client/src/assets/bikelane-icon.png
rename to client/public/favicon.png
diff --git a/client/src/App.tsx b/client/src/App.tsx
index 4263df3..b7d615c 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -7,28 +7,42 @@ function App() {
return (
-
-
+
+
- # |
- Username |
- First name |
- Last name |
- Email |
- Password |
- Created |
+
+ #
+ |
+
+ Username
+ |
+
+ First name
+ |
+
+ Last name
+ |
+
+ Email
+ |
+
+ Password
+ |
+
+ Created
+ |
-
+
{users.map((user: any, idx: number) => (
-
- {idx + 1} |
- {user.username} |
- {user.first_name} |
- {user.last_name} |
- {user.email} |
- {user.password} |
- {user.created} |
+
+ {idx + 1} |
+ {user.username} |
+ {user.first_name} |
+ {user.last_name} |
+ {user.email} |
+ {user.password} |
+ {user.created} |
))}
diff --git a/client/src/assets/bicycle-solid-full.svg b/client/src/assets/bicycle-solid-full.svg
new file mode 100644
index 0000000..bdad4ca
--- /dev/null
+++ b/client/src/assets/bicycle-solid-full.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/client/src/assets/circle-user-solid-full.svg b/client/src/assets/circle-user-solid-full.svg
new file mode 100644
index 0000000..a3a1822
--- /dev/null
+++ b/client/src/assets/circle-user-solid-full.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/client/src/components/LoginCard.tsx b/client/src/components/LoginCard.tsx
index f13ae78..8a80d32 100644
--- a/client/src/components/LoginCard.tsx
+++ b/client/src/components/LoginCard.tsx
@@ -42,12 +42,13 @@ const LoginCard: React.FC = ({ onClose }) => {
.then((users) => {
localStorage.setItem("users", JSON.stringify(users));
});
+ document.location.reload();
} else if (response.status === 401) {
alert("Invalid credentials");
}
})
.catch((error) => {
- console.error("Login failed:", error);
+ console.log("Login failed: ", error);
});
}}
className="space-y-4 text-black"
@@ -80,15 +81,19 @@ const LoginCard: React.FC = ({ onClose }) => {
className="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
-
+ {Cookies.get("name") ? (
+
+ ) : (
+
+ )}
{Cookies.get("name") ? (