diff --git a/frontend/package.json b/frontend/package.json index da42b2e..5844881 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -23,6 +23,7 @@ "react-use": "^17.6.0" }, "devDependencies": { + "@tailwindcss/postcss": "4.0.0", "@types/node": "^22.10.5", "@types/react": "^19.0.4", "@types/react-dom": "^19.0.2", @@ -34,8 +35,8 @@ "lint-staged": "^15.3.0", "postcss": "^8", "prettier": "^3.4.2", - "prettier-plugin-tailwindcss": "^0.6.9", - "tailwindcss": "^3.4.1", + "prettier-plugin-tailwindcss": "^0.6.11", + "tailwindcss": "4.0.0", "typescript": "^5" }, "volta": { diff --git a/frontend/postcss.config.mjs b/frontend/postcss.config.mjs index 1a69fd2..5d6d845 100644 --- a/frontend/postcss.config.mjs +++ b/frontend/postcss.config.mjs @@ -1,7 +1,7 @@ /** @type {import('postcss-load-config').Config} */ const config = { plugins: { - tailwindcss: {}, + '@tailwindcss/postcss': {}, }, }; diff --git a/frontend/src/app/for-lawyers/components/Card.tsx b/frontend/src/app/for-lawyers/components/Card.tsx index fd24a98..693d301 100644 --- a/frontend/src/app/for-lawyers/components/Card.tsx +++ b/frontend/src/app/for-lawyers/components/Card.tsx @@ -7,13 +7,13 @@ const Card: React.FC = ({ title, description, icon }) => { return (
Card Icon -

+

{title}

diff --git a/frontend/src/app/for-lawyers/components/Flowchart.tsx b/frontend/src/app/for-lawyers/components/Flowchart.tsx index b9526d2..be6de27 100644 --- a/frontend/src/app/for-lawyers/components/Flowchart.tsx +++ b/frontend/src/app/for-lawyers/components/Flowchart.tsx @@ -20,7 +20,7 @@ const FlowchartItem: React.FC = ({ "flex items-center justify-center p-6", )} > - + {name}
@@ -29,24 +29,24 @@ const FlowchartItem: React.FC = ({
- {index} + {index}
-
+

{description}

diff --git a/frontend/src/app/for-lawyers/components/Hero.tsx b/frontend/src/app/for-lawyers/components/Hero.tsx index de4efff..96eb41a 100644 --- a/frontend/src/app/for-lawyers/components/Hero.tsx +++ b/frontend/src/app/for-lawyers/components/Hero.tsx @@ -15,7 +15,7 @@ const Hero: React.FC = async () => { ).forLawyersPageHero; return ( -
+

{header} @@ -33,7 +33,7 @@ const Hero: React.FC = async () => {

{ alt="Hero Image Background" fill priority - className="absolute left-0 top-0 z-[-1] h-full object-cover" + className="absolute top-0 left-0 z-[-1] h-full object-cover" />
); diff --git a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/TabelCardContent.tsx b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/TabelCardContent.tsx index d2da1e2..fa590aa 100644 --- a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/TabelCardContent.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/TabelCardContent.tsx @@ -63,7 +63,7 @@ const TableCardContent: React.FC = ({ width={53.251} height={49.259} alt="Kleros-icon" - className="absolute right-[33.75px] top-[32px]" + className="absolute top-[32px] right-[33.75px]" /> ) : null}
diff --git a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/index.tsx b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/index.tsx index 27ee32d..aa50498 100644 --- a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/index.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ArbitrationMethodTable/index.tsx @@ -19,9 +19,9 @@ const ArbitrationMethodTable: React.FC = ({ >
@@ -29,9 +29,9 @@ const ArbitrationMethodTable: React.FC = ({
@@ -41,7 +41,7 @@ const ArbitrationMethodTable: React.FC = ({ className={clsx( "box-border rounded-3xl", "bg-[linear-gradient(0deg,_#5B2B99_0%,_#27CDFE_100%)]", - "absolute left-0 top-2/3 h-1/3 w-full p-[6px] lg:left-2/3 lg:top-0 lg:h-full lg:w-1/3", + "absolute top-2/3 left-0 h-1/3 w-full p-[6px] lg:top-0 lg:left-2/3 lg:h-full lg:w-1/3", )} >
{

{header}

-

+

{subtitle}

-

+

{flowchartLabel}

{secondHeader}

-

+

{secondSubtitle}

diff --git a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ResearchSection.tsx b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ResearchSection.tsx index 70aeafd..63eee2e 100644 --- a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ResearchSection.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/ResearchSection.tsx @@ -37,17 +37,17 @@ const ResearchSection: React.FC = ({ return (
-

+

{secondHeader}

-

{secondSubtitle}

+

{secondSubtitle}

{items.map((publication, index) => ( ))}
diff --git a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/index.tsx b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/index.tsx index e846dc5..d0745bc 100644 --- a/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/index.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosDisputeResolutionSection/index.tsx @@ -36,10 +36,10 @@ const KlerosDisputeResolutionSection: React.FC = async () => { )} >
-

+

{headerSubtitle}

-

+

{header}

{subtitle}

@@ -49,7 +49,7 @@ const KlerosDisputeResolutionSection: React.FC = async () => {
-

+

{thirdHeader}

{thirdSubtitle}

diff --git a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/DisputeResolutionProcess.tsx b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/DisputeResolutionProcess.tsx index 63941bb..83b6179 100644 --- a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/DisputeResolutionProcess.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/DisputeResolutionProcess.tsx @@ -17,8 +17,8 @@ const DisputeResolutionProcess: React.FC = ({
diff --git a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/HighlightedText.tsx b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/HighlightedText.tsx index aecf8d1..177947f 100644 --- a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/HighlightedText.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/HighlightedText.tsx @@ -8,7 +8,7 @@ const HighlightedText: React.FC< const FullText = ( @@ -28,14 +28,14 @@ const HighlightedText: React.FC< return ( {beforeMatch} diff --git a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/LemonCashSection.tsx b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/LemonCashSection.tsx index 14311d5..746da68 100644 --- a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/LemonCashSection.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/LemonCashSection.tsx @@ -21,17 +21,17 @@ const LemonCashSection: React.FC = async () => { return (
-

+

{header}

{primarySubtitle}

-

+

{secondarySubtitle}

@@ -40,7 +40,7 @@ const LemonCashSection: React.FC = async () => { height={180} src={icon.url} alt="Lemon cash" - className="flex-shrink-0" + className="shrink-0" />

{testimony}

diff --git a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/DesktopTable.tsx b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/DesktopTable.tsx index 050e892..8779a21 100644 --- a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/DesktopTable.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/DesktopTable.tsx @@ -10,8 +10,8 @@ const DesktopTable: React.FC = ({ table }) => { return (
= ({ table }) => {
- + {heading}
@@ -38,11 +38,11 @@ const DesktopTable: React.FC = ({ table }) => { key={rowHeading} className={clsx( "py-4", - rowIndex !== tableRows.length - 1 && "border-b border-b-stroke", + rowIndex !== tableRows.length - 1 && "border-b-stroke border-b", )} > {rowHeading} @@ -52,7 +52,7 @@ const DesktopTable: React.FC = ({ table }) => {
= ({ table }) => { rowIndex === tableRows.length - 1 && "rounded-bl-2xl border-none", // last element of each row - index === rowData.length - 1 && "!pr-8", + index === rowData.length - 1 && "pr-8!", //last row rowIndex === tableRows.length - 1 && "border-none", )} > -

+

{primaryValue}

-

+

{secondaryValue}

diff --git a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/MobileTable.tsx b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/MobileTable.tsx index 0efd117..1e2a08c 100644 --- a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/MobileTable.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/MethodsTable/MobileTable.tsx @@ -16,12 +16,12 @@ const TableItem: React.FC<{ return (
-

{heading}

{" "} +

{heading}

{" "} {tableHeadings.slice(1).map(({ heading }, index) => (
diff --git a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/index.tsx b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/index.tsx index d63f1f3..9e59636 100644 --- a/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/index.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosEnterpriseSection/index.tsx @@ -39,7 +39,7 @@ const KlerosEnterpriseSection: React.FC = async () => { >

{headerSubtitle}

-

+

{header}

diff --git a/frontend/src/app/for-lawyers/components/KlerosFellowSection/index.tsx b/frontend/src/app/for-lawyers/components/KlerosFellowSection/index.tsx index 4a68b18..7d58a68 100644 --- a/frontend/src/app/for-lawyers/components/KlerosFellowSection/index.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosFellowSection/index.tsx @@ -33,7 +33,7 @@ const KlerosFellowSection: React.FC = async () => { >

{headerSubtitle}

-

+

{header}

{firstSubtitle}

diff --git a/frontend/src/app/for-lawyers/components/KlerosMediationSection/index.tsx b/frontend/src/app/for-lawyers/components/KlerosMediationSection/index.tsx index adecd92..e00fc1d 100644 --- a/frontend/src/app/for-lawyers/components/KlerosMediationSection/index.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosMediationSection/index.tsx @@ -25,7 +25,7 @@ const KlerosMediationSection: React.FC = async () => { )} >
-

+

{header}

{subtitle}

@@ -34,7 +34,7 @@ const KlerosMediationSection: React.FC = async () => {
-

+

{benefitsHeader}

diff --git a/frontend/src/app/for-lawyers/components/KlerosParticipateSection/index.tsx b/frontend/src/app/for-lawyers/components/KlerosParticipateSection/index.tsx index 2182ad0..793d4e5 100644 --- a/frontend/src/app/for-lawyers/components/KlerosParticipateSection/index.tsx +++ b/frontend/src/app/for-lawyers/components/KlerosParticipateSection/index.tsx @@ -18,7 +18,7 @@ const KlerosParticipateSection: React.FC = async () => {

{headerSubtitle}

-

+

{header}

{subtitle}

diff --git a/frontend/src/app/home/components/Hero.tsx b/frontend/src/app/home/components/Hero.tsx index f8ab394..09f1852 100644 --- a/frontend/src/app/home/components/Hero.tsx +++ b/frontend/src/app/home/components/Hero.tsx @@ -24,7 +24,7 @@ const Hero: React.FC = async () => { } = heroData.homePageHero; return ( -
+

{title}

{subtitle}

@@ -45,7 +45,7 @@ const Hero: React.FC = async () => {
@@ -54,7 +54,7 @@ const Hero: React.FC = async () => { alt="Hero Image Background" fill priority - className="absolute left-0 top-0 z-[-1] h-full object-cover" + className="absolute top-0 left-0 z-[-1] h-full object-cover" />
); diff --git a/frontend/src/app/home/components/HowKlerosWorks.tsx b/frontend/src/app/home/components/HowKlerosWorks.tsx index 050c88c..6352f88 100644 --- a/frontend/src/app/home/components/HowKlerosWorks.tsx +++ b/frontend/src/app/home/components/HowKlerosWorks.tsx @@ -18,7 +18,7 @@ const HowKlerosWorks: React.FC = async () => { return (
-