From af7ad89c7e365702a0cf61f1acda9fe916bea375 Mon Sep 17 00:00:00 2001 From: Szabina Korbai Date: Fri, 18 Oct 2024 10:16:07 +0300 Subject: [PATCH 01/13] Made the banner in the background of user profile taller --- frontend/pokedex_app/src/pages/profile.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pokedex_app/src/pages/profile.jsx b/frontend/pokedex_app/src/pages/profile.jsx index e547bb1..f71684d 100644 --- a/frontend/pokedex_app/src/pages/profile.jsx +++ b/frontend/pokedex_app/src/pages/profile.jsx @@ -42,10 +42,10 @@ const Profile = () => {
- pokemon in the background + pokemon in the background
User Profile + className="rounded-md lg:w-[12rem] lg:h-[12rem] md:w-[10rem] md:h-[10rem] sm:w-[8rem] sm:h-[8rem] xs:w-[7rem] xs:h-[7rem] outline outline-2 outline-offset-2 outline-rose-900 relative lg:bottom-[5rem] sm:bottom-[4rem] xs:bottom-[3rem]" />

{testData.username}

From 8cdf7c88708023b60c663efbbacaf5cb55288b43 Mon Sep 17 00:00:00 2001 From: Szabina Korbai Date: Fri, 18 Oct 2024 12:39:31 +0300 Subject: [PATCH 02/13] Removed not null requirement from email addresses for now --- backend/database/init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/database/init.sql b/backend/database/init.sql index bcb40a8..c04fda3 100644 --- a/backend/database/init.sql +++ b/backend/database/init.sql @@ -3,7 +3,7 @@ CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR(100) UNIQUE NOT NULL, - email VARCHAR(100) UNIQUE NOT NULL, + email VARCHAR(100) UNIQUE, password VARCHAR(100) NOT NULL, -- Encrypted password role VARCHAR(20) DEFAULT 'user', -- 'guest', 'user', 'admin' created_at TIMESTAMP DEFAULT NOW(), From 16c55cc3a43e1c258b39383be543ce36d193b6d7 Mon Sep 17 00:00:00 2001 From: Szabina Korbai Date: Fri, 18 Oct 2024 16:09:03 +0300 Subject: [PATCH 03/13] Started implementing a page listing users. Currently working on: pagination --- frontend/pokedex_app/src/App.jsx | 2 + .../src/assets/community_placeholder.json | 53 +++++++++++ .../pokedex_app/src/components/Community.jsx | 91 +++++++++++++++++++ .../src/components/Navbar/Navbar.jsx | 3 + .../src/components/RegistrationForm.jsx | 4 + frontend/pokedex_app/src/pages/profile.jsx | 2 +- 6 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 frontend/pokedex_app/src/assets/community_placeholder.json create mode 100644 frontend/pokedex_app/src/components/Community.jsx diff --git a/frontend/pokedex_app/src/App.jsx b/frontend/pokedex_app/src/App.jsx index f5d94e9..e8a53f9 100644 --- a/frontend/pokedex_app/src/App.jsx +++ b/frontend/pokedex_app/src/App.jsx @@ -11,6 +11,7 @@ import Footer from './components/footer'; import PrivacyPolicy from './pages/PrivacyPolicy'; import TermsOfService from './pages/TermsOfService'; import ErrorBoundary from './ErrorBoundary'; +import Community from "./components/Community"; function App() { return ( @@ -33,6 +34,7 @@ function App() { } /> } /> } /> + }/>