Skip to content

Commit 1e6bce0

Browse files
Kapil GowruKapil Gowru
authored andcommitted
feat: add global footer
1 parent 2f5c526 commit 1e6bce0

32 files changed

+11786
-131
lines changed

fern/assets/styles.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -494,16 +494,16 @@
494494
align-items: center;
495495
gap: 0.25rem;
496496

497-
svg {
497+
/* svg {
498498
display: none !important;
499-
}
499+
} */
500500

501-
img {
501+
svg {
502502
transition: filter 150ms ease;
503503
}
504504

505505
&:hover {
506-
img {
506+
svg {
507507
filter: saturate(1) opacity(1);
508508
}
509509
}
@@ -545,10 +545,6 @@
545545
text-decoration: none;
546546
transition: background-color 150ms ease, color 150ms ease;
547547

548-
svg {
549-
display: none !important;
550-
}
551-
552548
&:hover {
553549
background-color: var(--grayscale-a4);
554550

@@ -560,6 +556,7 @@
560556

561557
.soc2-badge-img {
562558
width: 1.5rem;
559+
height: 1.5rem;
563560
background-color: #62636C;
564561
border-radius: 1000px;
565562
}

fern/components/FernFooter.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import React from 'react';
22
import { FernStatusWidget } from './FernStatus';
33

4-
import builtwithfernLight from './images/builtwithfern-light.svg';
5-
import builtwithfernDark from './images/builtwithfern-dark.svg';
6-
import builtwithfernFrameLight from './images/builtwithfern-frame-light.svg';
7-
import builtwithfernFrameDark from './images/builtwithfern-frame-dark.svg';
8-
import soc2 from './images/soc2.svg';
4+
import { BuiltWithFernLight } from './images/builtwithfern-light';
5+
import { BuiltWithFernDark } from './images/builtwithfern-dark';
6+
import { BuiltWithFernFrameLight } from './images/builtwithfern-frame-light';
7+
import { BuiltWithFernFrameDark } from './images/builtwithfern-frame-dark';
8+
import { Soc2Logo } from './images/soc2';
99

1010
export const FernFooter = () => {
1111
return (
1212
<footer className="footer">
1313
<div className="footer-top">
1414
{/* Left Column - Logo and Status */}
1515
<a className="footer-logo" href="https://buildwithfern.com">
16-
<img src={builtwithfernLight} alt="Fern" className="footer-logo-img dark:hidden" />
17-
<img src={builtwithfernDark} alt="Fern" className="footer-logo-img hidden dark:block" />
16+
<BuiltWithFernLight className="footer-logo-img dark:hidden" />
17+
<BuiltWithFernDark className="footer-logo-img hidden dark:block" />
1818

19-
<img src={builtwithfernFrameLight} alt="Fern" className="footer-logo-frame dark:hidden" />
20-
<img src={builtwithfernFrameDark} alt="Fern" className="footer-logo-frame hidden dark:block" />
19+
<BuiltWithFernFrameLight className="footer-logo-frame dark:hidden" />
20+
<BuiltWithFernFrameDark className="footer-logo-frame hidden dark:block" />
2121
</a>
2222

2323
<div className="footer-status">
@@ -28,7 +28,7 @@ export const FernFooter = () => {
2828
<FernStatusWidget />
2929

3030
<a className="soc2-badge" href="https://security.buildwithfern.com/">
31-
<img src={soc2} alt="Soc 2 Type II" className="soc2-badge-img" />
31+
<Soc2Logo className="soc2-badge-img" />
3232
<span className="status-text">Soc 2 Type II</span>
3333
</a>
3434
</div>

fern/components/FernStatus.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export const FernStatusWidget = () => {
160160
cursor: pointer;
161161
text-decoration: none;
162162
transition: background-color 150ms ease, color 150ms ease;
163+
height: 2rem;
163164
}
164165
165166
.fern-status-widget svg {

fern/components/images/soc2.svg

Lines changed: 0 additions & 112 deletions
This file was deleted.

fern/components/images/soc2.tsx

Lines changed: 128 additions & 0 deletions
Large diffs are not rendered by default.

fern/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,8 @@ layout:
122122

123123
experimental:
124124
mdx-components:
125-
- ./components
125+
- ./components
126+
127+
js:
128+
- path: ./dist/output.js
129+
strategy: beforeInteractive

0 commit comments

Comments
 (0)