- Timestamp:
- 12/21/25 18:36:39 (9 months ago)
- Branches:
- master
- Children:
- 997d094
- Parents:
- b67f274
- Location:
- src
- Files:
-
- 6 edited
-
app/page.tsx (modified) (3 diffs)
-
app/students/profile/page.tsx (modified) (1 diff)
-
app/students/semesters/page.tsx (modified) (1 diff)
-
app/students/subjects/page.tsx (modified) (1 diff)
-
components/exams.tsx (modified) (1 diff)
-
lib/auth.ts (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/app/page.tsx
rb67f274 r90f7842 49 49 {/* Login Form */} 50 50 <div className="flex items-center justify-center min-h-[calc(100vh-160px)] p-4"> 51 <div className="w-full max-w-md"> 52 {/* Login Card */} 53 <div className="bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden"> 54 {/* Header */} 55 <div className="bg-primary text-white px-8 py-6 text-center"> 51 <div className="w-full max-w-5xl"> 52 <div className="grid grid-cols-1 gap-6 lg:grid-cols-[24rem_28rem_24rem] lg:items-start lg:justify-center"> 53 {/* Sticky Notes */} 54 <div className="w-full flex flex-col gap-4"> 55 <div className="bg-yellow-100 border border-yellow-200 rounded-xl shadow-sm p-5"> 56 <div className="text-sm font-bold text-gray-900 mb-2">Login for Student</div> 57 <div className="text-xs text-gray-800 whitespace-pre-wrap font-mono"> 58 {`"email":"boris@example.com", 59 "password":"your-password-here",`} 60 </div> 61 <div className="mt-3 text-xs text-gray-700"> 62 may take up to 30 seconds afte long inactivity 63 </div> 64 </div> 65 66 <div className="bg-yellow-100 border border-yellow-200 rounded-xl shadow-sm p-5"> 67 <div className="text-sm font-bold text-gray-900 mb-2">Login for Professor</div> 68 <div className="text-xs text-gray-800 whitespace-pre-wrap font-mono"> 69 {`"email":"andonov@gmail.com", 70 "password":"123lol456",`} 71 </div> 72 </div> 73 </div> 74 75 {/* Login Card Column */} 76 <div className="w-full max-w-md lg:max-w-none lg:w-[28rem] mx-auto"> 77 {/* Login Card */} 78 <div className="bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden"> 79 {/* Header */} 80 <div className="bg-primary text-white px-8 py-6 text-center"> 56 81 <div className="mb-4"> 57 82 <div className="inline-flex items-center justify-center w-16 h-16 bg-white bg-opacity-20 rounded-full"> … … 170 195 </p> 171 196 </div> 172 </div> 173 174 {/* Additional Info */} 175 <div className="mt-6 text-center"> 176 <div className="inline-flex items-center gap-2 px-4 py-2 bg-white bg-opacity-80 rounded-lg shadow-sm"> 177 <FontAwesomeIcon icon={faGraduationCap} className="text-primary" /> 178 <span className="text-sm text-gray-600"> 179 Студентски информационен систем 180 </span> 197 </div> 198 199 {/* Additional Info */} 200 <div className="mt-6 text-center"> 201 <div className="inline-flex items-center gap-2 px-4 py-2 bg-white bg-opacity-80 rounded-lg shadow-sm"> 202 <FontAwesomeIcon icon={faGraduationCap} className="text-primary" /> 203 <span className="text-sm text-gray-600"> 204 Студентски информационен систем 205 </span> 206 </div> 207 </div> 208 </div> 209 210 {/* Right spacer column (keeps login centered) */} 211 <div className="hidden lg:block" /> 181 212 </div> 182 213 </div> … … 184 215 </div> 185 216 </div> 186 </div>187 217 ); 188 218 } -
src/app/students/profile/page.tsx
rb67f274 r90f7842 146 146 147 147 try { 148 const response = await fetch('http ://localhost:5147/api/user/getUser', {148 const response = await fetch('https://iknow-api.onrender.com/api/user/getUser', { 149 149 method: 'GET', 150 150 headers: { -
src/app/students/semesters/page.tsx
rb67f274 r90f7842 128 128 129 129 try { 130 const response = await fetch('http ://localhost:5147/api/user/getSemesters', {130 const response = await fetch('https://iknow-api.onrender.com/api/user/getSemesters', { 131 131 method: 'GET', 132 132 headers: { -
src/app/students/subjects/page.tsx
rb67f274 r90f7842 192 192 193 193 try { 194 const response = await fetch('http ://localhost:5147/api/user/getSubjects', {194 const response = await fetch('https://iknow-api.onrender.com/api/user/getSubjects', { 195 195 method: 'GET', 196 196 headers: { -
src/components/exams.tsx
rb67f274 r90f7842 54 54 55 55 try { 56 const response = await fetch('http ://localhost:5147/api/user/getPassedSubjects', {56 const response = await fetch('https://iknow-api.onrender.com/api/user/getPassedSubjects', { 57 57 method: 'GET', 58 58 headers: { -
src/lib/auth.ts
rb67f274 r90f7842 74 74 75 75 export async function login(params: { email: string; password: string }) { 76 const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL ?? 'http ://localhost:5147';76 const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL ?? 'https://iknow-api.onrender.com'; 77 77 78 78 const response = await fetch(`${baseUrl}/api/auth/login`, {
Note:
See TracChangeset
for help on using the changeset viewer.
