Skip to content

Commit e455f73

Browse files
kgowruKapil Gowrudsinghvi
authored
fix: styling and fonts (#152)
Co-authored-by: Kapil Gowru <kapil-fern@mac.mynetworksettings.com> Co-authored-by: Deep Singhvi <deep@usebirch.com>
1 parent e3478e7 commit e455f73

File tree

4 files changed

+81
-29
lines changed

4 files changed

+81
-29
lines changed
37.7 KB
Binary file not shown.

fern/assets/custom-styles.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
* {
2+
-webkit-font-smoothing: antialiased;
3+
-moz-osx-font-smoothing: grayscale;
4+
-o-font-smoothing: antialiased;
5+
-webkit-appearance: none;
6+
appearance: none;
7+
}
8+
19
.fern-logo-container {
210
margin-left: -8px;
311
}
@@ -46,6 +54,9 @@
4654
border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
4755
}
4856

57+
.fern-breadcrumb-item {
58+
font-weight: 500;
59+
}
4960

5061
.fern-mdx-link svg {
5162
display: none !important;

fern/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ typography:
287287
bodyFont:
288288
name: MonumentGrotesk
289289
paths:
290+
- path: ./assets/ABCMonumentGrotesk-Light.woff2
291+
style: normal
292+
weight: "300"
290293
- path: ./assets/ABCMonumentGrotesk-Regular.woff2
291294
style: normal
292295
weight: "400"

fern/pages/home.mdx

Lines changed: 67 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ hide-feedback: true
1919
width: 100%;
2020
height: 50%;
2121
z-index: -1;
22-
opacity: 0.2;
22+
opacity: 0.1;
2323
}
2424
2525
.image-2 {
@@ -33,7 +33,7 @@ hide-feedback: true
3333
width: 100%;
3434
height: 50%;
3535
z-index: 1;
36-
opacity: 0.2;
36+
opacity: 0.1;
3737
}
3838
3939
@keyframes bigPulse {
@@ -45,26 +45,46 @@ hide-feedback: true
4545
0%, 100% { transform: scale(1.1); }
4646
50% { transform: scale(1); }
4747
}
48-
48+
49+
.bg-noise {
50+
background-position: 0 0;
51+
background-size: 5rem 10rem;
52+
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/6789751936e0c7bd371e8cf2_noise-full.webp);
53+
54+
z-index: -1;
55+
opacity: 0.7;
56+
justify-content: center;
57+
align-items: center;
58+
width: calc(100% + 5rem);
59+
height: calc(100% + 5rem);
60+
display: flex;
61+
position: absolute;
62+
top: 0;
63+
left: 0;
64+
}
65+
66+
:is(.dark) .bg-noise {
67+
background-color: #0d101a;
68+
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/noise-dark-mode.png);
69+
}
70+
71+
4972
.banner {
5073
border-width: 0px !important;
5174
border-radius: 16px;
52-
background-color: #2A2522;
5375
z-index: 2;
54-
55-
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/6789751936e0c7bd371e8cf2_noise-full.webp);
56-
background-position: 5px 0;
57-
background-size: 5rem 10rem;
5876
justify-content: center;
5977
align-items: center;
6078
height: calc(100% + 5rem);
6179
display: flex;
6280
justify-content: space-between;
81+
overflow: hidden;
82+
position: relative;
83+
background-color: #F3EFEC;
6384
}
6485
65-
/* Add dark mode styles */
66-
:is(.light) .banner {
67-
background-color: #F3EFEC;
86+
:is(.dark) .banner {
87+
background-color: #0d101a;
6888
}
6989
7090
.fern-card .flex-row.items-start {
@@ -120,31 +140,37 @@ hide-feedback: true
120140
}
121141
122142
.product-card .fern-card {
123-
border-width: 0px !important;
124-
background-color: #DFE0F6;
125-
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/6789751936e0c7bd371e8cf2_noise-full.webp);
126-
background-position: 5px 0;
127-
background-size: 5rem 10rem;
128143
padding-bottom: 0px !important;
129144
padding-left: 12px;
130145
padding-right: 12px;
146+
border: 1px solid transparent;
147+
148+
overflow: hidden;
149+
position: relative;
150+
151+
background-color: #DFE0F6;
152+
}
153+
154+
.product-card .fern-card .text-base {
155+
font-weight: 500;
131156
}
132157
133158
:is(.dark) .product-card .fern-card {
134-
background-color: #F4E6DD;
159+
background-color: #0d101a;
135160
}
136161
137162
:is(.dark) .product-card .fern-card .t-muted {
138-
background-color: #EECDB8;
139-
border-color: #EECDB8;
163+
background-color: #0d101a;
164+
border-color: #171c29;
140165
}
141166
142167
:is(.dark) .product-card .fern-card .t-muted p {
143-
background-color: #E67E22;
168+
background-color: #0d101a;
169+
144170
}
145171
146172
:is(.dark) .product-card .fern-card .text-base {
147-
color: black;
173+
color: white;
148174
}
149175
150176
.product-card .fern-card .items-start {
@@ -159,7 +185,7 @@ hide-feedback: true
159185
border-radius: 12px;
160186
border-bottom-left-radius: 0px;
161187
border-bottom-right-radius: 0px;
162-
border-bottom-width: 12px;
188+
border-bottom-width: 0px;
163189
height: 100% !important;
164190
margin-top: 10px !important;
165191
height: 85% !important;
@@ -169,6 +195,8 @@ hide-feedback: true
169195
color: white;
170196
background-color: #747FDB;
171197
border-radius: 10px;
198+
border-bottom-left-radius: 0px;
199+
border-bottom-right-radius: 0px;
172200
padding-left: 16px;
173201
padding-right: 16px;
174202
padding-top: 12px;
@@ -185,18 +213,20 @@ hide-feedback: true
185213
}
186214
187215
.gradient-card .fern-card {
188-
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/6789751936e0c7bd371e8cf2_noise-full.webp);
189-
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/6789751936e0c7bd371e8cf2_noise-full.webp), linear-gradient(73.23deg, #4F62DB 0%, #9BA3EA 100%);
190-
background-position: 0 0;
191-
background-size: 100% 100%;
192-
border-width: 0px !important;
216+
border: 1px solid transparent;
217+
background-image: linear-gradient(73.23deg, #4F62DB 0%, #9BA3EA 100%);
218+
background-position: -5px -5px;
219+
background-size: 102% 102%;
220+
position: relative;
221+
overflow: hidden;
193222
}
194223
195224
:is(.dark) .gradient-card .fern-card {
196-
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/6789751936e0c7bd371e8cf2_noise-full.webp), linear-gradient(73.23deg, #E67E22 0%, #E98B2A 100%);
225+
background-image: linear-gradient(73.23deg, #0d101a 0%, #212436 100%);
197226
}
198227
199228
.gradient-card .fern-card .text-base {
229+
font-weight: 500;
200230
color: white;
201231
}
202232
@@ -256,8 +286,9 @@ hide-feedback: true
256286
<div class="image-2"></div>
257287

258288
<div class="fern-card border p-6 center banner">
289+
<div class="bg-noise"></div>
259290
<div class="col">
260-
<h3>Industry-leading models on a developer-first API</h3>
291+
<h2>Industry-leading models on a developer-first API</h2>
261292
<p class="t-muted">
262293
Your AI product strategy depends on the foundation that powers it. Make sure you build on the best.
263294
</p>
@@ -270,6 +301,7 @@ hide-feedback: true
270301
loop
271302
muted
272303
playsInline
304+
controls
273305
>
274306
<source src="https://assemblyaiusercontent.com/landing/videos_landing-fuzzco-preview.mp4" type="video/mp4" />
275307
</video>
@@ -281,12 +313,15 @@ hide-feedback: true
281313
<div class="gradient-card">
282314
<CardGroup cols={2}>
283315
<Card title="Transcribe an audio file" href="/docs/getting-started/transcribe-an-audio-file">
316+
<div class="bg-noise"></div>
284317
Learn how to transcribe audio files with our SDK
285318
</Card>
286319
<Card title="Transcribe streaming audio" href="/docs/getting-started/transcribe-streaming-audio/python">
320+
<div class="bg-noise"></div>
287321
Learn how to transcribe live audio from a microphone
288322
</Card>
289323
<Card title="Apply LLMs to audio" href="/docs/getting-started/apply-ll-ms-to-audio-files">
324+
<div class="bg-noise"></div>
290325
Learn how to analyze audio content with LLMs
291326
</Card>
292327
<Card title="Cookbooks" href="/docs/build-with-assembly-ai/guides">
@@ -303,20 +338,23 @@ hide-feedback: true
303338
icon={<img src="https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/1441.svg" />}
304339
href="/docs/speech-to-text/speech-recognition"
305340
>
341+
<div class="bg-noise"></div>
306342
Models for converting audio files, video files, and live speech into text.
307343
</Card>
308344
<Card
309345
title="LeMUR"
310346
icon={<img src="https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/1442.svg" />}
311347
href="/docs/lemur/summarize-your-audio-data"
312348
>
349+
<div class="bg-noise"></div>
313350
LeMUR is a framework for applying Large Language Models (LLMs) to spoken data.
314351
</Card>
315352
<Card
316353
title="Audio Intelligence"
317354
icon={<img src="https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/1443.svg" />}
318355
href="/docs"
319356
>
357+
<div class="bg-noise"></div>
320358
Models for interpreting audio for business and personal workflows.
321359
</Card>
322360
</CardGroup>

0 commit comments

Comments
 (0)