Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Changes to Navbar across all pages #909

Merged
merged 24 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0e2d29b
Merge branch 'mansiruhil13:main' into main
KhawajaFashi Oct 14, 2024
608b067
Ui change
Oct 14, 2024
2d7f05f
Merge branch 'main' of https://github.com/KhawajaFashi/Bobble-AI
Oct 14, 2024
9a34447
Merge remote-tracking branch 'upstream/main'
Oct 14, 2024
4a552dc
UI
Oct 14, 2024
2f64801
index.html
Oct 15, 2024
f650dd8
OAuth Authentication
Oct 15, 2024
f22b99a
Merge branch 'home_ui' of https://github.com/KhawajaFashi/Bobble-AI i…
Oct 15, 2024
777cc55
Merge remote-tracking branch 'upstream/main'
Oct 15, 2024
d6bb4ac
Merge branch 'home_ui' of https://github.com/KhawajaFashi/Bobble-AI
Oct 15, 2024
881646b
ui
Oct 15, 2024
dbf0c62
Navbar UI Changes Dark Mode addition and other UI changes
Oct 15, 2024
2f7b7cc
Merge branch 'main' into main
KhawajaFashi Oct 15, 2024
691058c
Nav changes
Oct 15, 2024
dbda257
Merge branch 'main' into main
KhawajaFashi Oct 16, 2024
7660c33
Merge branch 'main' into main
KhawajaFashi Oct 16, 2024
3c5b185
Merge branch 'main' of https://github.com/KhawajaFashi/Bobble-AI
Oct 17, 2024
4c9f648
Merge branch 'main' of https://github.com/KhawajaFashi/Bobble-AI
Oct 17, 2024
be24b3b
nearby.html
Oct 17, 2024
6ddd969
Merge branch 'main' into UI_change
KhawajaFashi Oct 17, 2024
b5f3ab4
Merge branch 'main' of https://github.com/mansiruhil13/Bobble-AI into…
Oct 17, 2024
2e5d98f
Sycned with upstream/original
Oct 17, 2024
d6cc452
Merge branch 'UI_change' of https://github.com/KhawajaFashi/Bobble-AI…
Oct 17, 2024
644aa61
Synced changes with upstream
Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
828 changes: 131 additions & 697 deletions Feedback.html

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions Firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.14.1/firebase-app.js";
import { getAuth, GoogleAuthProvider, signInWithPopup } from "https://www.gstatic.com/firebasejs/10.14.1/firebase-auth.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyBKWr4Q0_bTP-9-dnviFlyesJITE1K9LxI",
authDomain: "bobble-ai-6c878.firebaseapp.com",
projectId: "bobble-ai-6c878",
storageBucket: "bobble-ai-6c878.appspot.com",
messagingSenderId: "389012742453",
appId: "1:389012742453:web:f212dbd734d078e5b02c7c"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
auth.languageCode = 'en';
const provider = new GoogleAuthProvider();

const google_login = document.getElementById("google_btn")
google_login.addEventListener('click', () => {
signInWithPopup(auth, provider)
.then((result) => {
// This gives you a Google Access Token. You can use it to access the Google API.
const credential = GoogleAuthProvider.credentialFromResult(result);
// The signed-in user info.
const user = result.user;
console.log(user)
window.location.href = "index.html"
}).catch((error) => {
// Handle Errors here.
const errorCode = error.code;
const errorMessage = error.message;
// ...
});
})
Loading