Skip to content

Commit 0db85ae

Browse files
authored
Merge pull request #32 from rafiattrach/fix/webapp-path
small visual changes and path update
2 parents f0cffd7 + 792ad14 commit 0db85ae

File tree

13 files changed

+761
-333
lines changed

13 files changed

+761
-333
lines changed

webapp/README.md

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Getting Started with Create React App
1+
# M3 Webapp README
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
This file provides instructions on how to run and build the M3 web application.
44

55
## Available Scripts
66

@@ -9,62 +9,10 @@ In the project directory, you can run:
99
### `npm start`
1010

1111
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
1313

14-
The page will reload when you make changes.\
15-
You may also see any lint errors in the console.
16-
17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
14+
The page will reload if you make edits.
2115

2216
### `npm run build`
2317

24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
35-
36-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39-
40-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).
47-
48-
### Code Splitting
49-
50-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51-
52-
### Analyzing the Bundle Size
53-
54-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55-
56-
### Making a Progressive Web App
57-
58-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59-
60-
### Advanced Configuration
61-
62-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63-
64-
### Deployment
65-
66-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67-
68-
### `npm run build` fails to minify
69-
70-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
18+
Builds the app for production to the `build` folder.

webapp/public/banner1.png

597 KB
Loading

webapp/public/banner2.png

707 KB
Loading

webapp/public/banner3.png

632 KB
Loading

webapp/src/App.css

Lines changed: 220 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,19 @@ nav {
5656
gap: 40px;
5757
}
5858

