Skip to content

Commit 6db550a

Browse files
committed
refactor(frontend): explicit-text-color
1 parent 16596fc commit 6db550a

File tree

32 files changed

+80
-51
lines changed

32 files changed

+80
-51
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const Hero: React.FC = async () => {
1717
return (
1818
<div className="relative px-6 pb-28 pt-44 md:pt-52 lg:px-32 lg:pb-60">
1919
<div className="space-y-8">
20-
<h1 className="pt-1 text-2xl font-medium lg:pt-3 lg:text-4xl">
20+
<h1 className="pt-1 text-2xl font-medium text-primary-text lg:pt-3 lg:text-4xl">
2121
{header}
2222
</h1>
23-
<p className="max-w-[685px] text-lg">{subtitle}</p>
23+
<p className="max-w-[685px] text-lg text-primary-text">{subtitle}</p>
2424
<div className="flex flex-wrap gap-6">
2525
{buttons.map((button) => (
2626
<CustomLink key={button.text} href={button.link.url}>

frontend/src/app/home/components/CaseStudies.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ const CaseStudies: React.FC = async () => {
1616
return (
1717
<div className="bg-background-2 px-6 py-12 lg:px-32 lg:pt-24">
1818
<div className="flex flex-col gap-8">
19-
<h3 className="text-xl font-medium lg:text-3xl">{title}</h3>
20-
<p className="text-base lg:text-lg">{subtitle}</p>
19+
<h3 className="text-xl font-medium text-primary-text lg:text-3xl">
20+
{title}
21+
</h3>
22+
<p className="text-base text-primary-text lg:text-lg">{subtitle}</p>
2123
</div>
2224
<div className="mt-16 grid grid-cols-1 gap-4 lg:grid-cols-3">
2325
{cards.map(({ title, subtitle, icon, link }) => (

frontend/src/app/home/components/GetInTouch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const GetInTouch: React.FC = async () => {
1919
}
2020
>
2121
<div>
22-
<h3 className="mb-8 text-xl font-medium lg:mb-12 lg:text-3xl">
22+
<h3 className="mb-8 text-xl font-medium text-primary-text lg:mb-12 lg:text-3xl">
2323
{title}
2424
</h3>
25-
<p className="mb-6 lg:mb-8 lg:text-lg">{subtitle}</p>
25+
<p className="mb-6 text-primary-text lg:mb-8 lg:text-lg">{subtitle}</p>
2626
<ExternalLink className="mb-16" text={link.text} url={link.link.url} />
2727
</div>
2828
<Image

frontend/src/app/home/components/Hero.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ const Hero: React.FC = async () => {
2626
return (
2727
<div className="relative px-6 pb-28 pt-44 md:pt-52 lg:px-32 lg:pb-20">
2828
<div className="space-y-8">
29-
<h1 className="text-2xl font-medium lg:text-4xl">{title}</h1>
30-
<p className="text-lg">{subtitle}</p>
29+
<h1 className="text-2xl font-medium text-primary-text lg:text-4xl">
30+
{title}
31+
</h1>
32+
<p className="text-lg text-primary-text">{subtitle}</p>
3133
<div className="lg:hidden">
3234
<CustomLink href={primaryButton.link.url}>
3335
<Button>

frontend/src/app/home/components/HowKlerosWorks.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ const HowKlerosWorks: React.FC = async () => {
2121
<label className="text-base text-primary-purple lg:text-lg">
2222
{label}
2323
</label>
24-
<h3 className="text-xl font-medium lg:text-3xl">{title}</h3>
25-
<p className="text-base lg:text-lg">{subtitle}</p>
24+
<h3 className="text-xl font-medium text-primary-text lg:text-3xl">
25+
{title}
26+
</h3>
27+
<p className="text-base text-primary-text lg:text-lg">{subtitle}</p>
2628
</div>
2729
<ResponsiveImage
2830
mobileProps={{

frontend/src/app/home/components/LearnPosts.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ const LearnPosts: React.FC = async () => {
1818
return (
1919
<div className="bg-background-1 px-6 py-12 lg:px-32 lg:py-24">
2020
<div className="flex flex-col gap-8">
21-
<h3 className="text-xl font-medium lg:text-3xl">{title}</h3>
22-
<p className="text-base lg:text-lg">{subtitle}</p>
21+
<h3 className="text-xl font-medium text-primary-text lg:text-3xl">
22+
{title}
23+
</h3>
24+
<p className="text-base text-primary-text lg:text-lg">{subtitle}</p>
2325
<div
2426
className={
2527
"mx-auto mb-12 mt-16 flex flex-wrap gap-4 xl:grid xl:grid-cols-3"

frontend/src/app/home/components/StartEarning.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ const LearnPosts: React.FC = async () => {
1717
return (
1818
<div className="bg-background-2 px-6 py-12 lg:px-32 lg:py-24">
1919
<div className="flex flex-col gap-8">
20-
<h3 className="text-xl font-medium lg:text-3xl">{title}</h3>
21-
<p className="text-base lg:text-lg">{subtitle}</p>
20+
<h3 className="text-xl font-medium text-primary-text lg:text-3xl">
21+
{title}
22+
</h3>
23+
<p className="text-base text-primary-text lg:text-lg">{subtitle}</p>
2224
<div className="mx-auto mt-4 grid grid-cols-1 gap-4 md:grid-cols-2">
2325
{cards.map(({ icon, title, subtitle }) => (
2426
<CtaCard key={title} {...{ icon, title, description: subtitle }} />

frontend/src/app/home/components/TokenStats.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ const TokenStats: React.FC<{
1212
{tokenStats.map(({ key, primaryValue, secondaryValue }) => (
1313
<div key={key} className="flex flex-col">
1414
<div className="flex flex-row">
15-
<h3 className="text-2xl font-medium">{primaryValue}</h3>
15+
<h3 className="text-2xl font-medium text-primary-text">
16+
{primaryValue}
17+
</h3>
1618
<h3 className="text-2xl text-primary-blue">{secondaryValue}</h3>
1719
</div>
18-
<p className="font-medium">{key}</p>
20+
<p className="font-medium text-primary-text">{key}</p>
1921
</div>
2022
))}
2123
</div>

frontend/src/app/home/components/UseCases.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const UseCases: React.FC = async () => {
1717
"space-y-8 bg-background-2 px-6 pb-12 lg:space-y-12 lg:px-32 lg:pb-24"
1818
}
1919
>
20-
<h3 className="text-xl font-medium lg:text-3xl"> {title} </h3>
20+
<h3 className="text-xl font-medium text-primary-text lg:text-3xl">
21+
{" "}
22+
{title}{" "}
23+
</h3>
2124
<UseCasesCards />
2225
<ExternalLink
2326
text={arrowLink.text}

frontend/src/components/BrandAssets/Hero.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ const Hero: React.FC<IHero> = ({ heroData }) => {
1515
return (
1616
<div className="relative px-6 pb-28 pt-44 md:pt-52 lg:px-32 lg:pb-[302px]">
1717
<div className="space-y-6">
18-
<h1 className="pt-1 text-2xl font-medium lg:pt-3 lg:text-4xl">
18+
<h1 className="pt-1 text-2xl font-medium text-primary-text lg:pt-3 lg:text-4xl">
1919
{heroData.header}
2020
</h1>
21-
<p className="max-w-[685px] text-lg">{heroData.subtitle}</p>
21+
<p className="max-w-[685px] text-lg text-primary-text">
22+
{heroData.subtitle}
23+
</p>
2224
<div>
2325
<CustomLink href={heroData.button?.link?.url}>
2426
<Button variant="secondary">

0 commit comments

Comments
 (0)