Skip to content

Commit 27b271e

Browse files
committed
Add OSS pledge logo & tweak related footer styling
1 parent 28e1793 commit 27b271e

File tree

5 files changed

+29
-8
lines changed

5 files changed

+29
-8
lines changed

src/components/elements/icon/custom/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import JavaLogo from './java-logo.svg';
1212
import LinuxLogo from './linux-logo.svg';
1313
import Logo from './logo';
1414
import NodeLogo from './node-logo.svg';
15+
import OpenSourcePledge from './open-source-pledge.svg';
1516
import ProductHuntLogo from './product-hunt-logo.svg';
1617
import PythonLogo from './python-logo.svg';
1718
import RubyLogo from './ruby-logo.svg';
@@ -35,6 +36,7 @@ export {
3536
LinuxLogo,
3637
Logo,
3738
NodeLogo,
39+
OpenSourcePledge,
3840
ProductHuntLogo,
3941
PythonLogo,
4042
RubyLogo,
Loading

src/components/elements/icon/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
AppleLogo,
6464
LinuxLogo,
6565
NodeLogo,
66+
OpenSourcePledge,
6667
DenoLogo,
6768
BunLogo,
6869
FirefoxLogo,

src/components/layout/footer/footer.styles.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ export const StyledColumn = styled.div`
4343
@media (min-width: ${screens.xl}) {
4444
flex-direction: column;
4545
min-width: 398px;
46-
gap: 76px;
47-
}
48-
49-
& *:first-child > svg {
50-
width: 170px;
51-
height: 26px;
46+
gap: 57px;
5247
}
5348
}
5449
@@ -193,7 +188,7 @@ export const StyledIconsWrapper = styled.div`
193188
flex-direction: row;
194189
justify-content: space-between;
195190
align-items: end;
196-
gap: 76px;
191+
gap: 57px;
197192
198193
@media (min-width: ${screens.md}) {
199194
flex-direction: column;

src/components/layout/footer/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { OpenSourcePledge } from '@/components/elements/icon/custom';
12
import { FooterColumnBlock } from './components/footer-column-block';
23
import { FooterCopy } from './components/footer-copy';
34
import {
@@ -38,7 +39,7 @@ export const Footer = ({ withoutNewsletter }: FooterProps) => {
3839
<StyledContainer>
3940
<StyledColumn>
4041
<Link href="/" aria-label="HTTP Toolkit homepage">
41-
<HalfColoredLogo />
42+
<HalfColoredLogo width="170px" />
4243
</Link>
4344
<StyledIconsWrapper>
4445
<Stack>
@@ -54,6 +55,11 @@ export const Footer = ({ withoutNewsletter }: FooterProps) => {
5455
</Link>
5556
</Stack>
5657
</Stack>
58+
<Stack $direction="row">
59+
<Link href="https://opensourcepledge.com/">
60+
<OpenSourcePledge fill="#f00" width="120px" alt="Open Source Pledge member" />
61+
</Link>
62+
</Stack>
5763
<ThemeToggle id="themetogglefooter" />
5864
</StyledIconsWrapper>
5965
</StyledColumn>

0 commit comments

Comments
 (0)