Skip to content

Commit 4f548b6

Browse files
committed
style: Update loading spinner and text styles in AdminRoute, CustomerRoute, and ProtectedRoute components
1 parent a01b1bb commit 4f548b6

File tree

4 files changed

+77
-43
lines changed

4 files changed

+77
-43
lines changed

src/components/AdminRoute.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ const AdminRoute = ({ children }) => {
1414
return (
1515
<Container className="d-flex justify-content-center align-items-center" style={{ minHeight: '100vh' }}>
1616
<div className="text-center">
17-
<Spinner animation="border" variant="primary" />
18-
<p className="mt-3">Loading...</p>
17+
<Spinner
18+
animation="border"
19+
style={{
20+
color: '#1976d2',
21+
width: '3rem',
22+
height: '3rem',
23+
borderWidth: '4px'
24+
}}
25+
/>
26+
<p className="mt-3" style={{ color: '#0d47a1', fontSize: '1.1rem', fontWeight: '500' }}>Loading...</p>
1927
</div>
2028
</Container>
2129
);

src/components/BackendIntegrationTest.js

Lines changed: 47 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const BackendIntegrationTest = () => {
6767
const getStatusColor = (status) => {
6868
switch (status) {
6969
case 'success': return '#28a745';
70-
case 'warning': return '#ffc107';
70+
case 'warning': return '#f59e0b';
7171
case 'error': return '#dc3545';
7272
default: return '#6c757d';
7373
}
@@ -151,97 +151,107 @@ const BackendIntegrationTest = () => {
151151
const styles = {
152152
container: {
153153
minHeight: '100vh',
154-
backgroundColor: '#f8f9fa',
154+
background: 'linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)',
155155
padding: '40px 20px',
156156
fontFamily: 'Arial, sans-serif'
157157
},
158158
card: {
159159
maxWidth: '900px',
160160
margin: '0 auto',
161161
backgroundColor: 'white',
162-
borderRadius: '8px',
163-
boxShadow: '0 2px 10px rgba(0,0,0,0.1)',
164-
padding: '30px'
162+
borderRadius: '12px',
163+
boxShadow: '0 4px 20px rgba(0,0,0,0.1)',
164+
padding: '40px',
165+
border: '1px solid #e2e8f0'
165166
},
166167
title: {
167-
color: '#333',
168+
color: '#1a237e',
168169
marginBottom: '10px',
169-
fontSize: '28px'
170+
fontSize: '32px',
171+
fontWeight: 'bold'
170172
},
171173
subtitle: {
172174
color: '#666',
173-
marginBottom: '20px',
175+
marginBottom: '30px',
174176
fontSize: '16px'
175177
},
176178
button: {
177-
backgroundColor: '#007bff',
179+
background: 'linear-gradient(135deg, #1a237e 0%, #0d47a1 100%)',
178180
color: 'white',
179181
border: 'none',
180-
borderRadius: '5px',
181-
padding: '12px 30px',
182+
borderRadius: '8px',
183+
padding: '14px 32px',
182184
fontSize: '16px',
185+
fontWeight: '600',
183186
cursor: 'pointer',
184-
marginBottom: '20px',
185-
transition: 'background-color 0.3s'
187+
marginBottom: '25px',
188+
transition: 'all 0.3s ease',
189+
boxShadow: '0 2px 8px rgba(25, 118, 210, 0.3)'
186190
},
187191
info: {
188-
backgroundColor: '#e7f3ff',
189-
padding: '15px',
190-
borderRadius: '5px',
191-
borderLeft: '4px solid #007bff',
192-
marginBottom: '20px'
192+
background: 'rgba(25, 118, 210, 0.08)',
193+
padding: '20px',
194+
borderRadius: '8px',
195+
borderLeft: '4px solid #1976d2',
196+
marginBottom: '25px'
193197
},
194198
results: {
195199
marginTop: '30px'
196200
},
197201
resultsTitle: {
198-
color: '#333',
199-
marginBottom: '15px'
202+
color: '#1a237e',
203+
marginBottom: '20px',
204+
fontSize: '24px',
205+
fontWeight: 'bold'
200206
},
201207
resultItem: {
202208
backgroundColor: '#f8f9fa',
203-
padding: '15px',
204-
borderRadius: '5px',
209+
padding: '20px',
210+
borderRadius: '8px',
205211
borderLeft: '4px solid',
206-
marginBottom: '15px'
212+
marginBottom: '15px',
213+
boxShadow: '0 2px 4px rgba(0,0,0,0.05)'
207214
},
208215
resultHeader: {
209216
display: 'flex',
210217
alignItems: 'center',
211-
gap: '10px',
212-
marginBottom: '8px'
218+
gap: '12px',
219+
marginBottom: '10px'
213220
},
214221
testName: {
215-
fontSize: '16px',
216-
color: '#333'
222+
fontSize: '18px',
223+
color: '#1a237e',
224+
fontWeight: 'bold'
217225
},
218226
resultMessage: {
219227
color: '#555',
220-
margin: '5px 0'
228+
margin: '8px 0',
229+
fontSize: '15px'
221230
},
222231
details: {
223-
marginTop: '10px'
232+
marginTop: '12px'
224233
},
225234
summary: {
226235
cursor: 'pointer',
227-
color: '#007bff',
236+
color: '#1976d2',
228237
fontSize: '14px',
229238
fontWeight: 'bold'
230239
},
231240
pre: {
232241
backgroundColor: '#f4f4f4',
233-
padding: '10px',
234-
borderRadius: '4px',
242+
padding: '15px',
243+
borderRadius: '6px',
235244
overflow: 'auto',
236245
fontSize: '12px',
237-
marginTop: '10px'
246+
marginTop: '10px',
247+
border: '1px solid #e2e8f0'
238248
},
239249
instructions: {
240250
marginTop: '30px',
241-
backgroundColor: '#fff3cd',
242-
padding: '15px',
243-
borderRadius: '5px',
244-
borderLeft: '4px solid #ffc107'
251+
background: 'rgba(245, 158, 11, 0.1)',
252+
padding: '20px',
253+
borderRadius: '8px',
254+
borderLeft: '4px solid #f59e0b'
245255
}
246256
};
247257

src/components/CustomerRoute.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ const CustomerRoute = ({ children }) => {
1414
return (
1515
<Container className="d-flex justify-content-center align-items-center" style={{ minHeight: '100vh' }}>
1616
<div className="text-center">
17-
<Spinner animation="border" variant="primary" />
18-
<p className="mt-3">Loading...</p>
17+
<Spinner
18+
animation="border"
19+
style={{
20+
color: '#1976d2',
21+
width: '3rem',
22+
height: '3rem',
23+
borderWidth: '4px'
24+
}}
25+
/>
26+
<p className="mt-3" style={{ color: '#0d47a1', fontSize: '1.1rem', fontWeight: '500' }}>Loading...</p>
1927
</div>
2028
</Container>
2129
);

src/components/ProtectedRoute.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ const ProtectedRoute = ({ children }) => {
1010
return (
1111
<Container className="d-flex justify-content-center align-items-center" style={{ minHeight: '100vh' }}>
1212
<div className="text-center">
13-
<Spinner animation="border" variant="primary" />
14-
<p className="mt-3">Loading...</p>
13+
<Spinner
14+
animation="border"
15+
style={{
16+
color: '#1976d2',
17+
width: '3rem',
18+
height: '3rem',
19+
borderWidth: '4px'
20+
}}
21+
/>
22+
<p className="mt-3" style={{ color: '#0d47a1', fontSize: '1.1rem', fontWeight: '500' }}>Loading...</p>
1523
</div>
1624
</Container>
1725
);

0 commit comments

Comments
 (0)