-2
.gitignore
-2
.gitignore
+2
-11
public/index.html
+2
-11
public/index.html
···
24
24
work correctly both with client-side routing and a non-root public URL.
25
25
Learn how to configure a non-root public URL by running `npm run build`.
26
26
-->
27
-
<title>React App</title>
27
+
<title>cred.blue</title>
28
+
<link rel="stylesheet" href="https://use.typekit.net/yhs0sil.css">
28
29
</head>
29
30
<body>
30
31
<noscript>You need to enable JavaScript to run this app.</noscript>
31
32
<div id="root"></div>
32
-
<!--
33
-
This HTML file is a template.
34
-
If you open it directly in the browser, you will see an empty page.
35
-
36
-
You can add webfonts, meta tags, or analytics to this file.
37
-
The build step will place the bundled scripts into the <body> tag.
38
-
39
-
To begin the development, run `npm start` or `yarn start`.
40
-
To create a production bundle, use `npm run build` or `yarn build`.
41
-
-->
42
33
</body>
43
34
</html>
-12
src/App.jsx
-12
src/App.jsx
···
14
14
const App = () => {
15
15
const { isAuthenticated, handleLoginSuccess, loading } = useContext(AuthContext);
16
16
17
-
// Load Adobe font stylesheet on app mount
18
-
useEffect(() => {
19
-
const loadAdobeFont = () => {
20
-
const link = document.createElement('link');
21
-
link.rel = 'stylesheet';
22
-
link.href = 'https://use.typekit.net/yhs0sil.css';
23
-
link.type = 'text/css';
24
-
document.head.appendChild(link);
25
-
};
26
-
loadAdobeFont();
27
-
}, []);
28
-
29
17
if (loading) {
30
18
return <div>Loading...</div>;
31
19
}
-8
src/App.test.js
-8
src/App.test.js
-13
src/reportWebVitals.js
-13
src/reportWebVitals.js
···
1
-
const reportWebVitals = onPerfEntry => {
2
-
if (onPerfEntry && onPerfEntry instanceof Function) {
3
-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4
-
getCLS(onPerfEntry);
5
-
getFID(onPerfEntry);
6
-
getFCP(onPerfEntry);
7
-
getLCP(onPerfEntry);
8
-
getTTFB(onPerfEntry);
9
-
});
10
-
}
11
-
};
12
-
13
-
export default reportWebVitals;
-5
src/setupTests.js
-5
src/setupTests.js
-25
tsconfig.json
-25
tsconfig.json
···
1
-
{
2
-
"compilerOptions": {
3
-
"target": "es5",
4
-
"lib": [
5
-
"dom",
6
-
"dom.iterable",
7
-
"esnext"
8
-
],
9
-
"allowJs": true,
10
-
"skipLibCheck": true,
11
-
"esModuleInterop": true,
12
-
"allowSyntheticDefaultImports": true,
13
-
"strict": true,
14
-
"forceConsistentCasingInFileNames": true,
15
-
"module": "esnext",
16
-
"moduleResolution": "node",
17
-
"resolveJsonModule": true,
18
-
"isolatedModules": true,
19
-
"noEmit": true,
20
-
"jsx": "preserve"
21
-
},
22
-
"include": [
23
-
"src"
24
-
]
25
-
}