Skip to content

Commit b7681c0

Browse files
committed
fix(frontend): second round of feedback
1 parent 0bf61ec commit b7681c0

File tree

11 files changed

+15
-21
lines changed

11 files changed

+15
-21
lines changed

frontend/src/app/for-builders/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
import { request } from "@/utils/graphQLClient";
1111
import { getPageMetadata } from "@/utils/seo";
1212

13+
import KlerosParticipateSection from "./components/KlerosParticipateSection";
14+
1315
export const generateMetadata = async (): Promise<Metadata> => {
1416
return await getPageMetadata("forBuildersPageSeo");
1517
};
@@ -24,6 +26,7 @@ const ForBuilders: React.FC = async () => {
2426
<UseCasesSection
2527
{...{ useCasesData: useCasesData.forBuildersPageUseCasesSection }}
2628
/>
29+
<KlerosParticipateSection />
2730
</>
2831
);
2932
};

frontend/src/app/for-lawyers/page.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { getPageMetadata } from "@/utils/seo";
55
import Hero from "./components/Hero";
66
import KlerosDisputeResolutionSection from "./components/KlerosDisputeResolutionSection";
77
import KlerosEnterpriseSection from "./components/KlerosEnterpriseSection";
8-
import KlerosFellowSection from "./components/KlerosFellowSection";
98
import KlerosMediationSection from "./components/KlerosMediationSection";
10-
import KlerosParticipateSection from "./components/KlerosParticipateSection";
119

1210
export const generateMetadata = async (): Promise<Metadata> => {
1311
return getPageMetadata("forLawyersPageSeo");
@@ -20,8 +18,6 @@ const ForLawyers: React.FC = async () => {
2018
<KlerosEnterpriseSection />
2119
<KlerosMediationSection />
2220
<KlerosDisputeResolutionSection />
23-
<KlerosParticipateSection />
24-
<KlerosFellowSection />
2521
</>
2622
);
2723
};

frontend/src/app/home/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import HowKlerosWorks from "./components/HowKlerosWorks";
1010
import LearnPosts from "./components/LearnPosts";
1111
import StartEarning from "./components/StartEarning";
1212
import TrustedBy from "./components/TrustedBy";
13-
import UseCases from "./components/UseCases";
1413

1514
export const generateMetadata = async (): Promise<Metadata> => {
1615
return await getPageMetadata("homePageSeo");
@@ -24,7 +23,6 @@ const Home: React.FC = async () => {
2423
<HowKlerosWorks />
2524
<LearnPosts />
2625
<CaseStudies />
27-
<UseCases />
2826
<IntegrateSection listMode />
2927
<StartEarning />
3028
<GetInTouch />

frontend/src/components/ForBuilders/UseCasesSection/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ interface IUseCasesSection {
1111

1212
const UseCasesSection: React.FC<IUseCasesSection> = ({ useCasesData }) => {
1313
return (
14-
<div className="relative bg-background-1 px-6 py-16 md:py-24 lg:px-32">
15-
<h1 className="mb-8 text-xl font-medium text-primary-text lg:mb-12 lg:text-3xl">
14+
<div className="relative bg-background-1 px-6 pt-16 md:pt-24 lg:px-32">
15+
<h1
16+
className={
17+
"mb-8 text-xl font-medium text-primary-text lg:mb-12 lg:text-3xl"
18+
}
19+
>
1620
{useCasesData.sectionHeader}
1721
</h1>
1822
<UseCasesCards selectedIndex={0} />

frontend/src/components/ResearchDevelopment/TabSection/FellowshipTabContent/Fellows/FellowCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const FellowCard: React.FC<Fellow> = ({
2222
width={150}
2323
height={150}
2424
src={profilePic.url}
25-
className="mb-6 aspect-square object-contain"
25+
className="mb-6 aspect-square rounded-2xl object-contain"
2626
alt="Profile pic"
2727
/>
2828

frontend/src/components/ResearchDevelopment/TabSection/FellowshipTabContent/Fellows/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Fellows: React.FC<{ fellows: Fellow[] }> = ({ fellows }) => {
2323
itemsPerPage * (page - 1),
2424
Math.min(fellows.length, itemsPerPage * page),
2525
),
26-
[itemsPerPage, page],
26+
[itemsPerPage, fellows, page],
2727
);
2828

2929
return (

frontend/src/app/for-lawyers/components/KlerosFellowSection/index.tsx renamed to frontend/src/components/ResearchDevelopment/TabSection/FellowshipTabContent/KlerosFellowSection/index.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import clsx from "clsx";
22
import Image from "next/image";
33

4-
import ExternalLink from "@/components/ExternalLink";
54
import { request } from "@/utils/graphQLClient";
65

76
import {
87
ForLawyersPageBecomeAFellowSection,
98
forLawyersPageBecomeAFellowSectionQuery,
10-
} from "../../queries/kleros-become-a-fellow-section";
9+
} from "./queries";
1110

1211
const KlerosFellowSection: React.FC = async () => {
1312
const {
@@ -16,7 +15,6 @@ const KlerosFellowSection: React.FC = async () => {
1615
firstSubtitle,
1716
secondSubtitle,
1817
fellowImages,
19-
arrowLink,
2018
} = (
2119
await request<ForLawyersPageBecomeAFellowSection>(
2220
forLawyersPageBecomeAFellowSectionQuery,
@@ -28,7 +26,7 @@ const KlerosFellowSection: React.FC = async () => {
2826
className={clsx(
2927
"bg-background-2",
3028
"flex flex-col gap-16",
31-
"px-6 py-12 lg:px-32 lg:py-24",
29+
"py-12 lg:py-24",
3230
)}
3331
>
3432
<div className="flex flex-col gap-8">
@@ -52,12 +50,6 @@ const KlerosFellowSection: React.FC = async () => {
5250
/>
5351
))}
5452
</div>
55-
56-
<ExternalLink
57-
text={arrowLink.text}
58-
url={arrowLink.link.url}
59-
className="mx-auto"
60-
/>
6153
</div>
6254
);
6355
};

0 commit comments

Comments
 (0)