Skip to content

Commit 8583014

Browse files
authored
Merge pull request #918 from sheikhlimon/fix/formatting
style: format remaining files with ESLint and Prettier
2 parents e14ba84 + f0a9d9f commit 8583014

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1015
-1001
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"engines": {
109109
"node": ">=18.0"
110110
},
111-
"config": {
111+
"config": {
112112
"commitizen": {
113113
"path": "git-cz"
114114
}

sidebars.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ const sidebars: SidebarsConfig = {
144144
],
145145
},
146146
{
147-
type: 'category',
148-
label: 'SQL Advance',
149-
className: 'custom-sidebar-sql-advance',
147+
type: "category",
148+
label: "SQL Advance",
149+
className: "custom-sidebar-sql-advance",
150150
items: [
151-
'sql/SQL-Advance/sql-subqueries',
152-
'sql/SQL-Advance/common-table-expressions',
153-
'sql/SQL-Advance/window-functions',
154-
'sql/SQL-Advance/sql-indexes'
151+
"sql/SQL-Advance/sql-subqueries",
152+
"sql/SQL-Advance/common-table-expressions",
153+
"sql/SQL-Advance/window-functions",
154+
"sql/SQL-Advance/sql-indexes",
155155
],
156156
},
157157
],

src/components/Comming/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface ComingProps {
1111
*/
1212
const Coming: React.FC<ComingProps> = () => {
1313
return (
14-
<div className="flex flex-col justify-center items-center p-6 mx-auto my-8 max-w-2xl rounded-xl bg-white dark:bg-gray-800 shadow-lg">
14+
<div className="mx-auto my-8 flex max-w-2xl flex-col items-center justify-center rounded-xl bg-white p-6 shadow-lg dark:bg-gray-800">
1515
<img
1616
src="https://www.svgrepo.com/show/426192/cogs-settings.svg"
1717
alt="Maintenance in progress"
@@ -20,16 +20,16 @@ const Coming: React.FC<ComingProps> = () => {
2020
width={100}
2121
loading="lazy"
2222
/>
23-
<h1 className="text-3xl font-bold text-center text-gray-800 dark:text-white mb-3">
23+
<h1 className="mb-3 text-center text-3xl font-bold text-gray-800 dark:text-white">
2424
Site Maintenance
2525
</h1>
26-
<p className="text-center text-gray-600 dark:text-gray-300 mb-6">
26+
<p className="mb-6 text-center text-gray-600 dark:text-gray-300">
2727
We're working hard to improve your experience. Please check back soon!
2828
</p>
29-
<div className="flex flex-col sm:flex-row gap-10 w-full">
29+
<div className="flex w-full flex-col gap-10 sm:flex-row">
3030
<a
3131
href="/contact"
32-
className="flex-1 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg text-center transition-colors "
32+
className="flex-1 rounded-lg bg-blue-600 px-4 py-2 text-center font-medium text-white transition-colors hover:bg-blue-700"
3333
>
3434
Contact Support
3535
</a>

src/components/NewsLetterPopup.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ const NewsletterPopup = () => {
3131

3232
return (
3333
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 px-4">
34-
<div className="bg-white/80 backdrop-blur-xl max-w-xl w-full rounded-3xl shadow-2xl p-8 text-center relative border border-gray-200 animate-fade-in">
34+
<div className="animate-fade-in relative w-full max-w-xl rounded-3xl border border-gray-200 bg-white/80 p-8 text-center shadow-2xl backdrop-blur-xl">
3535
<img
3636
src="/img/logo.png"
3737
alt="recode hive Logo"
38-
className="w-16 h-16 mx-auto mb-4 rounded-full shadow-md"
38+
className="mx-auto mb-4 h-16 w-16 rounded-full shadow-md"
3939
/>
4040

41-
<h2 className="text-3xl font-extrabold mb-2 text-gray-900">
41+
<h2 className="mb-2 text-3xl font-extrabold text-gray-900">
4242
Sanjay’s Substack
4343
</h2>
4444

45-
<p className="text-gray-700 text-base leading-relaxed mb-4">
45+
<p className="mb-4 text-base leading-relaxed text-gray-700">
4646
recode hive is an inclusive and welcoming platform where everyone can
4747
contribute, learn, and grow together. ⚡ <br />
4848
Check my ✨ Website:{" "}
4949
<a
5050
href="https://www.recodehive.com"
5151
target="_blank"
52-
className="text-blue-600 hover:underline font-medium"
52+
className="font-medium text-blue-600 hover:underline"
5353
rel="noreferrer"
5454
>
5555
https://www.recodehive.com{" "}
@@ -59,7 +59,7 @@ const NewsletterPopup = () => {
5959
<a
6060
href="https://github.com/sanjay-kv"
6161
target="_blank"
62-
className="text-blue-600 hover:underline font-medium"
62+
className="font-medium text-blue-600 hover:underline"
6363
rel="noreferrer"
6464
>
6565
github.com/sanjay-kv
@@ -68,13 +68,13 @@ const NewsletterPopup = () => {
6868
👫 Join my opensource community
6969
</p>
7070

71-
<p className="text-sm font-semibold text-gray-700 mb-4">
71+
<p className="mb-4 text-sm font-semibold text-gray-700">
7272
By <span className="text-gray-900">Sanjay Viswanathan</span> · Over{" "}
7373
<span className="text-gray-900">31,000 subscribers</span>
7474
</p>
7575

7676
<form
77-
className="flex items-stretch w-full border-2 border-gray-300 rounded-xl overflow-hidden bg-white shadow-inner mb-4 focus-within:ring-2 focus-within:ring-blue-500"
77+
className="mb-4 flex w-full items-stretch overflow-hidden rounded-xl border-2 border-gray-300 bg-white shadow-inner focus-within:ring-2 focus-within:ring-blue-500"
7878
onSubmit={(e) => {
7979
e.preventDefault();
8080
alert("Subscribed! (Integrate with Substack API)");
@@ -85,17 +85,17 @@ const NewsletterPopup = () => {
8585
type="email"
8686
required
8787
placeholder="Type your email..."
88-
className="flex-1 px-4 py-2 text-sm bg-transparent focus:outline-none text-gray-800 placeholder-gray-400"
88+
className="flex-1 bg-transparent px-4 py-2 text-sm text-gray-800 placeholder-gray-400 focus:outline-none"
8989
/>
9090
<button
9191
type="submit"
92-
className="bg-gradient-to-r from-orange-400 to-orange-600 text-white px-6 text-sm font-bold transition duration-300 hover:from-orange-500 hover:to-orange-700"
92+
className="bg-gradient-to-r from-orange-400 to-orange-600 px-6 text-sm font-bold text-white transition duration-300 hover:from-orange-500 hover:to-orange-700"
9393
>
9494
Subscribe
9595
</button>
9696
</form>
9797

98-
<p className="text-xs text-gray-500 mb-4">
98+
<p className="mb-4 text-xs text-gray-500">
9999
By subscribing, I agree to Substack’s{" "}
100100
<a href="#" className="underline hover:text-blue-600">
101101
Terms of Use
@@ -113,7 +113,7 @@ const NewsletterPopup = () => {
113113

114114
<button
115115
onClick={handleClose}
116-
className="text-sm text-gray-600 font-medium hover:text-black transition"
116+
className="text-sm font-medium text-gray-600 transition hover:text-black"
117117
aria-label="Close newsletter popup"
118118
>
119119
No thanks →

src/components/blogCarousel/blogCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ const BlogCard = ({ type, date, title, content, imageUrl, id, authors }) => {
4747
}}
4848
onMouseEnter={() => setIsHovered(true)}
4949
onMouseLeave={() => setIsHovered(false)}
50-
className="relative overflow-hidden h-full transition-all duration-300"
50+
className="relative h-full overflow-hidden transition-all duration-300"
5151
>
5252
<Link
5353
to={`/blog/${id}`}
54-
className="block h-full text-decoration-none"
54+
className="text-decoration-none block h-full"
5555
style={{ textDecoration: "none" }}
5656
>
5757
<div className="article-card h-full">

src/components/blogCarousel/blogCarousel.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function BlogCarousel() {
3333
}, [api]);
3434

3535
return (
36-
<div className="w-full max-w-8xl mx-auto px-4">
36+
<div className="max-w-8xl mx-auto w-full px-4">
3737
<Carousel
3838
setApi={setApi}
3939
className="w-full"
@@ -68,24 +68,24 @@ export function BlogCarousel() {
6868
</CarouselContent>
6969

7070
{/* Enhanced Carousel controls */}
71-
<div className="flex items-center justify-center gap-4 mt-8">
72-
<CarouselPrevious className="static translate-y-0 h-12 w-12 border-2 border-blue-200 dark:border-blue-800 hover:border-blue-400 dark:hover:border-blue-600 transition-all duration-300 hover:scale-110" />
71+
<div className="mt-8 flex items-center justify-center gap-4">
72+
<CarouselPrevious className="static h-12 w-12 translate-y-0 border-2 border-blue-200 transition-all duration-300 hover:scale-110 hover:border-blue-400 dark:border-blue-800 dark:hover:border-blue-600" />
7373
<div className="flex gap-2">
7474
{Array.from({ length: count }).map((_, index) => (
7575
<Button
7676
key={index}
7777
variant="ghost"
7878
size="sm"
79-
className={`h-3 w-3 p-0 rounded-full transition-all duration-300 ${
79+
className={`h-3 w-3 rounded-full p-0 transition-all duration-300 ${
8080
current === index + 1
81-
? "bg-gradient-to-r from-blue-500 to-purple-500 scale-125"
82-
: "bg-gray-300 dark:bg-gray-600 hover:bg-gray-400 dark:hover:bg-gray-500"
81+
? "scale-125 bg-gradient-to-r from-blue-500 to-purple-500"
82+
: "bg-gray-300 hover:bg-gray-400 dark:bg-gray-600 dark:hover:bg-gray-500"
8383
}`}
8484
onClick={() => api?.scrollTo(index)}
8585
/>
8686
))}
8787
</div>
88-
<CarouselNext className="static translate-y-0 h-12 w-12 border-2 border-blue-200 dark:border-blue-800 hover:border-blue-400 dark:hover:border-blue-600 transition-all duration-300 hover:scale-110" />
88+
<CarouselNext className="static h-12 w-12 translate-y-0 border-2 border-blue-200 transition-all duration-300 hover:scale-110 hover:border-blue-400 dark:border-blue-800 dark:hover:border-blue-600" />
8989
</div>
9090
</Carousel>
9191
</div>

src/components/dashboard/LeaderBoard/leaderboard.css

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@
261261
margin-bottom: 4px;
262262
text-align: center;
263263
width: 100%;
264-
265264
}
266265

267266
.light .stat-value {
@@ -392,9 +391,11 @@
392391
font-weight: 600;
393392
letter-spacing: 0.3px;
394393
appearance: none;
395-
background: linear-gradient(to bottom,
396-
rgba(255, 255, 255, 0.05) 0%,
397-
rgba(0, 0, 0, 0.05) 100%);
394+
background: linear-gradient(
395+
to bottom,
396+
rgba(255, 255, 255, 0.05) 0%,
397+
rgba(0, 0, 0, 0.05) 100%
398+
);
398399
cursor: pointer;
399400
transition: all 0.25s ease;
400401
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
@@ -917,7 +918,6 @@
917918
}
918919

919920
@media (max-width: 475px) {
920-
921921
.contributors-container .page-numbers .page-btn,
922922
.contributors-container .pagination .pagination-btn,
923923
.contributors-container .pagination-ellipsis {
@@ -934,7 +934,6 @@
934934
}
935935

936936
@media (max-width: 320px) {
937-
938937
.contributors-container .page-numbers .page-btn,
939938
.contributors-container .pagination .pagination-btn,
940939
.contributors-container .pagination-ellipsis {
@@ -1002,19 +1001,23 @@
10021001
width: 32px;
10031002
height: 32px;
10041003
border-radius: 50%;
1005-
background: linear-gradient(90deg,
1006-
rgba(0, 0, 0, 0.06) 25%,
1007-
rgba(0, 0, 0, 0.12) 50%,
1008-
rgba(0, 0, 0, 0.06) 75%);
1004+
background: linear-gradient(
1005+
90deg,
1006+
rgba(0, 0, 0, 0.06) 25%,
1007+
rgba(0, 0, 0, 0.12) 50%,
1008+
rgba(0, 0, 0, 0.06) 75%
1009+
);
10091010
background-size: 200% 100%;
10101011
animation: skeleton-shimmer 2s infinite;
10111012
}
10121013

10131014
.skeleton-loader.dark .skeleton-avatar {
1014-
background: linear-gradient(90deg,
1015-
rgba(255, 255, 255, 0.05) 25%,
1016-
rgba(255, 255, 255, 0.1) 50%,
1017-
rgba(255, 255, 255, 0.05) 75%);
1015+
background: linear-gradient(
1016+
90deg,
1017+
rgba(255, 255, 255, 0.05) 25%,
1018+
rgba(255, 255, 255, 0.1) 50%,
1019+
rgba(255, 255, 255, 0.05) 75%
1020+
);
10181021
background-size: 200% 100%;
10191022
}
10201023

@@ -1034,19 +1037,23 @@
10341037
height: 16px;
10351038
width: 60%;
10361039
border-radius: 4px;
1037-
background: linear-gradient(90deg,
1038-
rgba(0, 0, 0, 0.06) 25%,
1039-
rgba(0, 0, 0, 0.12) 50%,
1040-
rgba(0, 0, 0, 0.06) 75%);
1040+
background: linear-gradient(
1041+
90deg,
1042+
rgba(0, 0, 0, 0.06) 25%,
1043+
rgba(0, 0, 0, 0.12) 50%,
1044+
rgba(0, 0, 0, 0.06) 75%
1045+
);
10411046
background-size: 200% 100%;
10421047
animation: skeleton-shimmer 2s infinite;
10431048
}
10441049

10451050
.skeleton-loader.dark .skeleton-bar {
1046-
background: linear-gradient(90deg,
1047-
rgba(255, 255, 255, 0.05) 25%,
1048-
rgba(255, 255, 255, 0.1) 50%,
1049-
rgba(255, 255, 255, 0.05) 75%);
1051+
background: linear-gradient(
1052+
90deg,
1053+
rgba(255, 255, 255, 0.05) 25%,
1054+
rgba(255, 255, 255, 0.1) 50%,
1055+
rgba(255, 255, 255, 0.05) 75%
1056+
);
10501057
background-size: 200% 100%;
10511058
}
10521059

@@ -1059,19 +1066,23 @@
10591066
height: 20px;
10601067
width: 60px;
10611068
border-radius: 12px;
1062-
background: linear-gradient(90deg,
1063-
rgba(0, 0, 0, 0.06) 25%,
1064-
rgba(0, 0, 0, 0.12) 50%,
1065-
rgba(0, 0, 0, 0.06) 75%);
1069+
background: linear-gradient(
1070+
90deg,
1071+
rgba(0, 0, 0, 0.06) 25%,
1072+
rgba(0, 0, 0, 0.12) 50%,
1073+
rgba(0, 0, 0, 0.06) 75%
1074+
);
10661075
background-size: 200% 100%;
10671076
animation: skeleton-shimmer 2s infinite;
10681077
}
10691078

10701079
.skeleton-loader.dark .skeleton-badge {
1071-
background: linear-gradient(90deg,
1072-
rgba(255, 255, 255, 0.05) 25%,
1073-
rgba(255, 255, 255, 0.1) 50%,
1074-
rgba(255, 255, 255, 0.05) 75%);
1080+
background: linear-gradient(
1081+
90deg,
1082+
rgba(255, 255, 255, 0.05) 25%,
1083+
rgba(255, 255, 255, 0.1) 50%,
1084+
rgba(255, 255, 255, 0.05) 75%
1085+
);
10751086
background-size: 200% 100%;
10761087
}
10771088

@@ -1503,4 +1514,4 @@
15031514
.pr-item-meta {
15041515
gap: 12px;
15051516
}
1506-
}
1517+
}

src/components/faqs/faqs.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ const FAQs: React.FC = () => {
5858
}`}
5959
>
6060
<div className="mx-auto px-2 sm:px-4 lg:px-6">
61-
<div className="flex flex-col justify-center items-center gap-x-8 gap-y-12 xl:gap-28 lg:flex-row lg:justify-between">
61+
<div className="flex flex-col items-center justify-center gap-x-8 gap-y-12 lg:flex-row lg:justify-between xl:gap-28">
6262
<div className="w-full">
6363
<div className="mb-8 lg:mb-16">
64-
<h6 className="text-lg text-center lg:text-left font-medium text-indigo-600 mb-2">
64+
<h6 className="mb-2 text-center text-lg font-medium text-indigo-600 lg:text-left">
6565
FAQs
6666
</h6>
6767
<h2
68-
className={`text-4xl text-center lg:text-left font-bold ${
68+
className={`text-center text-4xl font-bold lg:text-left ${
6969
isDark ? "text-gray-100" : "text-gray-900"
7070
} leading-snug`}
7171
>
@@ -85,19 +85,17 @@ const FAQs: React.FC = () => {
8585
{faqData.map((faq, index) => (
8686
<motion.div
8787
key={index}
88-
className="accordion h-fit border-gray-200 dark:border-gray-700 pb-4 mb-4 break-inside-avoid"
88+
className="accordion mb-4 h-fit break-inside-avoid border-gray-200 pb-4 dark:border-gray-700"
8989
initial={{ opacity: 0, y: 10 }}
9090
animate={{ opacity: 1, y: 0 }}
9191
transition={{ duration: 0.3 }}
9292
>
9393
<button
94-
className={`cursor-pointer accordion-toggle group flex justify-between items-center text-lg font-medium w-full transition-all duration-300
95-
${
96-
isDark
97-
? "text-gray-200 bg-gray-800 hover:text-indigo-400"
98-
: "text-gray-700 bg-gray-100 hover:text-indigo-600"
99-
}
100-
p-4 rounded-lg focus:outline-none`}
94+
className={`accordion-toggle group flex w-full cursor-pointer items-center justify-between text-lg font-medium transition-all duration-300 ${
95+
isDark
96+
? "bg-gray-800 text-gray-200 hover:text-indigo-400"
97+
: "bg-gray-100 text-gray-700 hover:text-indigo-600"
98+
} rounded-lg p-4 focus:outline-none`}
10199
onClick={() => toggleAccordion(index)}
102100
>
103101
{faq.question}

0 commit comments

Comments
 (0)