Skip to content

Commit ad28fc8

Browse files
Merge branch 'dev' into ft/learning-module-card
2 parents 05816c8 + e6098a8 commit ad28fc8

File tree

6 files changed

+37
-11
lines changed

6 files changed

+37
-11
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
8787
};
8888

8989
return (
90-
<div className="text-gray-900 " style={containerStyle}>
90+
<div className="text-gray-900" style={containerStyle}>
9191
<div className="content-wrapper lg:py-12 py-6 flex relative">
9292
<ul className="relative">
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">
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 type="button" padding={false} variant="secondary" className="p-2 bg-gray-100 bg-opacity-75 hover:bg-gray-50 text-primary" customStyle={buttonStyles}>
6666
<BellIcon />
6767
{unread > 0 && <Badge value={unread} className="top-0 -right-1 absolute" />}

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-white 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
@@ -51,13 +51,13 @@ body {
5151
}
5252

5353
.nav-item {
54-
@apply font-normal ml-2 opacity-70 hover:opacity-100;
54+
@apply font-normal ml-3 opacity-70 hover:opacity-100;
5555
}
5656
.nav-item a {
5757
@apply align-text-top;
5858
}
5959
.nav-brand {
60-
@apply font-semibold mx-1.5;
60+
@apply font-semibold ml-2;
6161
}
6262
.content-wrapper {
6363
@apply relative;

0 commit comments

Comments
 (0)