Skip to content

Commit fcf5ead

Browse files
committed
PCR Redesign Initial Version
1 parent 28772d6 commit fcf5ead

28 files changed

Lines changed: 2813 additions & 23 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = function override(config, env) {
2+
// Add a rule to handle .mjs files
3+
config.module.rules.push({
4+
test: /\.mjs$/,
5+
include: /node_modules/,
6+
type: 'javascript/auto',
7+
});
8+
9+
return config;
10+
};

frontend/review/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
"http-proxy-middleware": "^0.20.0",
99
"js-cookie": "^2.2.1",
1010
"lz-string": "^1.4.4",
11+
"motion": "^12.35.1",
1112
"react": "^18.2.0",
1213
"react-app-polyfill": "^1.0.5",
1314
"react-app-rewired": "^2.2.1",
1415
"react-chartjs-2": "^2.8.0",
1516
"react-dom": "^18.2.0",
17+
"react-icons": "^5.6.0",
18+
"react-range-slider-input": "^3.3.2",
19+
"react-responsive-pagination": "^2.13.0",
1620
"react-router-dom": "^5.1.2",
1721
"react-scripts": "^3.3.0",
1822
"react-select": "^2.4.4",
@@ -23,8 +27,8 @@
2327
"workerize-loader": "^1.3.0"
2428
},
2529
"scripts": {
26-
"dev": "NODE_OPTIONS=--openssl-legacy-provider react-scripts start",
27-
"start": "NODE_OPTIONS=--openssl-legacy-provider react-scripts start",
30+
"dev": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start",
31+
"start": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start",
2832
"build": "NODE_OPTIONS=--openssl-legacy-provider react-scripts build",
2933
"test": "exit 0",
3034
"eject": "react-scripts eject",

frontend/review/public/static/css/base.css

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,3 +943,146 @@ hr {
943943
opacity: 1 !important;
944944
box-shadow: rgba(10, 10, 10, 0.1) 0px 2px 3px;
945945
}
946+
947+
/* REDESIGN BROWSE PAGE */
948+
949+
@font-face {
950+
font-family: 'SFPro';
951+
src: url('frontend/review/public/static/fonts/SF-Pro-Display-Regular.otf') format('opentype');
952+
font-weight: normal;
953+
font-style: normal;
954+
}
955+
956+
@font-face {
957+
font-family: 'SFPro-Bold';
958+
src: url('frontend/review/public/static/fonts/SF-Pro-Display-Bold.otf') format('opentype');
959+
font-weight: bold;
960+
font-style: normal;
961+
}
962+
963+
.new-search-bar {
964+
min-width: 0;
965+
width: 100%;
966+
}
967+
968+
.select-box-container:hover {
969+
background: #E1E4E8;
970+
}
971+
972+
.SelectSearchBarContainer {
973+
/* Enables scrolling */
974+
overflow: auto;
975+
976+
/* Firefox: Sets thumb color to a gray pill, and track color to transparent */
977+
scrollbar-width: thin;
978+
scrollbar-color: #a0aec0 transparent;
979+
}
980+
981+
/* WebKit browsers (Chrome, Safari, Edge) */
982+
983+
/* 1. Define the overall scrollbar size */
984+
.no-scrollbar::-webkit-scrollbar {
985+
width: 8px; /* For vertical scrollbar */
986+
height: 8px; /* For horizontal scrollbar */
987+
}
988+
989+
/* 2. Make the track completely transparent */
990+
.no-scrollbar::-webkit-scrollbar-track {
991+
background: transparent;
992+
}
993+
994+
/* 3. Style the "pill" (the thumb) */
995+
.no-scrollbar::-webkit-scrollbar-thumb {
996+
background-color: #a0aec0; /* Color of your pill */
997+
border-radius: 20px; /* Gives it the rounded "pill" shape */
998+
}
999+
1000+
/* Optional: Make the pill slightly darker when hovered */
1001+
.no-scrollbar::-webkit-scrollbar-thumb:hover {
1002+
background-color: #718096;
1003+
}
1004+
1005+
.course-results-table {
1006+
border: none !important;
1007+
font-family: 'SFPro', sans-serif;
1008+
}
1009+
1010+
.course-results-table .rt-tr .rt-th,
1011+
.course-results-table .rt-tr .rt-td {
1012+
border-right: none !important;
1013+
border-bottom: none !important;
1014+
}
1015+
1016+
/* Target the header cells */
1017+
.course-results-table .rt-thead .rt-th {
1018+
display: flex;
1019+
align-items: center;
1020+
justify-content: flex-start;
1021+
background-color: #F7F9FB;
1022+
color: #3E3E40;
1023+
font-weight: 700;
1024+
padding: 12px 17px !important;
1025+
}
1026+
1027+
/* Target the data cells */
1028+
.course-results-table .rt-tbody .rt-td {
1029+
display: flex;
1030+
align-items: center;
1031+
justify-content: flex-start;
1032+
padding: 12px 16px;
1033+
color: #3E3E40;
1034+
background-color: #FFFFFF;
1035+
font-family: 'SFPro', sans-serif;
1036+
font-weight: 300;
1037+
font-size: 15px;
1038+
}
1039+
1040+
.course-results-table .rt-tr:not(.ignore-select):hover {
1041+
cursor: default !important;
1042+
}
1043+
1044+
.course-results-table-container #course-table_info {
1045+
display: none;
1046+
}
1047+
1048+
.course-code-cell {
1049+
display: flex;
1050+
justify-content: center;
1051+
align-items: center;
1052+
height: 100%;
1053+
color: #1995E7;
1054+
cursor: pointer;
1055+
}
1056+
1057+
.course-code-cell:hover {
1058+
color: #1565a8;
1059+
}
1060+
1061+
/* selected state */
1062+
.course-results-btn-primary {
1063+
background-color: #6D6F71; /* Dark gray background */
1064+
color: white; /* White text */
1065+
border: 1px solid #6D6F71;
1066+
}
1067+
1068+
.course-results-btn-primary:hover {
1069+
background-color: #5c5e61; /* Slightly darker on hover */
1070+
border-color: #5c5e61;
1071+
}
1072+
1073+
/* unselected state */
1074+
.course-results-btn-secondary {
1075+
background-color: white; /* White background */
1076+
color: #6D6F71; /* Dark gray text */
1077+
border: 1px solid #6D6F71; /* Dark gray border */
1078+
}
1079+
1080+
.course-results-btn-secondary:hover {
1081+
background-color: #f8f9fa; /* Very light gray on hover */
1082+
color: #5c5e61;
1083+
border-color: #5c5e61;
1084+
}
1085+
1086+
.course-results-btn-image {
1087+
filter: grayscale(100%);
1088+
}
5.92 MB
Binary file not shown.
5.79 MB
Binary file not shown.

0 commit comments

Comments
 (0)