Skip to content

Commit 08c37fe

Browse files
Kapil GowruKapil Gowru
authored andcommitted
feat: added iconography for all specs
1 parent c5f1afe commit 08c37fe

File tree

2 files changed

+28
-53
lines changed

2 files changed

+28
-53
lines changed

fern/assets/styles.css

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -561,30 +561,30 @@ a[href*="changelog"] svg {
561561
min-height: 100vh;
562562
position: relative;
563563

564-
.dashed-pattern-left {
564+
/* Hide the Radix wrapper only when it contains the fern anchor */
565+
[data-radix-popper-content-wrapper]:has(a.fern-anchor) {
566+
display: none !important;
567+
}
568+
569+
.dashed-pattern {
565570
position: absolute;
566-
left: -1rem;
567571
top: 0;
568572
height: 100%;
569573
width: 1rem;
570574
opacity: 1;
571575
pointer-events: none;
572-
border-right: 1px solid var(--grayscale-5);
573576
mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0 ) 100%);
574577
-webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
575578
}
576579

580+
.dashed-pattern-left {
581+
left: -1rem;
582+
border-right: 1px solid var(--grayscale-5);
583+
}
584+
577585
.dashed-pattern-right {
578-
position: absolute;
579586
right: -1rem;
580-
top: 0;
581-
height: 100%;
582-
width: 1rem;
583-
opacity: 1;
584-
pointer-events: none;
585587
border-left: 1px solid var(--grayscale-5);
586-
mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
587-
-webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
588588
}
589589

590590
.main-content {
@@ -621,33 +621,30 @@ a[href*="changelog"] svg {
621621
grid-template-rows: repeat(2, 1fr);
622622
}
623623

624-
.sdks-card {
624+
/* Reusable panel card */
625+
.panel-card {
625626
border-top: 1px solid var(--grayscale-5);
626627
padding: 2rem;
627628
display: flex;
628629
flex-direction: column;
629630
gap: 1.5rem;
631+
}
632+
633+
.panel-card.with-left-border {
634+
border-left: 1px solid var(--grayscale-5);
635+
}
636+
637+
.sdks-card {
630638
grid-column: 1 / 2;
631639
grid-row: 1 / 2;
632640
}
633641

634642
.docs-card {
635-
border-top: 1px solid var(--grayscale-5);
636-
border-left: 1px solid var(--grayscale-5);
637-
padding: 2rem;
638-
display: flex;
639-
flex-direction: column;
640643
gap: 1rem;
641644
grid-row: 1 / 3;
642645
}
643646

644-
.ai-search-card {
645-
border-top: 1px solid var(--grayscale-5);
646-
padding: 2rem;
647-
display: flex;
648-
flex-direction: column;
649-
gap: 1.5rem;
650-
}
647+
/* .ai-search-card inherits base panel styles */
651648

652649
.card-header {
653650
display: flex;
@@ -688,17 +685,7 @@ a[href*="changelog"] svg {
688685
position: relative;
689686
}
690687

691-
.sdks-preview-img {
692-
width: 100%;
693-
object-fit: cover;
694-
}
695-
696-
.docs-preview-img {
697-
width: 100%;
698-
object-fit: cover;
699-
}
700-
701-
.ai-search-preview-img {
688+
.preview-img {
702689
width: 100%;
703690
object-fit: cover;
704691
}
@@ -794,11 +781,9 @@ a[href*="changelog"] svg {
794781

795782
.community-card-header {
796783
display: flex;
797-
align-items: center;
798784
gap: 0.5rem;
799785
flex-direction: column;
800786
align-items: flex-start;
801-
802787
}
803788

804789
.specs-card {

fern/products/home/pages/welcome.mdx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,15 @@ hide-toc: true
66
layout: custom
77
---
88

9-
<style>
10-
{`
11-
/* Hide the Radix wrapper only when it contains the fern anchor */
12-
[data-radix-popper-content-wrapper]:has(span[id^="radix-"]) {
13-
display: none !important;
14-
}
15-
`}
16-
</style>
179

1810
import { FernFooter } from "../../../components/FernFooter";
1911

2012
<div className="lp-page-container">
2113
{/* Main Content */}
2214
<div className="main-content">
23-
{/* Dashed Pattern - Left Side */}
24-
<div className="dashed-pattern-left"></div>
25-
26-
{/* Dashed Pattern - Right Side */}
27-
<div className="dashed-pattern-right"></div>
15+
{/* Dashed Pattern */}
16+
<div className="dashed-pattern dashed-pattern-left"></div>
17+
<div className="dashed-pattern dashed-pattern-right"></div>
2818
{/* Hero Section */}
2919
<div className="hero-section">
3020
<div className="hero-title-container">
@@ -40,7 +30,7 @@ import { FernFooter } from "../../../components/FernFooter";
4030
{/* Feature Grid */}
4131
<div className="feature-grid">
4232
{/* SDKs Card */}
43-
<div className="sdks-card">
33+
<div className="panel-card sdks-card">
4434
<div className="card-header">
4535
<a className="card-title" href="/sdks/overview/introduction">
4636
SDKs
@@ -113,7 +103,7 @@ import { FernFooter } from "../../../components/FernFooter";
113103
</div>
114104

115105
{/* Docs Card */}
116-
<div className="docs-card">
106+
<div className="panel-card with-left-border docs-card">
117107
<div className="card-header">
118108
<a className="card-title" href="/docs/getting-started/overview">
119109
Docs
@@ -172,7 +162,7 @@ import { FernFooter } from "../../../components/FernFooter";
172162
</div>
173163

174164
{/* AI Search Card */}
175-
<div className="ai-search-card">
165+
<div className="panel-card ai-search-card">
176166
<div className="card-header">
177167
<a className="card-title" href="/ask-fern/getting-started/what-is-ask-fern">
178168
Ask Fern

0 commit comments

Comments
 (0)