Skip to content

Commit 85e9b3e

Browse files
committedJul 24, 2024·
replacted yarn with pnpm. added prettier and eslint config
1 parent 41cb610 commit 85e9b3e

File tree

5 files changed

+3068
-2566
lines changed

5 files changed

+3068
-2566
lines changed
 

‎.eslintrc.json

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": [
3+
"next/core-web-vitals", // Next.js recommended rules
4+
"eslint:recommended", // ESLint recommended rules
5+
"plugin:react/recommended", // React recommended rules
6+
"plugin:react-hooks/recommended", // React Hooks recommended rules
7+
"plugin:jsx-a11y/recommended", // Accessibility rules for JSX
8+
"prettier" // Prettier integration
9+
],
10+
"rules": {
11+
"react/prop-types": "off", // Disable prop-types validation (if using TypeScript)
12+
"react/react-in-jsx-scope": "off", // No need to import React in JSX (Next.js does this automatically)
13+
"react/jsx-uses-react": "off", // No need to validate React usage in JSX (deprecated in React 17)
14+
"react/jsx-uses-vars": "error", // Ensure variables used in JSX are declared
15+
"react-hooks/exhaustive-deps": "warn", // Check dependencies in useEffect and useCallback
16+
"no-unused-vars": "warn", // Check for unused variables
17+
"no-undef": "error", // Check for usage of undeclared variables
18+
"jsx-a11y/anchor-is-valid": "off" // Disable 'href' validation for Next.js Link component
19+
},
20+
"settings": {
21+
"react": {
22+
"version": "detect" // Automatically detect React version
23+
}
24+
},
25+
"parserOptions": {
26+
"ecmaVersion": 2021, // Use ECMAScript 2021 features
27+
"sourceType": "module", // Use module imports
28+
"ecmaFeatures": {
29+
"jsx": true // Enable JSX parsing
30+
}
31+
},
32+
"env": {
33+
"browser": true, // Enable browser globals
34+
"node": true // Enable Node.js globals
35+
}
336
}

‎components/AssetizationSVG.js

