Skip to content

Commit

Permalink
feat: add logos of folks providing free infra (#482)
Browse files Browse the repository at this point in the history
Co-authored-by: Erick Zhao <[email protected]>
  • Loading branch information
MarshallOfSound and erickzhao authored Dec 9, 2023
1 parent 1ace4c3 commit 3b9e9de
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/theme/Footer/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import React from 'react';
import clsx from 'clsx';

import styles from './styles.module.scss';

export default function FooterLayout({
style,
links,
logo,
copyright,
}: {
style: string;
links: React.ReactNode;
logo: React.ReactNode;
copyright: React.ReactNode;
}) {
return (
<footer
className={clsx('footer', {
'footer--dark': style === 'dark',
})}
>
<div className="container container-fluid">
{links}
{(logo || copyright) && (
<div className={styles.footerSplit}>
<div className="footer__bottom text--left">
{logo && <div className="margin-bottom--sm">{logo}</div>}
{copyright}
</div>
<div className="footer__bottom text--right">
<div className="margin-bottom--sm">
Hosting and infrastructure graciously provided by
</div>
<div className={styles.logoCluster}>
<img src="/assets/third-parties/azure.png" />
<img
src="/assets/third-parties/heroku_dark.png"
className={styles.darkOnly}
/>
<img
src="/assets/third-parties/heroku_light.png"
className={styles.lightOnly}
/>
<img
src="/assets/third-parties/datadog_dark.png"
className={styles.darkOnly}
/>
<img
src="/assets/third-parties/datadog_light.png"
className={styles.lightOnly}
/>
</div>
</div>
</div>
)}
</div>
</footer>
);
}
46 changes: 46 additions & 0 deletions src/theme/Footer/Layout/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.footerSplit {
@media (max-width: 768px) {
display: flex;
flex-direction: column-reverse;
flex-wrap: wrap;

> :first-child,
> :last-child {
text-align: center;
}
}

> div {
display: inline-block;
width: 50%;

@media (max-width: 768px) {
width: 100%;

&:last-child {
margin-bottom: 24px;
}
}
}
}

.logoCluster > img {
margin: 0 12px;
height: 40px;
}

.darkOnly {
display: none;
}

.lightOnly {
display: none;
}

[data-theme='dark'] .darkOnly {
display: initial;
}

[data-theme='light'] .lightOnly {
display: initial;
}
Binary file added static/assets/third-parties/azure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/third-parties/datadog_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/third-parties/datadog_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/third-parties/heroku_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/third-parties/heroku_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b9e9de

Please sign in to comment.