-
-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathResources.jsx
More file actions
877 lines (815 loc) · 27.1 KB
/
Resources.jsx
File metadata and controls
877 lines (815 loc) · 27.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
import React, { useState } from 'react';
import { ArrowLeft, Search } from 'lucide-react';
import { Footer } from '../components/Footer/Footer';
import styled from 'styled-components'; // Import styled-components
import Marquee from 'react-fast-marquee'; // Import Marquee
const Navbar = () => {
return (
<nav className="sticky top-0 z-50 w-full bg-gray-800 text-white shadow-md">
<div className="mx-auto flex max-w-7xl items-center justify-between px-4 py-3">
<a href="/home">
<button className="flex items-center gap-2 rounded-full border border-white p-2 hover:bg-gray-700">
<ArrowLeft className="h-5 w-5" />
<span className="hidden md:inline">Back</span>
</button>
</a>
<div className="text-2xl font-bold">
<img src="./DevDisplay ICON.png" alt="DevDisplay" className="h-12 w-12" />
</div>
</div>
</nav>
);
};
const SearchBar = ({ onSearch }) => {
return (
<div className="relative mx-auto max-w-2xl">
<div className="relative">
<Search className="absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-gray-400" />
<input
type="text"
placeholder="Search Resources..."
onChange={(e) => onSearch(e.target.value)}
className="w-full rounded-full border border-[#00a6fb] bg-[rgba(15,27,53,0.9)] py-3 pl-12 pr-4 text-white placeholder-gray-400 outline-none ring-2 ring-transparent transition-all focus:ring-[#00a6fb]"
/>
</div>
</div>
);
};
const Hero = () => {
return (
<section className="hero-section mb-0 flex min-h-[10vh] flex-col items-center justify-center text-white">
<div className="flex w-full flex-col items-center justify-center px-8 text-center">
{/* <h2 className="mb-4 text-6xl font-bold">
Resources <span className="text-[#00a6fb]">Hub</span>
</h2> */}
{/* <p className="text-md md:text-md mx-auto max-w-2xl">
One Platform, Endless Tech Resources
</p> */}
<div className="my-6"></div>
{/* <h1 className="mb-2 text-6xl font-bold tracking-widest md:text-4xl"><span className="text-[#00a6fb]">Unlock All Tech Resources in One Place</span></h1> */}
<StyledWrapper>
<div className="modgp relative inline-block w-full py-3">
<div className="relative">
<div className="bg-primary enabled:hover:bg-primary-dark enabled:active:bg-primary-dark enabled:focus:bg-primary-dark px-18 relative inline-flex w-full items-center justify-center rounded-lg py-5 text-6xl font-bold text-white transition-all focus:outline-none enabled:hover:shadow-md disabled:opacity-50">
<div className="flex w-full items-center justify-center">Resources Hub</div>
</div>
</div>
<div className="pointer-events-none absolute inset-0">
<div id="style-AQliM" className="animate-magic-sparkle style-AQliM pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={8}
width={8}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-WCb99" className="animate-magic-sparkle style-WCb99 pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={11}
width={11}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-dBNZV" className="animate-magic-sparkle style-dBNZV pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={9}
width={9}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-tiisO" className="animate-magic-sparkle style-tiisO pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={8}
width={8}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-re9B7" className="animate-magic-sparkle style-re9B7 pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={11}
width={11}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-BKG4G" className="animate-magic-sparkle style-BKG4G pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={7}
width={7}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-NaoVe" className="animate-magic-sparkle style-NaoVe pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={8}
width={8}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-pwIlv" className="animate-magic-sparkle style-pwIlv pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={11}
width={11}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-QmcAd" className="animate-magic-sparkle style-QmcAd pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={7}
width={7}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
<div id="style-VG2eL" className="animate-magic-sparkle style-VG2eL pointer-events-none absolute z-10">
<svg
style={{ filter: 'drop-shadow(rgb(96, 165, 250) 0px 0px 2px)' }}
fill="none"
viewBox="0 0 68 68"
height={11}
width={11}
className="animate-spin-slow"
>
<path
fill="white"
d="M26.5 25.5C19.0043 33.3697 0 34 0 34C0 34 19.1013 35.3684 26.5 43.5C33.234 50.901 34 68 34 68C34 68 36.9884 50.7065 44.5 43.5C51.6431 36.647 68 34 68 34C68 34 51.6947 32.0939 44.5 25.5C36.5605 18.2235 34 0 34 0C34 0 33.6591 17.9837 26.5 25.5Z"
/>
</svg>
</div>
</div>
</div>
</StyledWrapper>
</div>
</section>
);
};
const Tags = () => {
const tags = [
'Best Courses',
'Notes',
'Documentation',
'Dev Tools Directory',
'Valuable Repositories',
'Libraries',
'Roadmaps',
'Preparation',
'Research Paper',
'Useful APIs',
'Best Colleges',
'Developer Shared Resources',
'AI Tools',
'Programming Resources',
'Web Development',
'Frontend Development',
'Backend Development',
'Full Stack Development',
'Mobile App Development',
'Cloud Computing',
'Cybersecurity',
'Data Science',
'Machine Learning',
'Artificial Intelligence',
'Blockchain Development',
'DevOps & CI/CD',
'Databases & SQL',
'NoSQL & MongoDB',
'System Design',
'Open Source Tools',
'Cheat Sheets & Guides',
'Tech Documentation',
'Interview Preparation',
'DSA & Algorithms',
'Competitive Programming',
'Git & GitHub',
'Version Control',
'Networking & OS',
'UI/UX Design',
'Figma & Prototyping',
'Tech Blogs & News',
'Tech Podcasts',
'Developer Communities',
'API Development',
'Docker & Kubernetes',
'Cloud Certifications',
'Linux & Terminal Commands',
'Coding Playgrounds',
'Online IDEs',
'Roadmaps & Career Paths',
'Resume & Portfolio Building',
'Freelance Resources',
'Tech YouTube Channels',
'Ebooks & PDFs',
'AI & Generative AI Tools',
'Frameworks & Libraries',
'SaaS & No-Code Tools',
'Documentation',
'Programming Language Courses',
'Top GitHub Repositories',
'Open Source Libraries',
'Interview Preparation Kits',
];
return (
<section id="tags" className="mb-0 w-full pt-12 sm:py-16">
<h1 className="text-md text-primary mb-8 text-center font-bold text-[#00a6fb] lg:text-2xl">
Unlock All Tech Resources in One Place
</h1>
{/* <h2 className="text-md text-primary mb-8 text-center text-[#00a6fb] font-bold lg:text-2xl">One Platform, Endless Tech Resources</h2> */}
{/* Right to Left Scrolling */}
<Marquee gradient={false} speed={60} pauseOnHover={true} loop={0} className="w-full">
<div className="flex w-full flex-nowrap items-center">
{[...tags, ...tags, ...tags].map((text, index) => (
<span key={index} className="tag-item mr-6">
{text}
</span>
))}
</div>
</Marquee>
<div className="my-4"></div>
{/* Left to Right Scrolling */}
<Marquee gradient={false} speed={60} pauseOnHover={true} loop={0} direction="right" className="w-full">
<div className="flex w-full flex-nowrap items-center">
{[...tags, ...tags, ...tags].map((text, index) => (
<span key={index} className="tag-item mr-6">
{text}
</span>
))}
</div>
</Marquee>
<style jsx>{`
.tag-item {
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
padding: 0.5rem 1.5rem;
border-radius: 9999px;
border: 1px solid #00a6fb;
background-color: rgba(1, 11, 31, 0.58);
color: #e2e8f0;
font-size: 0.915rem;
text-align: center;
min-width: max-content;
}
`}</style>
</section>
);
};
const ResourcesCards = () => {
const [searchTerm, setSearchTerm] = useState('');
const resources = [
{
title: 'Best Courses',
description: 'High recomended courses for learning popular tech skills and programming languages.',
link: '/Courses',
tags: ['Courses', 'Tech', 'Programming Languages'],
},
{
title: 'Documentation',
description: 'Official documentation for popular libraries and frameworks.',
link: '/Documentation',
tags: ['Docs', 'Documentation', 'Guides'],
},
{
title: 'Dev Tools Directory',
description: 'Explore powerful Developer tools for various use cases.',
link: '/DevTools',
tags: ['AI Tools', 'Productive Tools', 'Developer Tools'],
},
{
title: 'Libraries',
description: 'Explore and use libraries to accelerate development journey.',
link: '/Libraries',
tags: ['Libraries', 'Tools', 'OpenSource', 'Development'],
},
{
title: 'Notes',
description: 'Essential notes to simplify learning tech skills and programming languages.',
link: '/Notes',
tags: ['Notes', 'Hand Written', 'Programming Languages'],
},
{
title: 'Roadmaps',
description: 'Explore the best roadmaps to become a pro developer.',
link: '/Roadmaps',
tags: ['Roadmaps', 'Guides', 'Developers'],
},
{
title: 'Preparation',
description: 'Resources and kits to ace your tech interviews and exams.',
link: '/Preparation',
tags: ['Interviews', 'Preparation', 'Resources', 'Exam Preparation'],
},
{
title: 'Research Paper',
description: 'Read and explore research papers on various tech topics.',
link: '/ResearchPaper',
tags: ['Research Papers', 'Papers', 'Research', 'Tech'],
},
{
title: 'Useful APIs',
description: 'Explore and use useful APIs for your projects and applications.',
link: '/APIs',
tags: ['APIs', 'Tools', 'Development', 'Projects', 'Free APIs', 'Paid APIs'],
},
// {
// title: 'Valuable Repositories',
// description: 'Useful trending and valuable GitHub repositories.',
// link: '/UsefulRepo',
// tags: ['Github', 'OpenSource', 'Projects', 'Repositories'],
// },
// {
// title: 'Best Colleges',
// description: 'Explore the best colleges and universities for tech education.',
// link: '/BestColleges',
// tags: ['Colleges', 'Universities', 'Education', 'Tech'],
// },
// {
// title: 'Developer Shared Resources',
// description: 'Explore and share your own valuable resources for developers.',
// link: '/DevShare',
// tags: ['Shared Resources', 'Community', 'Developers', 'Tech', 'Notes', 'Courses'],
// },
];
const filteredResources = resources.filter((resources) => {
const searchContent = `${resources.title} ${resources.description} ${resources.tags.join(' ')}`.toLowerCase();
return searchContent.includes(searchTerm.toLowerCase());
});
const handleSearch = (value) => {
setSearchTerm(value);
};
return (
<section className="Resources-section mx-auto w-full px-4 py-8 text-white lg:max-w-[80%]">
<div className="mx-auto mb-8 text-center">
{/* <h2 className="mb-4 text-4xl font-bold text-[#00a6fb]">Top Tech Resources</h2>
<p className="mx-auto mb-8 max-w-3xl px-4 text-xl">
Everything you need to grow, learn, and build in the tech industry.
</p> */}
<div className="mx-4">
<SearchBar onSearch={handleSearch} />
</div>
</div>
{filteredResources.length === 0 ? (
<div className="py-8 text-center">
<p className="text-xl text-gray-400">No Resources found matching your search.</p>
</div>
) : (
<div className="grid grid-cols-1 gap-6 px-3 sm:gap-4 md:grid-cols-2 lg:grid-cols-3">
{filteredResources.map((resources, index) => (
<StyledDot key={index}>
<a
href={resources.link}
className="Resources-card to-[rgba(0, 43, 62, 0.6)] group relative block h-full rounded-lg border border-white bg-gradient-to-r from-[rgba(15,27,53,0.9)] p-6 text-center shadow-lg transition duration-300 hover:scale-105 hover:transform"
>
<span className="absolute inset-0"></span>
<div className="project-card-inner relative z-10 flex h-full flex-col justify-between rounded-lg p-[2px]">
<div>
<h3 className="mb-4 text-2xl font-semibold text-[#00a6fb]">{resources.title}</h3>
<p className="flex-grow text-xs text-gray-300 sm:text-sm">{resources.description}</p>
<div className="mb-4 mt-2 flex flex-wrap justify-center gap-1">
{resources.tags.map((tag, tagIndex) => (
<span
key={tagIndex}
className="rounded-full border border-[#00a6fb] bg-gray-900 px-1.5 py-0.5 text-[10px] text-gray-300 sm:px-2 sm:py-1 sm:text-xs"
>
{tag}
</span>
))}
</div>
</div>
<StyledButton
type="button"
onClick={(event) => {
event.preventDefault();
window.location.href = resources.link;
}}
>
<div className="blob1" />
<div className="inner">Explore Now</div>
</StyledButton>
</div>
<div className="dot" />
</a>
</StyledDot>
))}
</div>
)}
<style>
{`
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300&display=swap');
@font-face {
font-family: "MerriweatherSans-SemiBold";
src: url('/fonts/MerriweatherSans-SemiBold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@keyframes border-pulse {
0% {
border-color: rgba(0, 172, 255, 0.5);
box-shadow: 0 0 10px rgba(0, 172, 255, 0.3);
}
50% {
border-color: rgba(0, 172, 255, 0.8);
box-shadow: 0 0 20px rgba(0, 172, 255, 0.6);
}
100% {
border-color: rgba(0, 172, 255, 0.5);
box-shadow: 0 0 10px rgba(0, 172, 255, 0.3);
}
}
.animate-border-glow {
position: absolute;
width: 250%;
height: 250%;
background: linear-gradient(90deg, rgba(0, 172, 255, 0.6), rgba(1, 114, 142, 0.9), rgba(0, 172, 255, 0.6));
top: -75%;
left: -75%;
opacity: 0.5;
filter: blur(10px);
animation: border-glow 4s infinite linear;
}
.group:hover .animate-border-glow {
opacity: 0.8;
filter: blur(15px);
}
.group:hover {
animation: border-pulse 1.5s infinite;
}
.custom-font {
font-family: "MerriweatherSans-SemiBold", sans-serif;
}
.Resources-section {
font-family: 'Merriweather Sans', sans-serif;
}
`}
</style>
</section>
);
};
const StyledButton = styled.button`
cursor: pointer;
font-size: 1rem; /* Smaller font size */
border-radius: 12px; /* Smaller border radius */
border: none;
padding: 1px; /* Smaller padding */
background: radial-gradient(circle 80px at 80% -10%, #ffffff, #181b1b);
position: relative;
transition:
background 0.3s,
transform 0.3s;
animation: zoom 3s ease-in-out infinite;
margin-top: 16px; /* Add margin to increase space */
&:hover {
transform: scale(0.98);
animation-play-state: paused;
}
&::after {
content: '';
position: absolute;
width: 65%;
height: 60%;
border-radius: 120px;
top: 0;
right: 0;
box-shadow: 0 0 20px #ffffff38;
z-index: -1;
transition: box-shadow 0.3s;
}
&:hover::after {
box-shadow: 0 0 10px #ffffff18;
}
.blob1 {
position: absolute;
width: 50px; /* Smaller blob size */
height: 100%;
border-radius: 16px;
bottom: 0;
left: 0;
background: radial-gradient(circle 60px at 0% 100%, #3fe9ff, #0000ff80, transparent);
box-shadow: -10px 10px 30px #0051ff2d;
transition:
background 0.3s,
box-shadow 0.3s;
}
&:hover .blob1 {
box-shadow: -5px 5px 20px #000;
}
.inner {
padding: 10px 20px; /* Smaller inner padding */
border-radius: 12px;
color: #fff;
z-index: 3;
position: relative;
background: radial-gradient(circle 80px at 80% -50%, #777777, #0f1111);
transition: background 0.3s;
}
&:hover .inner {
background: radial-gradient(circle 80px at 80% -50%, #333333, #0f0f0f);
}
.inner::before {
content: '';
width: 100%;
height: 100%;
left: 0;
top: 0;
border-radius: 12px;
background: radial-gradient(circle 60px at 0% 100%, #00e1ff1a, #0000ff11, transparent);
position: absolute;
transition: opacity 0.3s;
}
&:hover .inner::before {
opacity: 0;
}
@keyframes zoom {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
`;
const StyledDot = styled.div`
.dot {
width: 5px;
aspect-ratio: 1;
position: absolute;
background-color: #fff;
box-shadow: 0 0 10px #ffffff;
border-radius: 100px;
z-index: 2;
right: 0;
top: 0;
animation: moveDot 6s linear infinite;
}
@keyframes moveDot {
0% {
top: 0;
right: 0;
}
25% {
top: 0;
right: calc(100% - 5px);
}
50% {
top: calc(100% - 5px);
right: calc(100% - 5px);
}
75% {
top: calc(100% - 5px);
right: 0;
}
100% {
top: 0;
right: 0;
}
}
`;
const StyledWrapper = styled.div`
.relative {
position: relative;
}
.inline-block {
display: inline-block;
}
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
:backdrop {
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
}
.pointer-events-none {
pointer-events: none;
}
.absolute {
position: absolute;
}
.inset-0 {
inset: 0;
}
button {
font-family: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
font-size: 100%;
font-weight: inherit;
line-height: inherit;
color: inherit;
margin: 0;
padding: 0;
width: 300px !important;
}
button {
text-transform: none;
}
button {
cursor: pointer;
}
.inline-flex {
display: inline-flex;
}
.justify-center {
justify-content: center;
}
.rounded-lg {
border-radius: 0.5rem;
}
.bg-primary {
--tw-bg-opacity: 1;
background-color: rgba(15, 27, 53, 0);
}
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.py-2\.5 {
padding-top: 0.625rem;
padding-bottom: 0.625rem;
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.font-medium {
font-weight: 500;
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.transition-all {
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 0.15s;
}
#style-AQliM.style-AQliM {
top: 1%;
left: 99%;
}
#style-WCb99.style-WCb99 {
top: 7%;
left: 1%;
}
#style-dBNZV.style-dBNZV {
top: 93%;
left: 23%;
}
#style-tiisO.style-tiisO {
top: 43%;
left: 15%;
}
#style-re9B7.style-re9B7 {
top: 93%;
left: 9%;
}
#style-BKG4G.style-BKG4G {
top: 21%;
left: 88%;
}
#style-NaoVe.style-NaoVe {
top: 99%;
left: 95%;
}
#style-pwIlv.style-pwIlv {
top: 64%;
left: 99%;
}
#style-QmcAd.style-QmcAd {
top: 14%;
left: 45%;
}
#style-VG2eL.style-VG2eL {
top: 2%;
left: 48%;
}
/* Keyframes for sparkle animation */
@keyframes sparkle {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* Add animation to sparkle elements */
.animate-magic-sparkle {
animation: sparkle 2s infinite;
}
.style-AQliM {
animation-delay: 0.5s;
}
.style-WCb99 {
animation-delay: 0.33s;
}
.style-dBNZV {
animation-delay: 0.6s;
}
.style-tiisO {
animation-delay: 0.9s;
}
.style-re9B7 {
animation-delay: 1.2s;
}
.style-BKG4G {
animation-delay: 1.5s;
}
.style-NaoVe {
animation-delay: 1.8s;
}
.style-pwIlv {
animation-delay: 1.9s;
}
.style-QmcAd {
animation-delay: 1.4s;
}
.style-VG2eL {
animation-delay: 1.7s;
}
`;
const Resources = () => {
return (
<div className="background-wrapper min-h-screen bg-gray-900">
<Navbar />
<Hero />
<Tags />
<ResourcesCards />
<Footer />
</div>
);
};
export default Resources;