Skip to content

Commit 1d54982

Browse files
authored
Update: Change typography (#20)
1 parent b3dc76f commit 1d54982

File tree

13 files changed

+52
-25
lines changed

13 files changed

+52
-25
lines changed

app/(inferenceai)/inferenceai/[lang]/home.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function WhyWorkWithUs({ lang }: { lang: SupportedLanguage }) {
6969
columns={{ base: 1, sm: 1, md: 3, lg: 3 }}
7070
cardClassName="rounded-[20px]"
7171
borderClassName="card-border-gradient"
72-
titleClassName="text-white"
72+
titleClassName="text-white md:text-lg"
7373
lang={lang}
7474
/>
7575
</GridItemsSection>
@@ -131,8 +131,10 @@ function HowItWorks({ lang }: { lang: SupportedLanguage }) {
131131
? "border-white/20 bg-[#2E2843] shadow-lg shadow-white/10 ring-1 ring-white/10"
132132
: "border-white/10"
133133
)}>
134-
<h3 className="mb-1 font-semibold text-white">{item.title}</h3>
135-
<p className="text-sm text-[#AFB0C3] text-muted-foreground">
134+
<h3 className="mb-1 text-xl font-semibold text-white">
135+
{item.title}
136+
</h3>
137+
<p className="text-base text-[#AFB0C3] text-muted-foreground">
136138
{item.description}
137139
</p>
138140
</Card>
@@ -168,7 +170,9 @@ function WhatYouGet({ lang }: { lang: SupportedLanguage }) {
168170
className="relative flex flex-col items-start justify-start gap-4 pl-6">
169171
<div className="absolute left-0 top-0 h-full w-[2px] bg-gradient-to-b from-transparent via-white/20 to-transparent" />
170172
<Image src={item.icon} alt={item.title} width={32} height={32} />
171-
<p className="text-sm text-white/90 md:text-base">{item.title}</p>
173+
<p className="text-base font-semibold text-white/90 md:text-xl">
174+
{item.title}
175+
</p>
172176
</div>
173177
))}
174178
</div>
@@ -191,7 +195,7 @@ function CaseStudies({ lang }: { lang: SupportedLanguage }) {
191195
cardClassName="rounded-2xl mt-8"
192196
borderClassName="card-border-gradient"
193197
categoryClassName="bg-white/10 text-white"
194-
titleClassName="text-white"
198+
titleClassName="text-white text=[22px] font-semibold"
195199
/>
196200
<div className="mt-8 flex w-full justify-center">
197201
<GridItemsMoreButton
@@ -245,7 +249,7 @@ function Faqs({ lang }: { lang: SupportedLanguage }) {
245249
<AccordionItem key={i} value={`faq-${i}`} asChild>
246250
<Card className="w-full border-none bg-[#1B1728] shadow-sm transition-all duration-300">
247251
<CardHeader className="px-4 py-2">
248-
<AccordionTrigger className="flex w-full items-center justify-between gap-2 text-left text-xl font-medium text-white no-underline hover:no-underline focus:no-underline">
252+
<AccordionTrigger className="flex w-full items-center justify-between gap-2 text-left text-lg font-medium text-white no-underline hover:no-underline focus:no-underline md:text-[22px]">
249253
{item.question}
250254
</AccordionTrigger>
251255
</CardHeader>
@@ -278,10 +282,10 @@ function CTASection({ lang }: { lang: SupportedLanguage }) {
278282
<div className="absolute inset-0 bg-black/30" />
279283
</div>
280284
<div className="relative z-20 space-y-4 text-white md:space-y-6">
281-
<h2 className="bg-gradient-to-b from-white to-[#0C1711] bg-clip-text text-center text-2xl font-semibold leading-[120%] tracking-[-0.02em] text-transparent drop-shadow-[0_2px_4px_rgba(0,0,0,0.6)] md:text-[48px]">
285+
<h2 className="text-center text-2xl font-semibold md:text-[48px]">
282286
{inferenceaiCtaHeading(lang)}
283287
</h2>
284-
<p className="mx-auto max-w-xl text-white/90 drop-shadow-[0_1px_3px_rgba(0,0,0,0.5)]">
288+
<p className="mx-auto max-w-xl text-lg md:text-[22px]">
285289
{inferenceaiCtaDesc(lang)}
286290
</p>
287291
<GridItemsMoreButton

app/(inferenceai)/inferenceai/components/hero.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ export default function Hero({ lang }: { lang: SupportedLanguage }) {
3434
animate={{ opacity: 1, y: 0 }}
3535
transition={{ duration: 1, ease: "easeOut" }}
3636
className="flex w-full flex-col items-center justify-center">
37-
<h1 className="font-figtree mb-4 mt-28 bg-gradient-to-b from-white to-[#0C1711] bg-clip-text text-center text-5xl font-semibold leading-[120%] tracking-[-0.02em] text-transparent md:mb-6 md:max-w-4xl md:text-6xl">
37+
<h1 className="mb-4 mt-28 text-center text-5xl font-semibold md:mb-6 md:max-w-4xl md:text-6xl">
3838
{inferenceaiHeroHeading(lang)}
3939
</h1>
4040

4141
<motion.p
4242
initial={{ opacity: 0, y: 20 }}
4343
animate={{ opacity: 1, y: 0 }}
4444
transition={{ delay: 0.3, duration: 1, ease: "easeOut" }}
45-
className="my-6 text-center text-base font-medium text-[#AFB0C3] md:my-10 md:max-w-3xl md:text-xl">
45+
className="my-6 text-center text-base font-medium text-[#AFB0C3] md:my-10 md:max-w-3xl md:text-[22px]">
4646
{inferenceaiHeroDesc(lang)}
4747
</motion.p>
4848

@@ -67,6 +67,8 @@ export default function Hero({ lang }: { lang: SupportedLanguage }) {
6767
fill
6868
className="object-cover object-center md:object-top"
6969
/>
70+
71+
<div className="pointer-events-none absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-[#020F15] to-transparent md:h-32" />
7072
</motion.div>
7173
</section>
7274
);

app/(inferenceai)/inferenceai/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export default function InferenceAILayout({
33
}: {
44
children: React.ReactNode;
55
}) {
6-
return <>{children}</>;
6+
return <div className="font-figtree">{children}</div>;
77
}

app/(main)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export default function MainLayout({
33
}: {
44
children: React.ReactNode;
55
}) {
6-
return <>{children}</>;
6+
return <div className="font-switzer">{children}</div>;
77
}

app/components/grid-items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export function GridItems({
251251
textRefs.current[idx] = el;
252252
}}
253253
className={cn(
254-
"transition-all duration-300",
254+
"text-base font-medium transition-all duration-300",
255255
expandedIndex !== idx && "line-clamp-4"
256256
)}>
257257
{description}

app/fonts/Figtree-Regular.ttf

39.6 KB
Binary file not shown.

app/fonts/Switzer-Variable.ttf

138 KB
Binary file not shown.

app/fonts/index.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// app/fonts.ts
2+
import localFont from "next/font/local";
3+
4+
export const figtree = localFont({
5+
src: "./Figtree-Regular.ttf",
6+
variable: "--font-figtree",
7+
weight: "100 900"
8+
});
9+
10+
export const switzer = localFont({
11+
src: "./Switzer-Variable.ttf",
12+
variable: "--font-switzer",
13+
weight: "100 900"
14+
});
15+
16+
export const geistSans = localFont({
17+
src: "./GeistVF.woff",
18+
variable: "--font-geist-sans",
19+
weight: "100 900"
20+
});
21+
export const geistMono = localFont({
22+
src: "./GeistMonoVF.woff",
23+
variable: "--font-geist-mono",
24+
weight: "100 900"
25+
});

app/layout.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@ import Console from "@/app/components/console";
88
import Script from "next/script";
99
import { Toaster } from "@/components/ui/sonner";
1010
import { AIAgent } from "@/app/components/ai-agent";
11-
12-
const geistSans = localFont({
13-
src: "../public/fonts/Switzer-Regular.woff2",
14-
variable: "--font-geist-sans",
15-
weight: "400 500"
16-
});
17-
const geistMono = localFont({
18-
src: "/../public/fonts/Switzer-Semibold.woff2",
19-
variable: "--font-geist-mono",
20-
weight: "600 700"
21-
});
11+
import { figtree, geistMono, geistSans, switzer } from "./fonts";
2212

2313
export const metadata: Metadata = {
2414
title: data.title,
@@ -58,7 +48,7 @@ export default function RootLayout({
5848
data-scroll="false"
5949
className={cn(
6050
"group",
61-
`${geistSans.variable} ${geistMono.variable} antialiased`,
51+
`${geistSans.variable} ${geistMono.variable} ${switzer.variable} ${figtree.variable} antialiased`,
6252
"bg-black leading-normal tracking-normal text-white"
6353
)}>
6454
{children}

public/fonts/Switzer-Bold.woff2

-19 KB
Binary file not shown.

0 commit comments

Comments
 (0)