From 9402adddc813d5b749cfb00229a0054a91a98e1c Mon Sep 17 00:00:00 2001 From: Sawan Date: Wed, 6 Nov 2024 09:24:24 +0530 Subject: [PATCH] Maked profile page responsive and also fixes some issues in login page --- frontend/src/pages/BloggerProfile.js | 12 +-- frontend/src/pages/Login.js | 18 +++++ frontend/src/styles/output.css | 115 +++++++++++++++------------ 3 files changed, 90 insertions(+), 55 deletions(-) diff --git a/frontend/src/pages/BloggerProfile.js b/frontend/src/pages/BloggerProfile.js index 5e4e87c3..00fe50ac 100644 --- a/frontend/src/pages/BloggerProfile.js +++ b/frontend/src/pages/BloggerProfile.js @@ -20,10 +20,10 @@ let drafts = loadDrafts(); export function renderProfilePage(container) { container.innerHTML = ` -
-
+
+
-
+

Draft a New Blog

Create and save your blog drafts below.

@@ -42,9 +42,9 @@ export function renderProfilePage(container) {
-
- - Profile +
+ + Profile

${userDetails.name}

${userDetails.email}

diff --git a/frontend/src/pages/Login.js b/frontend/src/pages/Login.js index af0fa715..819ab87a 100644 --- a/frontend/src/pages/Login.js +++ b/frontend/src/pages/Login.js @@ -1,4 +1,22 @@ // Function to render the login UI +import { initializeApp } from "firebase/app"; +import { getAuth, signInWithPopup, GoogleAuthProvider, onAuthStateChanged, signOut as firebaseSignOut } from "firebase/auth"; + +// Initialize Firebase +const firebaseConfig = { + apiKey: "AIzaSyDwowmzH0skVhieH3KPgIP8_vQBzhJmIi4", + authDomain: "wordwise-d1607.firebaseapp.com", + projectId: "wordwise-d1607", + storageBucket: "wordwise-d1607.appspot.com", + messagingSenderId: "426579758621", + appId: "1:426579758621:web:5bc883cd5eea3a416940f4", + measurementId: "G-QL9ZF6G3HH" +}; + +const app = initializeApp(firebaseConfig); +const auth = getAuth(app); +const googleAuthProvider = new GoogleAuthProvider(); + export function renderLogin(container) { container.innerHTML = `