59-
.nav-links a {
59+
.nav-links a, .nav-links button {
6060
text-decoration: none;
6161
color: #1a1a1a;
6262
font-weight: 500;
6363
font-size: 16px;
6464
transition: color 0.3s ease;
65+
background: none;
66+
border: none;
67+
cursor: pointer;
68+
font-family: inherit;
6569
}
6670

67-
.nav-links a:hover {
71+
.nav-links a:hover, .nav-links button:hover {
6872
color: #0052ff;
6973
}
7074

@@ -281,7 +285,7 @@ nav {
281285
.laptop-frame {
282286
background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
283287
border-radius: 20px 20px 8px 8px;
284-
padding: 20px 20px 60px 20px;
288+
padding: 20px 20px 20px 20px;
285289
box-shadow:
286290
0 25px 60px rgba(0, 0, 0, 0.15),
287291
0 5px 20px rgba(0, 0, 0, 0.08);
@@ -304,7 +308,7 @@ nav {
304308
background: #000;
305309
border-radius: 12px;
306310
overflow: hidden;
307-
aspect-ratio: 16/10;
311+
aspect-ratio: 14.5 / 10;
308312
position: relative;
309313
}
310314

@@ -357,6 +361,23 @@ nav {
357361
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
358362
}
359363

364+
.dashboard-image-container {
365+
flex: 1;
366+
padding: 0;
367+
display: flex;
368+
align-items: center;
369+
justify-content: center;
370+
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
371+
overflow: hidden;
372+
}
373+
374+
.dashboard-banner {
375+
width: 100%;
376+
height: 100%;
377+
object-fit: contain;
378+
border-radius: 0;
379+
}
380+
360381
.dashboard-card {
361382
background: white;
362383
border-radius: 12px;
@@ -1026,9 +1047,8 @@ footer {
10261047
gap: 40px;
10271048
}
10281049

1029-
.dashboard-content {
1030-
grid-template-columns: 1fr;
1031-
padding: 20px;
1050+
.dashboard-image-container {
1051+
padding: 10px;
10321052
}
10331053

10341054
.citation-header {
@@ -1053,3 +1073,196 @@ footer {
10531073
opacity: 1;
10541074
transform: translateY(0);
10551075
}
1076+
1077+
/* Architecture Section */
1078+
.architecture-section {
1079+
padding: 80px 0;
1080+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
1081+
position: relative;
1082+
overflow: hidden;
1083+
}
1084+
1085+
.architecture-section::before {
1086+
content: '';
1087+
position: absolute;
1088+
top: 0;
1089+
left: 0;
1090+
right: 0;
1091+
bottom: 0;
1092+
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23667eea" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23764ba2" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%234ecdc4" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23a8e6cf" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
1093+
pointer-events: none;
1094+
}
1095+
1096+
.architecture-diagram {
1097+
margin: 60px 0;
1098+
padding: 40px;
1099+
background: rgba(255, 255, 255, 0.9);
1100+
border-radius: 20px;
1101+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
1102+
backdrop-filter: blur(10px);
1103+
position: relative;
1104+
z-index: 1;
1105+
}
1106+
1107+
.architecture-svg {
1108+
display: block;
1109+
margin: 0 auto;
1110+
max-width: 100%;
1111+
height: auto;
1112+
}
1113+
1114+
/* Animation keyframes */
1115+
@keyframes slideInUp {
1116+
from {
1117+
opacity: 0;
1118+
transform: translateY(50px);
1119+
}
1120+
to {
1121+
opacity: 1;
1122+
transform: translateY(0);
1123+
}
1124+
}
1125+
1126+
@keyframes drawLine {
1127+
from {
1128+
stroke-dasharray: 0 1000;
1129+
}
1130+
to {
1131+
stroke-dasharray: 1000 0;
1132+
}
1133+
}
1134+
1135+
/* Diagram animations */
1136+
.diagram-element {
1137+
opacity: 0;
1138+
animation: slideInUp 0.8s ease-out forwards;
1139+
animation-delay: var(--delay, 0s);
1140+
}
1141+
1142+
.diagram-element.animate-in {
1143+
opacity: 1;
1144+
}
1145+
1146+
.connection-line {
1147+
stroke-dasharray: 0 1000;
1148+
animation: drawLine 1s ease-out forwards;
1149+
animation-delay: var(--delay, 0s);
1150+
}
1151+
1152+
.connection-line.draw {
1153+
stroke-dasharray: 1000 0;
1154+
}
1155+
1156+
/* Architecture explanation cards */
1157+
.architecture-explanation {
1158+
margin-top: 60px;
1159+
}
1160+
1161+
.explanation-grid {
1162+
display: grid;
1163+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
1164+
gap: 30px;
1165+
margin-top: 40px;
1166+
}
1167+
1168+
.explanation-card {
1169+
background: white;
1170+
padding: 30px;
1171+
border-radius: 15px;
1172+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
1173+
text-align: center;
1174+
transition: all 0.3s ease;
1175+
position: relative;
1176+
overflow: hidden;
1177+
}
1178+
1179+
.explanation-card::before {
1180+
content: '';
1181+
position: absolute;
1182+
top: 0;
1183+
left: -100%;
1184+
width: 100%;
1185+
height: 100%;
1186+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
1187+
transition: left 0.6s;
1188+
}
1189+
1190+
.explanation-card:hover::before {
1191+
left: 100%;
1192+
}
1193+
1194+
.explanation-card:hover {
1195+
transform: translateY(-10px);
1196+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
1197+
}
1198+
1199+
.card-icon {
1200+
font-size: 48px;
1201+
margin-bottom: 20px;
1202+
display: block;
1203+
}
1204+
1205+
.explanation-card h3 {
1206+
color: #2c3e50;
1207+
margin-bottom: 15px;
1208+
font-size: 1.3rem;
1209+
font-weight: 600;
1210+
}
1211+
1212+
.explanation-card p {
1213+
color: #5a6c7d;
1214+
line-height: 1.6;
1215+
margin: 0;
1216+
}
1217+
1218+
.explanation-card code {
1219+
background: #f8f9fa;
1220+
padding: 2px 8px;
1221+
border-radius: 4px;
1222+
font-family: 'Courier New', monospace;
1223+
color: #4ecdc4;
1224+
font-weight: 600;
1225+
}
1226+
1227+
/* Responsive design */
1228+
@media (max-width: 768px) {
1229+
.architecture-section {
1230+
padding: 60px 0;
1231+
}
1232+
1233+
.architecture-diagram {
1234+
padding: 20px;
1235+
margin: 40px 0;
1236+
}
1237+
1238+
.architecture-svg {
1239+
height: 400px;
1240+
}
1241+
1242+
.explanation-grid {
1243+
grid-template-columns: 1fr;
1244+
gap: 20px;
1245+
}
1246+
1247+
.explanation-card {
1248+
padding: 20px;
1249+
}
1250+
1251+
.card-icon {
1252+
font-size: 36px;
1253+
}
1254+
}
1255+
1256+
@media (max-width: 480px) {
1257+
.architecture-svg {
1258+
height: 300px;
1259+
}
1260+
1261+
.section-header h2 {
1262+
font-size: 1.8rem;
1263+
}
1264+
1265+
.section-header p {
1266+
font-size: 0.95rem;
1267+
}
1268+
}

0 commit comments

Comments
 (0)