-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add logos of folks providing free infra (#482)
Co-authored-by: Erick Zhao <[email protected]>
- Loading branch information
1 parent
1ace4c3
commit 3b9e9de
Showing
7 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.