Skip to content

Commit efdd726

Browse files
Merge pull request #21 from akirachix/feature/ci-cd
Updated the feedback and material responsiveness
2 parents 9e31a42 + 351d8d1 commit efdd726

File tree

19 files changed

+612
-573
lines changed

19 files changed

+612
-573
lines changed

ecorise-react-app/src/App.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.App {
22
text-align: center;
3+
34
}
45

56
.App-logo {
@@ -22,6 +23,7 @@
2223
justify-content: center;
2324
font-size: calc(10px + 2vmin);
2425
color: white;
26+
2527
}
2628

2729
.App-link {

ecorise-react-app/src/App.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,17 @@ import Teaser from './Teaser';
1010
import Feedback from './Feedback';
1111
import Dashboard from './Dashboard';
1212
import LoginScreen from './Login';
13-
1413
import Sidebar from './shared-component/SideBar';
15-
1614
function AppContent() {
1715
const location = useLocation();
1816
const noSidebarRoutes = ['/login', '/signup','/teaser'];
1917
const hideSidebar = noSidebarRoutes.includes(location.pathname);
20-
2118
return (
22-
23-
2419
<div style={{ display: 'flex' }}>
2520
{!hideSidebar && <Sidebar />}
2621
<div
2722
style={{
2823
flex: 1,
29-
3024
minHeight: '100vh',
3125
boxSizing: 'border-box',
3226
marginRight: !hideSidebar ? '380px' : 0,

ecorise-react-app/src/Dashboard/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "./style.css";
55
import { useNavigate } from "react-router-dom";
66
import { usePickups } from '../hooks/useFetchPickups';
77
import { useProducts } from '../hooks/useFetchProducts';
8-
import { useUsers } from '../hooks/useFetchUser';
8+
import { useUsers } from '../hooks/useFetchUsers';
99
import { usePayment } from '../hooks/useFetchPayments';
1010
function Dashboard() {
1111
const navigate = useNavigate();

ecorise-react-app/src/Dashboard/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jest.mock('react-router-dom', () => {
1515
});
1616

1717

18-
import * as useUsers from '../hooks/useFetchUser';
18+
import * as useUsers from '../hooks/useFetchUsers';
1919
import * as usePickups from '../hooks/useFetchPickups';
2020
import * as useProducts from '../hooks/useFetchProducts';
2121
import * as usePayment from '../hooks/useFetchPayments';

ecorise-react-app/src/Dashboard/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.dashboard-main {
2-
width: 1730px;
2+
width: 118%;
33
margin-left: 160px;
44
background: #fff;
55
flex-direction: column;
@@ -323,7 +323,7 @@ text-anchor: middle;
323323
}
324324
@media screen and (max-width: 1366px) {
325325
.dashboard-main {
326-
width: 100%;
326+
width: 104%;
327327
margin-left: 180px;
328328
padding: 0px 20px 30px 20px;
329329
overflow-x: hidden;
@@ -366,9 +366,9 @@ text-anchor: middle;
366366
width: 100%;
367367
}
368368
}
369-
@media screen and(min-width:1024) and (max-width: 1280px) {
369+
@media screen and (max-width: 1280px) {
370370
.dashboard-main {
371-
width: 100%;
371+
width: 109%;
372372
margin-left: 180px;
373373
padding: 0px 20px 30px 20px;
374374
overflow-x: hidden;
Lines changed: 5 additions & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -1,199 +1,3 @@
1-
2-
html, body {
3-
background-color: white;
4-
margin: 0;
5-
padding: 0;
6-
height: 100%;
7-
}
8-
9-
10-
.main-content {
11-
padding: 20px ;
12-
font-family: Arial, sans-serif;
13-
background: white;
14-
min-height: 100vh;
15-
max-width: 1200px;
16-
margin-left: 22%;
17-
}
18-
19-
20-
.feedback-title {
21-
text-align: center;
22-
color: maroon;
23-
margin-bottom: 20px;
24-
font-weight: 700;
25-
font-size: 42px;
26-
}
27-
28-
.feedback-table-container {
29-
display: flex;
30-
flex-direction: column;
31-
background: white;
32-
border-radius: 12px;
33-
box-shadow: 0 4px 15px rgba(0,0,0,0.07);
34-
overflow-x: auto;
35-
margin: 0 auto;
36-
}
37-
38-
39-
40-
41-
.feedback-label-row {
42-
display: flex;
43-
background-color: orange;
44-
border-bottom: 2px solid #cdd4e8;
45-
}
46-
47-
48-
49-
50-
.label-cell {
51-
flex: 1;
52-
font-size: 17pxrem;
53-
font-weight: 700;
54-
color: white;
55-
text-align: center;
56-
padding: 1.5rem 0;
57-
text-transform: uppercase;
58-
letter-spacing: 0.05em;
59-
border-right: 1px solid #cdd4e8;
60-
white-space: nowrap;
61-
user-select: none;
62-
63-
64-
}
65-
.label-cell:last-child {
66-
border-right: none;
67-
}
68-
.feedback-values-row {
69-
display: flex;
70-
gap: 70px;
71-
}
72-
.values-column {
73-
gap: 18px;
74-
min-width: 180px;
75-
box-sizing: border-box;
76-
display: flex;
77-
flex-direction: column;
78-
}
79-
80-
81-
.values-column:last-child {
82-
border-right: none;
83-
}
84-
85-
86-
87-
88-
.value-cell {
89-
flex: 1;
90-
padding: 1.75rem;
91-
font-size: 1rem;
92-
text-align: center;
93-
border-bottom: none;
94-
flex: 1;
95-
}
96-
97-
98-
99-
100-
.values-column .value-cell:nth-child(odd) {
101-
background-color: white;
102-
}
103-
104-
105-
.pagination-controls {
106-
display: flex;
107-
margin-bottom: 16px;
108-
gap: 10px;
109-
justify-content: flex-start;
110-
margin-top: 16px;
111-
display: flex;
112-
align-items: center;
113-
}
114-
115-
116-
.pagination-controls label {
117-
font-size: 17px;
118-
font-weight: 600;
119-
color: #444;
120-
}
121-
122-
123-
.pagination-controls select {
124-
font-size: 1rem;
125-
padding: 5px 10px;
126-
border-radius: 5px;
127-
border: 1px solid #ccc;
128-
cursor: pointer;
129-
}
130-
131-
132-
.pagination-button {
133-
background-color: #e67e22;
134-
border: none;
135-
color: white;
136-
padding: 8px 18px;
137-
border-radius: 6px;
138-
cursor: pointer;
139-
font-size: 1.15rem;
140-
user-select: none;
141-
transition: background-color 0.2s;
142-
padding: 0.5rem 1rem;
143-
margin-right: 1rem;
144-
}
145-
146-
147-
.pagination-button:disabled {
148-
background-color: #ccc;
149-
cursor: not-allowed;
150-
}
151-
152-
153-
.pagination-button:not(:disabled):hover {
154-
background-color: #cf711a;
155-
}
156-
157-
158-
.feedback-loading,
159-
.feedback-error,
160-
.feedback-empty {
161-
text-align: center;background-color: white;
162-
font-size: 1.5rem;
163-
color: #555;
164-
padding: 2rem;
165-
}
166-
.values-row {
167-
display: flex;
168-
margin-bottom: 1.5rem;
169-
}
170-
.pagination-controls-top{
171-
margin-right: 8px;
172-
margin-bottom: 3px;
173-
174-
175-
176-
}
177-
.pagination-controls{
178-
margin-right: 8px;
179-
justify-content: center;
180-
181-
182-
183-
}
184-
.feedback-table-container{
185-
display: flex;
186-
187-
188-
}
189-
190-
191-
.values-row{
192-
display: flex;
193-
border-bottom: 1px solid #ccc;
194-
195-
196-
}
1971
html, body {
1982
background-color: white;
1993
margin: 0;
@@ -213,6 +17,7 @@ html, body {
21317
text-align: center;
21418
color: maroon;
21519
margin-bottom: 20px;
20+
margin-left: 20%;
21621
font-weight: 700;
21722
font-size: 42px;
21823
}
@@ -224,7 +29,8 @@ html, body {
22429
box-shadow: 0 4px 15px rgba(0,0,0,0.07);
22530
overflow-x: auto;
22631
margin: 0 auto;
227-
margin-left: 200px;
32+
margin-left: 30px;
33+
width: 130%;
22834
}
22935
.feedback-label-row {
23036
display: flex;
@@ -413,9 +219,7 @@ html, body {
413219
background: white;
414220
border-radius: 12px;
415221
box-shadow: 0 4px 15px rgba(0,0,0,0.07);
416-
width: 750px;
417-
margin-left: 100px;
418-
padding-left: 100px;
222+
width: 70%;
419223
}
420224
.pagination-controls {
421225
display: flex;
@@ -427,10 +231,4 @@ html, body {
427231
align-items: center;
428232
margin-left: 300px;
429233
}
430-
}
431-
432-
433-
434-
435-
436-
234+
}

ecorise-react-app/src/Login/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FaEye, FaEyeSlash } from "react-icons/fa";
33
import { MdEmail } from "react-icons/md";
44
import { useNavigate } from "react-router-dom";
55
import "./style.css";
6-
import { useUsers } from "../hooks/useFetchUser";
6+
import { useUsers } from "../hooks/useFetchUsers";
77
const LoginScreen = () => {
88
const [form, setForm] = useState({ email: "", password: "" });
99
const [showPassword, setShowPassword] = useState(false);

ecorise-react-app/src/Login/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const mockUseUsers = jest.fn(() => ({
1919
error: null,
2020
}));
2121

22-
jest.mock('../hooks/useFetchUser', () => ({
22+
jest.mock('../hooks/useFetchUsers', () => ({
2323
useUsers: () => mockUseUsers(),
2424
}));
2525

0 commit comments

Comments
 (0)