Skip to content

Commit

Permalink
👨‍🔧 Fix authDomain configuration and enhance TestPrep styles with bac…
Browse files Browse the repository at this point in the history
…kground and text improvements
  • Loading branch information
RushilMahadevu committed Jan 28, 2025
1 parent 19067c7 commit 980152f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {

const firebaseConfig = {
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
authDomain: `${import.meta.env.VITE_FIREBASE_AUTH_DOMAIN}.firebaseapp.com`,
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
Expand Down Expand Up @@ -61,8 +61,8 @@ const loadGPAHistory = async (userId) => {
console.error("No user ID provided or user not authenticated");
return [];
}

try {

const userGPARef = collection(db, "users", userId, "gpaHistory");
const snapshot = await getDocs(userGPARef);
const history = snapshot.docs.map((doc) => ({
Expand Down
27 changes: 25 additions & 2 deletions src/AcademicPlanning/TestPrep/TestPrep.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,29 @@
padding: 2rem 1rem;
}

.container::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: radial-gradient(#ffffff 1px, transparent 1px),
radial-gradient(#ffffff 1px, transparent 1px);
background-size: 50px 50px;
background-position: 0 0, 25px 25px;
opacity: 0.08;
pointer-events: none;
}

.container h1 {
color: var(--text-color);
margin-bottom: 2rem;
text-align: center;
font-size: 2.5rem;
text-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
}

.header {
display: flex;
justify-content: space-between;
Expand All @@ -22,8 +45,8 @@
}

.backButton {
position: static; /* Remove absolute positioning */
margin: 0; /* Remove margins */
position: static;
margin: 0;
background-color: #7c3aed;
color: white;
padding: 0.75rem 1.5rem;
Expand Down

0 comments on commit 980152f

Please sign in to comment.