Skip to content

Commit

Permalink
Merge pull request #272 from newsguildny/vote-counts
Browse files Browse the repository at this point in the history
[work in progress] live vote counts
  • Loading branch information
kohlmannj committed Mar 2, 2022
2 parents 82bb40b + b015bef commit 4e9e5cb
Show file tree
Hide file tree
Showing 90 changed files with 2,871 additions and 4 deletions.
1,427 changes: 1,427 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-3340e2eb10-8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
"process:headshots": "./scripts/process_testimonial_headshots.sh"
},
"dependencies": {
"@firebase/app": "^0.7.17",
"@svgr/webpack": "^5.4.0",
"@types/js-yaml": "^4.0.3",
"date-fns": "^2.11.1",
"firebase": "^9.6.7",
"gray-matter": "^4.0.2",
"js-yaml": "^4.1.0",
"lite-youtube-embed": "^0.2.0",
Expand All @@ -31,6 +33,7 @@
"normalize.css": "^8.0.1",
"react": "^17.0.2",
"react-accessible-accordion": "^3.3.4",
"react-confetti": "^6.0.1",
"react-dom": "^17.0.2",
"react-instagram-embed": "^1.5.0",
"react-schemaorg": "^1.2.0",
Expand Down
33 changes: 33 additions & 0 deletions src/components/LivePill.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { headerText, headerBackground } from '../lib/styles/tokens/colors';
import { sansSerifSizes } from '../lib/styles/tokens/fonts';

export const LivePill = ({ outlined = false, small = false }) => (
<>
<span className={`live-pill ${outlined ? 'outlined' : 'filled'}${small ? ' small' : ''}`}>
live
</span>
<style jsx>{`
.live-pill {
box-sizing: border-box;
display: inline-block;