afront 1.0.22 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +13 -13
- package/.env +1 -1
- package/LICENSE +21 -21
- package/README.md +94 -94
- package/build-prod/index.html +1 -1
- package/build-prod/manifest.json +25 -25
- package/build-prod/offline.html +1023 -1023
- package/build-prod/robots.txt +3 -3
- package/build-prod-static/index.html +1 -1
- package/build-prod-static/manifest.json +25 -25
- package/build-prod-static/offline.html +1023 -1023
- package/build-prod-static/robots.txt +3 -3
- package/install.js +415 -415
- package/package.json +102 -95
- package/server.js +40 -40
- package/src/ARoutes/AFRoutes.js +28 -28
- package/src/Api/api.config.js +266 -266
- package/src/Api/login.service.js +44 -44
- package/src/App.js +28 -28
- package/src/Components/Background/MeshGradient.js +18 -18
- package/src/Components/Footer/Footer.js +108 -108
- package/src/Components/Header/Header.js +149 -149
- package/src/Components/Loading/LoadingIndicator.js +12 -12
- package/src/Components/Loading/LoadingIndicator.module.css +34 -34
- package/src/Components/Loading/LoadingSpinner.js +27 -27
- package/src/Components/Loading/LoadingSpinner.module.css +100 -100
- package/src/Components/RequireAuth.js +29 -29
- package/src/LoadingFallback.js +13 -13
- package/src/PageNotFound.js +19 -19
- package/src/Pages/Home.js +50 -50
- package/src/Pages/Signup.js +230 -230
- package/src/Pages/Support.js +68 -68
- package/src/Routes/ARoutes.js +66 -66
- package/src/Routes/ARoutesStatic.js +83 -83
- package/src/Static/appStatic.js +16 -16
- package/src/Static/indexStatic.js +13 -13
- package/src/Style/App.module.css +11 -11
- package/src/Style/MeshGradient.module.css +130 -130
- package/src/Style/PageNotFound.module.css +37 -37
- package/src/Style/Style.module.css +686 -686
- package/src/Style/Support.module.css +185 -185
- package/src/Utils/LoadingContext.js +5 -5
- package/src/index.js +25 -25
- package/webpack.build-prod.js +141 -140
- package/webpack.dev.js +127 -127
- package/webpack.prod.js +148 -147
- package/webpack.ssr.prod.js +97 -97
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
/* Support.module.css */
|
|
2
|
-
|
|
3
|
-
.supportContainer {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
padding: 5rem 2rem;
|
|
9
|
-
color: #333;
|
|
10
|
-
text-align: center;
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
min-height: 100vh;
|
|
14
|
-
background: #f7f9fc;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.supportTitle {
|
|
18
|
-
font-size: 3rem;
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
margin-bottom: 1rem;
|
|
21
|
-
color: #2c3e50;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.supportDescription {
|
|
25
|
-
font-size: 1.25rem;
|
|
26
|
-
margin-bottom: 2rem;
|
|
27
|
-
color: #34495e;
|
|
28
|
-
/* Slightly lighter color */
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.supportContent {
|
|
32
|
-
max-width: 900px;
|
|
33
|
-
margin: 0 auto;
|
|
34
|
-
padding: 1rem;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.supportCard {
|
|
38
|
-
background: #ffffff;
|
|
39
|
-
/* White background for cards */
|
|
40
|
-
color: #2c3e50;
|
|
41
|
-
/* Dark text color */
|
|
42
|
-
border-radius: 8px;
|
|
43
|
-
padding: 2rem;
|
|
44
|
-
margin-bottom: 2rem;
|
|
45
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
46
|
-
position: relative;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.supportCard::before {
|
|
52
|
-
content: "";
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: 50%;
|
|
55
|
-
left: 50%;
|
|
56
|
-
width: 300%;
|
|
57
|
-
height: 300%;
|
|
58
|
-
background: linear-gradient(45deg, rgba(0, 255, 238, 0.2), rgba(0, 49, 109, 0.2));
|
|
59
|
-
/* Lighter gradient */
|
|
60
|
-
transform: translate(-50%, -50%) rotate(0deg);
|
|
61
|
-
opacity: 0;
|
|
62
|
-
transition: opacity 0.3s ease;
|
|
63
|
-
z-index: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.supportCardTitle {
|
|
67
|
-
font-size: 1.5rem;
|
|
68
|
-
margin-bottom: 1rem;
|
|
69
|
-
position: relative;
|
|
70
|
-
z-index: 1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.supportCardContent {
|
|
74
|
-
font-size: 1rem;
|
|
75
|
-
position: relative;
|
|
76
|
-
z-index: 1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.supportCard:hover {
|
|
80
|
-
transform: translateY(-10px);
|
|
81
|
-
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.supportCard:hover::before {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.footerLink {
|
|
89
|
-
display: inline-block;
|
|
90
|
-
margin-top: 2rem;
|
|
91
|
-
padding: 0.5rem 1rem;
|
|
92
|
-
background: #3498db;
|
|
93
|
-
/* Light blue color */
|
|
94
|
-
color: #ffffff;
|
|
95
|
-
border-radius: 4px;
|
|
96
|
-
text-decoration: none;
|
|
97
|
-
transition: background 0.3s, transform 0.3s;
|
|
98
|
-
position: relative;
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.footerLink::after {
|
|
103
|
-
content: "";
|
|
104
|
-
position: absolute;
|
|
105
|
-
top: 50%;
|
|
106
|
-
left: 50%;
|
|
107
|
-
width: 300%;
|
|
108
|
-
height: 300%;
|
|
109
|
-
background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
|
|
110
|
-
transform: translate(-50%, -50%) scale(0);
|
|
111
|
-
transition: transform 0.3s;
|
|
112
|
-
z-index: 0;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.footerLink:hover {
|
|
116
|
-
background: #2980b9;
|
|
117
|
-
transform: scale(1.05);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.footerLink:hover::after {
|
|
121
|
-
transform: translate(-50%, -50%) scale(1);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.supportContainer::before {
|
|
125
|
-
content: "AFront";
|
|
126
|
-
position: absolute;
|
|
127
|
-
top: 2%;
|
|
128
|
-
left: 50%;
|
|
129
|
-
transform: translateX(-50%);
|
|
130
|
-
font-size: 15rem;
|
|
131
|
-
color: rgba(0, 0, 0, 0.1);
|
|
132
|
-
white-space: nowrap;
|
|
133
|
-
pointer-events: none;
|
|
134
|
-
z-index: 0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* New Styles for FAQ */
|
|
138
|
-
.supportFAQ {
|
|
139
|
-
max-width: 900px;
|
|
140
|
-
margin: 2rem auto;
|
|
141
|
-
padding: 1rem;
|
|
142
|
-
background: #ffffff;
|
|
143
|
-
border-radius: 8px;
|
|
144
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
145
|
-
text-align: left;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.faqList {
|
|
149
|
-
list-style-type: none;
|
|
150
|
-
padding: 0;
|
|
151
|
-
font-size: 1rem;
|
|
152
|
-
color: #2c3e50;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.faqList li {
|
|
156
|
-
margin-bottom: 1rem;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* Responsive Design */
|
|
160
|
-
@media (max-width: 768px) {
|
|
161
|
-
.supportTitle {
|
|
162
|
-
font-size: 2.5rem;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.supportDescription {
|
|
166
|
-
font-size: 1rem;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.supportCard {
|
|
170
|
-
padding: 1rem;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.supportCardTitle {
|
|
174
|
-
font-size: 1.25rem;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.supportCardContent {
|
|
178
|
-
font-size: 0.875rem;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.supportContainer::before {
|
|
182
|
-
font-size: 5rem;
|
|
183
|
-
bottom: 5%;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
1
|
+
/* Support.module.css */
|
|
2
|
+
|
|
3
|
+
.supportContainer {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: 5rem 2rem;
|
|
9
|
+
color: #333;
|
|
10
|
+
text-align: center;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
background: #f7f9fc;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.supportTitle {
|
|
18
|
+
font-size: 3rem;
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
margin-bottom: 1rem;
|
|
21
|
+
color: #2c3e50;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.supportDescription {
|
|
25
|
+
font-size: 1.25rem;
|
|
26
|
+
margin-bottom: 2rem;
|
|
27
|
+
color: #34495e;
|
|
28
|
+
/* Slightly lighter color */
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.supportContent {
|
|
32
|
+
max-width: 900px;
|
|
33
|
+
margin: 0 auto;
|
|
34
|
+
padding: 1rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.supportCard {
|
|
38
|
+
background: #ffffff;
|
|
39
|
+
/* White background for cards */
|
|
40
|
+
color: #2c3e50;
|
|
41
|
+
/* Dark text color */
|
|
42
|
+
border-radius: 8px;
|
|
43
|
+
padding: 2rem;
|
|
44
|
+
margin-bottom: 2rem;
|
|
45
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
46
|
+
position: relative;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.supportCard::before {
|
|
52
|
+
content: "";
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 50%;
|
|
55
|
+
left: 50%;
|
|
56
|
+
width: 300%;
|
|
57
|
+
height: 300%;
|
|
58
|
+
background: linear-gradient(45deg, rgba(0, 255, 238, 0.2), rgba(0, 49, 109, 0.2));
|
|
59
|
+
/* Lighter gradient */
|
|
60
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
61
|
+
opacity: 0;
|
|
62
|
+
transition: opacity 0.3s ease;
|
|
63
|
+
z-index: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.supportCardTitle {
|
|
67
|
+
font-size: 1.5rem;
|
|
68
|
+
margin-bottom: 1rem;
|
|
69
|
+
position: relative;
|
|
70
|
+
z-index: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.supportCardContent {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
position: relative;
|
|
76
|
+
z-index: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.supportCard:hover {
|
|
80
|
+
transform: translateY(-10px);
|
|
81
|
+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.supportCard:hover::before {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.footerLink {
|
|
89
|
+
display: inline-block;
|
|
90
|
+
margin-top: 2rem;
|
|
91
|
+
padding: 0.5rem 1rem;
|
|
92
|
+
background: #3498db;
|
|
93
|
+
/* Light blue color */
|
|
94
|
+
color: #ffffff;
|
|
95
|
+
border-radius: 4px;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
transition: background 0.3s, transform 0.3s;
|
|
98
|
+
position: relative;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.footerLink::after {
|
|
103
|
+
content: "";
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 50%;
|
|
106
|
+
left: 50%;
|
|
107
|
+
width: 300%;
|
|
108
|
+
height: 300%;
|
|
109
|
+
background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
|
|
110
|
+
transform: translate(-50%, -50%) scale(0);
|
|
111
|
+
transition: transform 0.3s;
|
|
112
|
+
z-index: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.footerLink:hover {
|
|
116
|
+
background: #2980b9;
|
|
117
|
+
transform: scale(1.05);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.footerLink:hover::after {
|
|
121
|
+
transform: translate(-50%, -50%) scale(1);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.supportContainer::before {
|
|
125
|
+
content: "AFront";
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 2%;
|
|
128
|
+
left: 50%;
|
|
129
|
+
transform: translateX(-50%);
|
|
130
|
+
font-size: 15rem;
|
|
131
|
+
color: rgba(0, 0, 0, 0.1);
|
|
132
|
+
white-space: nowrap;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
z-index: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* New Styles for FAQ */
|
|
138
|
+
.supportFAQ {
|
|
139
|
+
max-width: 900px;
|
|
140
|
+
margin: 2rem auto;
|
|
141
|
+
padding: 1rem;
|
|
142
|
+
background: #ffffff;
|
|
143
|
+
border-radius: 8px;
|
|
144
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
145
|
+
text-align: left;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.faqList {
|
|
149
|
+
list-style-type: none;
|
|
150
|
+
padding: 0;
|
|
151
|
+
font-size: 1rem;
|
|
152
|
+
color: #2c3e50;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.faqList li {
|
|
156
|
+
margin-bottom: 1rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Responsive Design */
|
|
160
|
+
@media (max-width: 768px) {
|
|
161
|
+
.supportTitle {
|
|
162
|
+
font-size: 2.5rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.supportDescription {
|
|
166
|
+
font-size: 1rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.supportCard {
|
|
170
|
+
padding: 1rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.supportCardTitle {
|
|
174
|
+
font-size: 1.25rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.supportCardContent {
|
|
178
|
+
font-size: 0.875rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.supportContainer::before {
|
|
182
|
+
font-size: 5rem;
|
|
183
|
+
bottom: 5%;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createContext } from "react";
|
|
2
|
-
|
|
3
|
-
const LoadingContext = createContext();
|
|
4
|
-
|
|
5
|
-
export default LoadingContext;
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
|
|
3
|
+
const LoadingContext = createContext();
|
|
4
|
+
|
|
5
|
+
export default LoadingContext;
|
package/src/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ReactDOM, { hydrateRoot } from "react-dom/client";
|
|
3
|
-
import App from "./App";
|
|
4
|
-
import { BrowserRouter } from "react-router";
|
|
5
|
-
|
|
6
|
-
const container = document.getElementById("asggen");
|
|
7
|
-
|
|
8
|
-
// Create a root for React
|
|
9
|
-
const root = ReactDOM.createRoot(container);
|
|
10
|
-
|
|
11
|
-
if (process.env.NODE_ENV === "production") {
|
|
12
|
-
// Use `hydrateRoot` for production
|
|
13
|
-
hydrateRoot(
|
|
14
|
-
container,
|
|
15
|
-
<BrowserRouter>
|
|
16
|
-
<App />
|
|
17
|
-
</BrowserRouter>
|
|
18
|
-
);
|
|
19
|
-
} else {
|
|
20
|
-
root.render(
|
|
21
|
-
<BrowserRouter>
|
|
22
|
-
<App />
|
|
23
|
-
</BrowserRouter>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ReactDOM, { hydrateRoot } from "react-dom/client";
|
|
3
|
+
import App from "./App";
|
|
4
|
+
import { BrowserRouter } from "react-router";
|
|
5
|
+
|
|
6
|
+
const container = document.getElementById("asggen");
|
|
7
|
+
|
|
8
|
+
// Create a root for React
|
|
9
|
+
const root = ReactDOM.createRoot(container);
|
|
10
|
+
|
|
11
|
+
if (process.env.NODE_ENV === "production") {
|
|
12
|
+
// Use `hydrateRoot` for production
|
|
13
|
+
hydrateRoot(
|
|
14
|
+
container,
|
|
15
|
+
<BrowserRouter>
|
|
16
|
+
<App />
|
|
17
|
+
</BrowserRouter>
|
|
18
|
+
);
|
|
19
|
+
} else {
|
|
20
|
+
root.render(
|
|
21
|
+
<BrowserRouter>
|
|
22
|
+
<App />
|
|
23
|
+
</BrowserRouter>
|
|
24
|
+
);
|
|
25
|
+
}
|