+105-107
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
export default function AssetizationSVG({ current }) {
42
return (
53
<svg
@@ -96,23 +94,23 @@ export default function AssetizationSVG({ current }) {
9694
<path
9795
d="M340.759 351L535.149 461.29"
9896
stroke="#FDFDFD"
99-
stroke-width="3"
100-
stroke-miterlimit="10"
101-
stroke-linecap="round"
97+
strokeWidth="3"
98+
strokeMiterlimit="10"
99+
strokeLinecap="round"
102100
/>
103101
<path
104102
d="M340.16 350.73L145.76 461.02"
105103
stroke="#FDFDFD"
106-
stroke-width="3"
107-
stroke-miterlimit="10"
108-
stroke-linecap="round"
104+
strokeWidth="3"
105+
strokeMiterlimit="10"
106+
strokeLinecap="round"
109107
/>
110108
<path
111109
d="M340.455 131L340.455 352"
112110
stroke="#FDFDFD"
113-
stroke-width="3"
114-
stroke-miterlimit="10"
115-
stroke-linecap="round"
111+
strokeWidth="3"
112+
strokeMiterlimit="10"
113+
strokeLinecap="round"
116114
/>
117115
<g filter="url(#filter6_d_444_3877)"></g>
118116
<g className="central-sphere">
@@ -122,7 +120,7 @@ export default function AssetizationSVG({ current }) {
122120
width="291"
123121
height="265"
124122
fill="url(#pattern0_444_3877)"
125-
shape-rendering="crispEdges"
123+
shapeRendering="crispEdges"
126124
/>
127125
<circle
128126
cx="338.259"
@@ -150,181 +148,181 @@ export default function AssetizationSVG({ current }) {
150148
opacity="0.4"
151149
d="M210.86 203.11V498.49"
152150
stroke="#F7F2EB"
153-
stroke-width="2"
154-
stroke-miterlimit="10"
155-
stroke-linecap="round"
156-
stroke-dasharray="4 4"
151+
strokeWidth="2"
152+
strokeMiterlimit="10"
153+
strokeLinecap="round"
154+
strokeDasharray="4 4"
157155
/>
158156
<path
159157
opacity="0.4"
160158
d="M405.03 167.53V535.17"
161159
stroke="#F7F2EB"
162-
stroke-width="2"
163-
stroke-miterlimit="10"
164-
stroke-linecap="round"
165-
stroke-dasharray="4 4"
160+
strokeWidth="2"
161+
strokeMiterlimit="10"
162+
strokeLinecap="round"
163+
strokeDasharray="4 4"
166164
/>
167165
<path
168166
opacity="0.4"
169167
d="M469.031 203.11V498.73"
170168
stroke="#F7F2EB"
171-
stroke-width="2"
172-
stroke-miterlimit="10"
173-
stroke-linecap="round"
174-
stroke-dasharray="4 4"
169+
strokeWidth="2"
170+
strokeMiterlimit="10"
171+
strokeLinecap="round"
172+
strokeDasharray="4 4"
175173
/>
176174
<path
177175
d="M534.959 461.5L534.959 240.5"
178176
stroke="#FDFDFD"
179-
stroke-width="5"
180-
stroke-miterlimit="10"
181-
stroke-linecap="round"
177+
strokeWidth="5"
178+
strokeMiterlimit="10"
179+
strokeLinecap="round"
182180
/>
183181
<path
184182
opacity="0.4"
185183
d="M145.76 388.41L405.03 535.17"
186184
stroke="#F7F2EB"
187-
stroke-width="2"
188-
stroke-miterlimit="10"
189-
stroke-linecap="round"
190-
stroke-dasharray="4 4"
185+
strokeWidth="2"
186+
strokeMiterlimit="10"
187+
strokeLinecap="round"
188+
strokeDasharray="4 4"
191189
/>
192190
<path
193191
opacity="0.4"
194192
d="M145.759 315.63L469.029 498.73"
195193
stroke="#F7F2EB"
196-
stroke-width="2"
197-
stroke-miterlimit="10"
198-
stroke-linecap="round"
199-
stroke-dasharray="4 4"
194+
strokeWidth="2"
195+
strokeMiterlimit="10"
196+
strokeLinecap="round"
197+
strokeDasharray="4 4"
200198
/>
201199
<path
202200
opacity="0.4"
203201
d="M210.86 203.11L470.35 350.73"
204202
stroke="#F7F2EB"
205-
stroke-width="2"
206-
stroke-miterlimit="10"
207-
stroke-linecap="round"
208-
stroke-dasharray="4 4"
203+
strokeWidth="2"
204+
strokeMiterlimit="10"
205+
strokeLinecap="round"
206+
strokeDasharray="4 4"
209207
/>
210208
<path
211209
opacity="0.4"
212210
d="M275.51 167.53L534.55 315.45"
213211
stroke="#F7F2EB"
214-
stroke-width="2"
215-
stroke-miterlimit="10"
216-
stroke-linecap="round"
217-
stroke-dasharray="4 4"
212+
strokeWidth="2"
213+
strokeMiterlimit="10"
214+
strokeLinecap="round"
215+
strokeDasharray="4 4"
218216
/>
219217
<path
220218
opacity="0.4"
221219
d="M340.16 277.55L534.55 387.84"
222220
stroke="#F7F2EB"
223-
stroke-width="2"
224-
stroke-miterlimit="10"
225-
stroke-linecap="round"
226-
stroke-dasharray="4 4"
221+
strokeWidth="2"
222+
strokeMiterlimit="10"
223+
strokeLinecap="round"
224+
strokeDasharray="4 4"
227225
/>
228226
<path
229227
d="M340.16 130L534.55 240.29"
230228
stroke="#FDFDFD"
231-
stroke-width="3"
232-
stroke-miterlimit="10"
233-
stroke-linecap="round"
229+
strokeWidth="3"
230+
strokeMiterlimit="10"
231+
strokeLinecap="round"
234232
/>
235233
<path
236234
d="M534.549 461.56L340.758 572"
237235
stroke="#FDFDFD"
238-
stroke-width="3"
239-
stroke-miterlimit="10"
240-
stroke-linecap="round"
236+
strokeWidth="3"
237+
strokeMiterlimit="10"
238+
strokeLinecap="round"
241239
/>
242240
<path
243241
opacity="0.4"
244242
d="M534.55 388.41L275.51 535.17"
245243
stroke="#F7F2EB"
246-
stroke-width="2"
247-
stroke-miterlimit="10"
248-
stroke-linecap="round"
249-
stroke-dasharray="4 4"
244+
strokeWidth="2"
245+
strokeMiterlimit="10"
246+
strokeLinecap="round"
247+
strokeDasharray="4 4"
250248
/>
251249
<path
252250
opacity="0.4"
253251
d="M534.55 315.63L210.86 498.49"
254252
stroke="#F7F2EB"
255-
stroke-width="2"
256-
stroke-miterlimit="10"
257-
stroke-linecap="round"
258-
stroke-dasharray="4 4"
253+
strokeWidth="2"
254+
strokeMiterlimit="10"
255+
strokeLinecap="round"
256+
strokeDasharray="4 4"
259257
/>
260258
<path
261259
d="M534.55 240.44L340.16 350.73"
262260
stroke="#FDFDFD"
263-
stroke-width="3"
264-
stroke-miterlimit="10"
265-
stroke-linecap="round"
261+
strokeWidth="3"
262+
strokeMiterlimit="10"
263+
strokeLinecap="round"
266264
/>
267265
<path
268266
d="M340.16 130L145.76 240.29"
269267
stroke="#FDFDFD"
270-
stroke-width="3"
271-
stroke-miterlimit="10"
272-
stroke-linecap="round"
268+
strokeWidth="3"
269+
strokeMiterlimit="10"
270+
strokeLinecap="round"
273271
/>
274272
<path
275273
opacity="0.4"
276274
d="M403.36 165.86L145.76 315.45"
277275
stroke="#F7F2EB"
278-
stroke-width="2"
279-
stroke-miterlimit="10"
280-
stroke-linecap="round"
281-
stroke-dasharray="4 4"
276+
strokeWidth="2"
277+
strokeMiterlimit="10"
278+
strokeLinecap="round"
279+
strokeDasharray="4 4"
282280
/>
283281
<path
284282
opacity="0.4"
285283
d="M469.009 203.11L145.759 387.84"
286284
stroke="#F7F2EB"
287-
stroke-width="2"
288-
stroke-miterlimit="10"
289-
stroke-linecap="round"
290-
stroke-dasharray="4 4"
285+
strokeWidth="2"
286+
strokeMiterlimit="10"
287+
strokeLinecap="round"
288+
strokeDasharray="4 4"
291289
/>
292290
<path
293291
d="M145.76 461.56L340.759 572"
294292
stroke="#FDFDFD"
295-
stroke-width="3"
296-
stroke-miterlimit="10"
297-
stroke-linecap="round"
293+
strokeWidth="3"
294+
strokeMiterlimit="10"
295+
strokeLinecap="round"
298296
/>
299297
<path
300298
d="M145.76 240.44L340.16 350.73"
301299
stroke="#FDFDFD"
302-
stroke-width="3"
303-
stroke-miterlimit="10"
304-
stroke-linecap="round"
300+
strokeWidth="3"
301+
strokeMiterlimit="10"
302+
strokeLinecap="round"
305303
/>
306304
<path
307305
d="M145.959 461.5L145.959 240.5"
308306
stroke="#FDFDFD"
309-
stroke-width="3"
310-
stroke-miterlimit="10"
311-
stroke-linecap="round"
307+
strokeWidth="3"
308+
strokeMiterlimit="10"
309+
strokeLinecap="round"
312310
/>
313311
<path
314312
opacity="0.4"
315313
d="M275.51 167.53V535.17"
316314
stroke="#F7F2EB"
317-
stroke-width="2"
318-
stroke-miterlimit="10"
319-
stroke-linecap="round"
320-
stroke-dasharray="4 4"
315+
strokeWidth="2"
316+
strokeMiterlimit="10"
317+
strokeLinecap="round"
318+
strokeDasharray="4 4"
321319
/>
322320
<path
323321
d="M340.455 351L340.455 572"
324322
stroke="#FDFDFD"
325-
stroke-width="3"
326-
stroke-miterlimit="10"
327-
stroke-linecap="round"
323+
strokeWidth="3"
324+
strokeMiterlimit="10"
325+
strokeLinecap="round"
328326
/>
329327
<defs>
330328
<filter
@@ -334,9 +332,9 @@ export default function AssetizationSVG({ current }) {
334332
width="292.256"
335333
height="187.896"
336334
filterUnits="userSpaceOnUse"
337-
color-interpolation-filters="sRGB"
335+
colorInterpolationFilters="sRGB"
338336
>
339-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
337+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
340338
<feColorMatrix
341339
in="SourceAlpha"
342340
type="matrix"
@@ -387,9 +385,9 @@ export default function AssetizationSVG({ current }) {
387385
width="54.728"
388386
height="330"
389387
filterUnits="userSpaceOnUse"
390-
color-interpolation-filters="sRGB"
388+
colorInterpolationFilters="sRGB"
391389
>
392-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
390+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
393391
<feColorMatrix
394392
in="SourceAlpha"
395393
type="matrix"
@@ -440,9 +438,9 @@ export default function AssetizationSVG({ current }) {
440438
width="292.256"
441439
height="187.896"
442440
filterUnits="userSpaceOnUse"
443-
color-interpolation-filters="sRGB"
441+
colorInterpolationFilters="sRGB"
444442
>
445-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
443+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
446444
<feColorMatrix
447445
in="SourceAlpha"
448446
type="matrix"
@@ -493,9 +491,9 @@ export default function AssetizationSVG({ current }) {
493491
width="292.256"
494492
height="187.896"
495493
filterUnits="userSpaceOnUse"
496-
color-interpolation-filters="sRGB"
494+
colorInterpolationFilters="sRGB"
497495
>
498-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
496+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
499497
<feColorMatrix
500498
in="SourceAlpha"
501499
type="matrix"
@@ -546,9 +544,9 @@ export default function AssetizationSVG({ current }) {
546544
width="54.728"
547545
height="330"
548546
filterUnits="userSpaceOnUse"
549-
color-interpolation-filters="sRGB"
547+
colorInterpolationFilters="sRGB"
550548
>
551-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
549+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
552550
<feColorMatrix
553551
in="SourceAlpha"
554552
type="matrix"
@@ -599,9 +597,9 @@ export default function AssetizationSVG({ current }) {
599597
width="292.256"
600598
height="187.896"
601599
filterUnits="userSpaceOnUse"
602-
color-interpolation-filters="sRGB"
600+
colorInterpolationFilters="sRGB"
603601
>
604-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
602+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
605603
<feColorMatrix
606604
in="SourceAlpha"
607605
type="matrix"
@@ -652,9 +650,9 @@ export default function AssetizationSVG({ current }) {
652650
width="491"
653651
height="465"
654652
filterUnits="userSpaceOnUse"
655-
color-interpolation-filters="sRGB"
653+
colorInterpolationFilters="sRGB"
656654
>
657-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
655+
<feFlood floodOpacity="0" result="BackgroundImageFix" />
658656
<feColorMatrix
659657
in="SourceAlpha"
660658
type="matrix"
@@ -699,8 +697,8 @@ export default function AssetizationSVG({ current }) {
699697
gradientUnits="userSpaceOnUse"
700698
gradientTransform="translate(338.259 340.5) scale(47.5 47.5)"
701699
>
702-
<stop offset="0.473958" stop-color="#FFC640" />
703-
<stop offset="1" stop-color="#F2AF13" />
700+
<stop offset="0.473958" stopColor="#FFC640" />
701+
<stop offset="1" stopColor="#F2AF13" />
704702
</radialGradient>
705703
<image id="image0_444_3877" width="1920" height="1080" xlinkHref="" />
706704
</defs>

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"eslint": "^8",
20-
"eslint-config-next": "14.2.4"
20+
"eslint-config-next": "14.2.4",
21+
"eslint-config-prettier": "^9.1.0"
2122
}
2223
}

‎pnpm-lock.yaml

+2,927
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎yarn.lock

-2,457
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.