Skip to content

Commit b2e2f82

Browse files
committed
Merge branch 'dev' into fix/reassign-gray-color
2 parents b44acc8 + e6098a8 commit b2e2f82

File tree

6 files changed

+36
-10
lines changed

6 files changed

+36
-10
lines changed

.coderabbit.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
language: "en-US"
3+
early_access: false
4+
reviews:
5+
profile: "chill"
6+
request_changes_workflow: false
7+
high_level_summary: false
8+
poem: false
9+
review_status: true
10+
collapse_walkthrough: true
11+
auto_review:
12+
enabled: true
13+
drafts: false
14+
chat:
15+
auto_reply: true

src/components/layout/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
9393
<NavItem to="/" type="logo w-8 h-8 md:w-11 md:h-11">
9494
<Logo />
9595
</NavItem>
96-
<NavItem to="/" type="brand mx-0.5">
96+
<NavItem to="/" type="brand">
9797
{t("app.name")}
9898
</NavItem>
9999
</ul>
100100
{isAuthenticatedAndVerified && (
101101
<ul className="hidden lg:block relative self-center text-surface-text-primary">
102102
<NavItem to="/bounties">{t("nav.bounties")}</NavItem>
103103
<NavItem to={"/communities"}>{t("nav.communities")}</NavItem>
104-
<button className="nav-item underline underline-offset-2 text-primary bg-transparent pl-2 py-0 capitalize" onClick={displayJobOffersPopup}>
104+
<button type="button" className="nav-item underline underline-offset-2 text-primary bg-transparent p-0 capitalize" onClick={displayJobOffersPopup}>
105105
{t("job.offers.title")}
106106
</button>
107107
</ul>

src/components/popups/NotificationPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function NotificationPopup({ buttonStyles }: NotificationPopupPro
6161
return (
6262
<div>
6363
<span onClick={externalClick}>
64-
<li className={`inline-block align-middle mr-2 relative text-gray-500 max-w-80 ${isNotificationVisible ? "z-50" : "z-10"}`} onClick={toggle}>
64+
<li className={`inline-block align-middle mr-3 relative text-gray-500 max-w-80 ${isNotificationVisible ? "z-50" : "z-10"}`} onClick={toggle}>
6565
<Button
6666
type="button"
6767
padding={false}

src/components/sections/courses/PageNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function PageNavigation(): ReactElement {
8787
*/
8888
const nextUrl: string | null = useMemo(() => {
8989
const index = currentIndex + 1;
90-
if (index < list?.length - 1 && list[index]?.link) {
90+
if (currentIndex < list?.length - 1 && list[index]?.link) {
9191
return list[index].link;
9292
}
9393
return null;

src/components/sections/homepage/_partials/testimonials/CommunityStats.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Button from "@/components/ui/button";
22
import DiscordIcon from "@/icons/discord.svg";
33
import { useTranslation } from "next-i18next";
4+
import { useMemo } from "react";
45

56
/**
67
* Statistic interface definitions
@@ -18,27 +19,37 @@ const stats: Statistic[] = [
1819
{
1920
title: "testimonials.community.stats.card-1.title",
2021
description: "testimonials.community.stats.card-1.description",
21-
count: 16838,
22+
count: 22240,
2223
},
2324
{
2425
title: "testimonials.community.stats.card-2.title",
2526
description: "testimonials.community.stats.card-2.description",
26-
count: 2669,
27+
count: 3595,
2728
},
2829
{
2930
title: "testimonials.community.stats.card-3.title",
3031
description: "testimonials.community.stats.card-3.description",
31-
count: 6527,
32+
count: 8131,
3233
},
3334
];
3435
export default function CommunityStats() {
3536
const { t } = useTranslation();
37+
const digitFormatter = useMemo(() => new Intl.NumberFormat(), []);
38+
39+
const formattedStat = useMemo(
40+
() =>
41+
stats.map((stat: Statistic) => ({
42+
...stat,
43+
count: digitFormatter.format(stat.count),
44+
})),
45+
[digitFormatter]
46+
);
3647

3748
return (
3849
<div className="p-7 bg-primary rounded-3.5xl mx-auto text-surface-text-invert relative md:absolute md:top-28 lg:top-32 xl:w-1/3 md:w-4/6 z-10 sm:max-w-sm">
3950
<h3 className="m-0 text-4.5xl w-3/4">{t("testimonials.community.title")}</h3>
4051
<div className="relative divide-y divide-white divide-dotted">
41-
{stats.map((stat) => (
52+
{formattedStat.map((stat) => (
4253
<div key={stat.title} className="py-6">
4354
<span className="block text-.5xl mb-2">{stat.count}</span>
4455
<p className="text-base w-3/4 m-0">

src/styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ body {
8383
}
8484

8585
.nav-item {
86-
@apply font-normal ml-2 hover:opacity-70;
86+
@apply font-normal ml-3 hover:opacity-70;
8787
}
8888
.nav-item a {
8989
@apply align-text-top;
9090
}
9191
.nav-brand {
92-
@apply font-semibold mx-1.5;
92+
@apply font-semibold ml-2;
9393
}
9494
.content-wrapper {
9595
@apply relative;

0 commit comments

Comments
 (0)