Skip to content

Commit ae5776b

Browse files
committed
fix(frontend): improve responsiveness tables
1 parent 703bb06 commit ae5776b

File tree

20 files changed

+88
-41
lines changed

20 files changed

+88
-41
lines changed

frontend/src/app/for-lawyers/components/Flowchart.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const FlowchartItem: React.FC<IFlowchartItem> = ({
1313
background,
1414
}) => {
1515
return (
16-
<div className="flex w-[284px] flex-col gap-6">
16+
<div className="flex max-w-[270px] flex-col gap-6">
1717
<div
1818
className={clsx(
1919
"h-[148px] rounded-2xl bg-[linear-gradient(90deg,_#D38BFF_0%,_#9747FF_100%)]",
@@ -60,7 +60,11 @@ interface IFlowchart {
6060

6161
const Flowchart: React.FC<IFlowchart> = ({ items, background }) => {
6262
return (
63-
<div className="flex w-full flex-wrap justify-center gap-4 md:justify-center">
63+
<div
64+
className={
65+
"mx-auto grid w-fit grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4"
66+
}
67+
>
6468
{items.map((item) => (
6569
<FlowchartItem key={item.name} {...item} background={background} />
6670
))}

frontend/src/app/for-lawyers/components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Hero: React.FC = async () => {
1818
return (
1919
<div className="relative px-6 pb-28 pt-44 md:pt-52 lg:px-32 lg:pb-60">
2020
<div className="space-y-8">
21-
<h1 className="pt-1 text-2xl font-medium lg:pt-3 lg:text-3xl">
21+
<h1 className="pt-1 text-2xl font-medium lg:pt-3 lg:text-4xl">
2222
{header}
2323
</h1>
2424
<p className="max-w-[685px] text-lg">{subtitle}</p>

frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const ArbitrationMethodTable: React.FC<IArbitrationMethodTable> = ({
1212
table,
1313
}) => {
1414
return (
15-
<div className="relative h-fit min-h-[1125px] w-full lg:min-h-[500px]">
15+
<div
16+
className={
17+
"relative h-fit min-h-[1125px] w-full lg:min-h-[500px] lg:px-32"
18+
}
19+
>
1620
<div
1721
className={clsx(
1822
"box-border rounded-3xl border-2 border-stroke bg-background-2",

frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/KlerosEscrowSection.tsx

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,37 @@ const KlerosEscrowSection: React.FC = async () => {
2323
).forLawyersPageKlerosEscrowSection;
2424
return (
2525
<div>
26-
<h1 className="mb-6 text-lg font-medium text-primary-text lg:text-2xl">
26+
<h1
27+
className={
28+
"mb-6 text-lg font-medium text-primary-text lg:px-32 lg:text-2xl"
29+
}
30+
>
2731
{header}
2832
</h1>
29-
<p className="mb-16 text-secondary-text lg:text-lg">{subtitle}</p>
33+
<p className="mb-16 text-secondary-text lg:px-32 lg:text-lg">
34+
{subtitle}
35+
</p>
3036

31-
<p className="mb-12 text-primary-purple lg:text-lg">{flowchartLabel}</p>
37+
<p className="mb-12 text-primary-purple lg:px-32 lg:text-lg">
38+
{flowchartLabel}
39+
</p>
3240
<Flowchart items={flowchart} background="secondary" />
3341

34-
<h2 className="mb-6 mt-12 text-lg font-medium text-primary-text lg:text-xl">
42+
<h2
43+
className={
44+
"mb-6 mt-12 text-lg font-medium text-primary-text lg:px-32 lg:text-xl"
45+
}
46+
>
3547
{secondHeader}
3648
</h2>
37-
<p className="mb-8 text-secondary-text lg:text-lg">{secondSubtitle}</p>
49+
<p className="mb-8 text-secondary-text lg:px-32 lg:text-lg">
50+
{secondSubtitle}
51+
</p>
3852

3953
<ExternalLink
4054
text={arrowLink.text}
4155
url={arrowLink.link.url}
42-
className="flex-wrap justify-center lg:justify-start"
56+
className="flex-wrap justify-center lg:justify-start lg:px-32"
4357
/>
4458
</div>
4559
);

frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ResearchSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const ResearchSection: React.FC<IResearchSection> = ({
3636
);
3737

3838
return (
39-
<div>
39+
<div className="lg:px-32">
4040
<h2 className="mb-6 text-lg font-medium text-primary-text lg:text-xl">
4141
{secondHeader}
4242
</h2>

frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ const KlerosDisputeResolutionSection: React.FC = async () => {
3232
className={clsx(
3333
"bg-background-2",
3434
"flex flex-col gap-16",
35-
"px-6 py-12 lg:px-32 lg:py-24",
35+
"px-6 py-12 lg:py-24",
3636
)}
3737
>
38-
<div className="flex flex-col gap-6">
38+
<div className="flex flex-col gap-6 lg:px-32">
3939
<h3 className="mb-6 text-primary-purple lg:text-lg">
4040
{headerSubtitle}
4141
</h3>
@@ -48,7 +48,7 @@ const KlerosDisputeResolutionSection: React.FC = async () => {
4848
<ArbitrationMethodTable table={arbitrationMethodTable} />
4949
<ResearchSection {...{ secondHeader, secondSubtitle, publications }} />
5050

51-
<div className="my-4">
51+
<div className="my-4 lg:px-32">
5252
<h2 className="mb-6 text-lg font-medium text-primary-text lg:text-xl">
5353
{thirdHeader}
5454
</h2>

frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/DisputeResolutionProcess.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const DisputeResolutionProcess: React.FC<IDisputeResolutionProcess> = ({
1414
processDiagram,
1515
}) => {
1616
return (
17-
<div className="flex flex-col gap-8">
17+
<div className="flex flex-col gap-8 lg:px-32">
1818
<HighlightedText
1919
{...disputeResolutionProcessHeader}
2020
fullTextStyle="!text-primary-text !text-lg !font-medium lg:!text-xl"

frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/LemonCashSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const LemonCashSection: React.FC = async () => {
2020
.lemonCashSection;
2121

2222
return (
23-
<div>
23+
<div className="lg:px-32">
2424
<h2 className="mb-6 text-lg font-medium text-primary-text lg:text-2xl">
2525
{header}
2626
</h2>

frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/DesktopTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ const DesktopTable: React.FC<IMethodsTable> = ({ table }) => {
4141
rowIndex !== tableRows.length - 1 && "border-b border-b-stroke",
4242
)}
4343
>
44-
<span className="break-words text-lg font-medium text-primary-purple">
44+
<span
45+
className={"break-words text-lg font-medium text-primary-purple"}
46+
>
4547
{rowHeading}
4648
</span>
4749
</div>

frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ const KlerosEnterpriseSection: React.FC = async () => {
3434
className={clsx(
3535
"bg-background-2",
3636
"flex flex-col gap-12 lg:gap-16",
37-
"px-6 py-12 lg:px-32 lg:py-24",
37+
"px-6 py-12 lg:py-24",
3838
)}
3939
>
40-
<div className="flex flex-col gap-6">
40+
<div className="flex flex-col gap-6 lg:px-32">
4141
<h3 className="text-primary-purple lg:text-lg">{headerSubtitle}</h3>
4242
<h1 className="text-xl font-medium text-primary-text lg:text-3xl">
4343
{header}
4444
</h1>
4545
<HighlightedText {...subtitle} />
4646
</div>
4747

48-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-3">
48+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-3 lg:px-32">
4949
{cards.map((card) => (
5050
<Card key={card.title} {...card} />
5151
))}
@@ -62,7 +62,7 @@ const KlerosEnterpriseSection: React.FC = async () => {
6262
<ExternalLink
6363
url={arrowLink.link.url}
6464
text={arrowLink.text}
65-
className="flex-wrap justify-center"
65+
className="flex-wrap justify-center lg:px-32"
6666
/>
6767
<MethodsTable {...{ table }} />
6868
</div>

0 commit comments

Comments
 (0)