feat: Update login navigation and authentication flow
- Changed navigation from '/editor' to '/tests' after successful login. - Introduced token state management in AuthContext for better handling of authentication. - Updated login function to store JWT instead of Google token. - Added error handling for login and test fetching processes. style: Enhance UI with new footer and test list styles - Added a footer component with copyright information. - Created a new TestList component with improved styling and animations. - Implemented responsive design for test cards and filter tabs. - Added loading and error states for better user experience. fix: Improve API interaction for test fetching and password verification - Refactored API calls to use a centralized studentApi utility. - Enhanced error handling for API responses, including unauthorized access. - Implemented password verification for protected tests before starting them.
This commit is contained in:
@@ -1225,6 +1225,8 @@ body {
|
||||
padding: 8px 12px;
|
||||
background-color: #252526;
|
||||
border-bottom: 1px solid rgba(128, 128, 128, 0.35);
|
||||
position: relative;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
.editor-controls {
|
||||
@@ -1259,6 +1261,8 @@ body {
|
||||
.editor-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
position: relative;
|
||||
z-index: 150;
|
||||
}
|
||||
|
||||
.run-btn {
|
||||
@@ -1672,4 +1676,19 @@ body {
|
||||
/* Make sure the footer appears on top of other elements */
|
||||
footer {
|
||||
z-index: 1000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Test List Animations */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from { transform: translateY(20px); opacity: 0; }
|
||||
to { transform: translateY(0); opacity: 1; }
|
||||
}
|
||||
|
||||
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
|
||||
.animate-slideUp { animation: slideUp 0.3s ease-out; }
|
||||
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
|
||||
Reference in New Issue
Block a user