Skip to content

Commit 4421cf0

Browse files
author
Kapil Gowru
committed
feat: adding social logos
1 parent bf6ab54 commit 4421cf0

File tree

10 files changed

+90
-19
lines changed

10 files changed

+90
-19
lines changed

fern/assets/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
appearance: none;
77
}
88

9+
#builtwithfern {
10+
display: none !important;
11+
}
12+
913
.motivation p {
1014
max-width: unset !important;
1115
}

fern/footer-dist/output.js

Lines changed: 31 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fern/products/home/pages/welcome.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ layout: custom
88

99
import { FernFooter } from "../../../components/FernFooter";
1010

11-
<style>
12-
{`
13-
#builtwithfern {
14-
display: none !important;
15-
}
16-
`}
17-
</style>
18-
1911
<div className="absolute inset-0 z-[-1] box-border block">
2012
<div
2113
style={{

footer/src/FernFooter.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,26 @@ export const FernFooter: React.FC = () => {
129129
gap: 1rem;
130130
}
131131
132+
.footer-column-socials {
133+
display: flex;
134+
flex-direction: column;
135+
gap: 1rem;
136+
}
137+
138+
.footer-social-icon {
139+
width: 1.5rem;
140+
height: 1.5rem;
141+
border-radius: 0.25rem;
142+
143+
&:hover {
144+
background-color: var(--grayscale-a4);
145+
146+
img {
147+
fill: var(--grayscale-a12);
148+
}
149+
}
150+
}
151+
132152
.footer-link {
133153
font-weight: 400;
134154
font-size: 0.875rem;
@@ -283,6 +303,21 @@ export const FernFooter: React.FC = () => {
283303
<a href="https://buildwithfern.com/terms-of-service" className="footer-link">Terms of Service</a>
284304
</div>
285305
</div>
306+
307+
<div className="footer-column-socials">
308+
<a href="https://github.com/fern-api/fern" className="footer-link">
309+
<img src="/images/github-light.svg" alt="YouTube" className="footer-social-icon dark:hidden" />
310+
<img src="/images/github-dark.svg" alt="YouTube" className="footer-social-icon hidden dark:block" />
311+
</a>
312+
<a href="https://www.youtube.com/@buildwithfern" className="footer-link">
313+
<img src="/images/x-light.svg" alt="X" className="footer-social-icon dark:hidden" />
314+
<img src="/images/x-dark.svg" alt="X" className="footer-social-icon hidden dark:block" />
315+
</a>
316+
<a href="https://www.linkedin.com/company/buildwithfern" className="footer-link">
317+
<img src="/images/linkedin-light.svg" alt="LinkedIn" className="footer-social-icon dark:hidden" />
318+
<img src="/images/linkedin-dark.svg" alt="LinkedIn" className="footer-social-icon hidden dark:block" />
319+
</a>
320+
</div>
286321
</div>
287322
</div>
288323
</footer>

footer/src/images/github-dark.svg

Lines changed: 4 additions & 0 deletions
Loading

footer/src/images/github-light.svg

Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

footer/src/images/x-dark.svg

Lines changed: 3 additions & 0 deletions
Loading

footer/src/images/x-light.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)