Skip to content

Commit

Permalink
Update sponsors, remove ads (#704)
Browse files Browse the repository at this point in the history
Related to #461
  • Loading branch information
styfle committed Mar 7, 2021
1 parent 7000023 commit 6e1a2f4
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 30 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<img src="https://packagephobia.com/logo.svg" width=40 height=40 align="left" />
<img src="https://packagephobia.com/logo.svg" width="40" height="40" align="left" />

# Package Phobia

[![sponsor](https://badgen.net/badge/sponsor/styfle/black?icon=github)](https://github.com/sponsors/styfle)
[![tests](https://github.com/styfle/packagephobia/workflows/Tests/badge.svg)](https://github.com/styfle/packagephobia/actions?workflow=Tests)
![uptime](https://badgen.net/uptime-robot/week/m783908968-e68af1e88fe9d03309911b73)
[![lgtm](https://badgen.net/lgtm/grade/javascript/g/styfle/packagephobia?label=quality)](https://lgtm.com/projects/g/styfle/packagephobia/)
[![style: prettier](https://badgen.net/badge/style/prettier/ff69b4)](https://github.com/prettier/prettier)

<a href="https://turnoff.us/geek/npm-install/"><img src="https://turnoff.us/image/en/npm-install.png" width=300 height=400 align="right" /></a>
<a href="https://turnoff.us/geek/npm-install/"><img src="https://turnoff.us/image/en/npm-install.png" width="300" height="400" align="right" /></a>

- ⚖️ Find the cost of adding a new dependency to your project
- 🕗 Save yourself time and disk space with this web app
Expand Down Expand Up @@ -138,9 +136,10 @@ Below are some other users who comically point out this JS bloat.

See [CONTRIBUTING.md](https://github.com/styfle/packagephobia/blob/main/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/styfle/packagephobia/blob/main/CODE_OF_CONDUCT.md) before you start writing any code

## Sponsoring
## Sponsors

Get your name in this readme by [sponsoring this project](https://github.com/sponsors/styfle).
- Web hosting sponsored by [vercel.com](https://vercel.com/?utm_source=packagephobia)
- Database sponsored by [upstash.com](https://upstash.com/?ref=packagephobia)

## Author

Expand Down
15 changes: 0 additions & 15 deletions src/components/EthicalAd.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default (props: { autoFocus: boolean; defaultValue?: string }) => (
aria-label="Package Name"
id="p"
name="p"
placeholder="express"
placeholder="next"
autoCorrect="off"
autoCapitalize="off"
autoComplete="off"
Expand Down
106 changes: 106 additions & 0 deletions src/components/Sponsors.tsx

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,17 @@ body {
}
}
#ethicalad { margin-top: 1em; }
#sponsors { margin-top: 1em; }
#sponsors:before {
content: 'Sponsors';
color: #777;
font-weight: 300;
padding-left: 25%;
}
@media screen and (min-width: 75em) {
#ethicalad {
#sponsors {
position: absolute;
top: 5vh;
left: 1vw;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/compare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Footer from '../components/Footer';
import { getBadgeUrl } from '../util/badge';
import { Stat } from '../components/Stats';
import SearchBar from '../components/SearchBar';
import EthicalAd from '../components/EthicalAd';
import Sponsors from '../components/Sponsors';

export default ({ inputStr, results }: CompareProps) => {
const resultsToPrint = results.map(({ pkgSize, isLatest }) => {
Expand Down Expand Up @@ -76,7 +76,7 @@ export default ({ inputStr, results }: CompareProps) => {
</tbody>
</table>
</div>
<EthicalAd />
<Sponsors />
</PageContainer>
<Footer />
</>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import EthicalAd from '../components/EthicalAd';
import Sponsors from '../components/Sponsors';
import PageContainer from '../components/PageContainer';
import SearchBar from '../components/SearchBar';
import Footer from '../components/Footer';
Expand Down Expand Up @@ -48,7 +48,7 @@ export default () => (
</noscript>
</form>

<EthicalAd />
<Sponsors />
</PageContainer>
<Footer />
</>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SearchBar from '../components/SearchBar';
import Footer from '../components/Footer';
import Image from '../components/Image';
import LinkedLogos from '../components/LinkedLogos';
import EthicalAd from '../components/EthicalAd';
import Sponsors from '../components/Sponsors';

import { pages, versionUnknown } from '../util/constants';
import { getReadableFileSize } from '../util/npm-parser';
Expand Down Expand Up @@ -65,7 +65,7 @@ export default ({ pkgSize, readings, isLatest, inputStr }: ResultProps) => {
) : (
<Image width={350} height={350} file="tumblebeasts/tbstand2.png" />
)}
<EthicalAd />
<Sponsors />
</PageContainer>

<Footer />
Expand Down

1 comment on commit 6e1a2f4

@vercel
Copy link

@vercel vercel bot commented on 6e1a2f4 Mar 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.