Commit Graph

440 Commits

Author SHA1 Message Date
Antti Pitkänen
8076d2de4b Prettier changes (NFC) 2023-02-28 15:21:50 +02:00
Riku Rouvila
a00450dfb5 migrate koodiklinikka backend to fly.io 2022-09-25 11:49:59 +03:00
Aarni Koskela
71921eab5e Upgrade all the dependencies! 2022-05-05 15:05:20 +02:00
Aarni Koskela
e485b064e6 Merge pull request #96 from koodiklinikka/kaikki-tuareeks
Upgrade dependencies, port Stylus to SCSS
2022-02-11 16:13:18 +02:00
Aarni Koskela
331b3d07d0 Remove custom CSS-inlining HEAD 2022-02-11 15:51:58 +02:00
Aarni Koskela
b03519ec5f Remove font-awesome 2022-02-11 15:51:58 +02:00
Aarni Koskela
592886621d Migrate Stylus to SCSS 2022-02-11 15:51:58 +02:00
Aarni Koskela
ede079cd1f Run prettier 2022-02-11 15:30:11 +02:00
Aarni Koskela
fa188b6556 Modernize ESlint config 2022-02-11 15:30:10 +02:00
Aarni Koskela
648798e11f Yarn upgrade all the things 2022-02-11 14:49:11 +02:00
Aarni Koskela
8b9838a32e Add .nvmrc to clue Netlify in 2022-02-11 14:49:11 +02:00
Riku Rouvila
f9dd15a587 Build site at midnight (#84) 2020-10-07 19:51:26 +03:00
Riku Rouvila
3dce6e19b1 Render channel list dynamically based on channel activity (#80)
* render channel list dynamically based on channel activity

* rename slack message markdown transformer

* add hashtag before rendered channel names

* tune styles and add secondary channel listing

* remove emoji-dictionary
2020-10-02 12:59:39 +03:00
Olavi Haapala
0eba06f861 Inline the CSS for improved first paint performance (#81)
* Upgrade Next.js from 9.1.2 to 9.5.3

* Inline the CSS for improved first paint performance

* Change ENV to NODE_ENV

Possibly the CSS was not minified due to this
2020-09-30 15:12:47 +03:00
Pete Nykänen
9b08b2b8bd Fix logo on the README (#83)
* Fix logo on the readme.md

* Fix README link

* Use relative URL for the logo
2020-09-30 15:11:49 +03:00
Erno Salo
b84c162c65 Decrease .feed width at a certain screen size (#79) 2020-09-23 16:54:05 +03:00
Erno Salo
46f51f8237 Fix: Command for running server (#78) 2020-09-23 16:29:21 +03:00
Olavi Haapala
ca5b251c7c Fix some performance issues
* Remove render blocking stripe JS that seems unnecessary
* Use native lazy loading of images
  - Truly a progressive enhancement, only affects browsers that support it
  - Causes a warning: [Intervention] An <img> element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323, which can not be easily fixed
* Render content first, hydrate after that
2020-09-22 21:46:25 +03:00
Aarni Koskela
fb4fb44ef6 Optimize meta.jpg with ImageOptim (lossy 85%) 2020-09-22 18:34:11 +03:00
Aarni Koskela
9b148428aa DRY meta tags 2020-09-22 18:34:11 +03:00
Riku Rouvila
459f552d0e add missing social meta headers 2020-09-22 18:34:11 +03:00
Aarni Koskela
79c0fa7725 Travis: run on current LTS Node.js 2020-09-22 18:33:07 +03:00
Aarni Koskela
d50ba30115 Yarnify project 2020-09-22 18:33:07 +03:00
Aarni Koskela
691aac0351 Fix prettify script and run prettier 2020-09-22 18:25:39 +03:00
Riku Rouvila
7084d2e89e use Source Sans Pro and Lato
+ tune font sizes slightly
2020-09-22 18:08:19 +03:00
Aarni Koskela
cd4c0ca06b Burninate Surge.sh preview thing (#73) 2020-09-22 17:52:12 +03:00
Riku Rouvila
3ecaf01495 update input styles and simplify the html structure 2020-09-22 17:50:26 +03:00
Aarni Koskela
468d63704c Upgrades + warning fix (#70)
* Upgrade all the things!

* fix: heed 'viewport meta tags should not be used in _document.js's <Head>' warning
2020-09-22 17:08:47 +03:00
Riku Rouvila
c9a7d8fdc1 Revert "add link to memo"
This reverts commit 7055f40978.
2020-09-21 08:14:49 +03:00
Riku Rouvila
d1115af7ee add white symbol 2020-09-20 22:18:27 +03:00
Riku Rouvila
2cdef9016c add symbol image 2020-09-20 22:15:55 +03:00
Riku Rouvila
7055f40978 add link to memo 2020-09-20 21:50:18 +03:00
Riku Rouvila
a64c4f3b80 Update _redirects 2020-02-01 17:14:27 +02:00
Riku Rouvila
8056d98d44 add netlify redirects file 2020-01-31 10:26:45 +02:00
Daniel Schildt
758cc875b4 fix: update npm dependencies (#64)
- Update npm dependencies to fix 1 moderate severity vulnerability
  - Path: `next > webpack > terser-webpack-plugin > serialize-javascript`

Details from the command line:

```
❯ npm audit

=== npm audit security report ===

# Run `npm update terser-webpack-plugin --depth 3` to resolve 1 vulnerability

│ Moderate      │ Cross-Site Scripting
│ Package       │ serialize-javascript
│ Dependency of │ next│
│ Path          │ next > webpack > terser-webpack-plugin >
│               │ serialize-javascript
│ More info     │ https://npmjs.com/advisories/1426

found 1 moderate severity vulnerability in 11551 scanned packages
  run `npm audit fix` to fix 1 of them.

```
2020-01-23 19:30:13 +02:00
Daniel Schildt
87f45af570 docs: improve readability (#63)
- Improve readability of the documentation
- Improve Markdown consistency
- Add more headings to clarify the document structure
- Add syntax types to code blocks to improve Markdown rendering
- Add mention that Git is required as a system wide dependency
2020-01-23 19:29:59 +02:00
Riku Rouvila
52dc8a09e3 update author email 2020-01-13 20:18:40 +02:00
Riku Rouvila
eb2f276df5 add rare to sponsors 2020-01-13 20:18:08 +02:00
Riku Rouvila
e9b95ed09e add list of most popular channels 2020-01-13 20:00:32 +02:00
Riku Rouvila
d4411b4579 handle already_in_team error properly 2020-01-13 19:26:09 +02:00
Riku Rouvila
22eb942ce7 fix api address 2020-01-13 18:43:50 +02:00
Olavi Haapala
f4474523ad Chore/convert to typescript (#60)
* Convert to using TypeScript

Next.js v.9 allows converting an existing project to TS by simply renaming the files as TS files

* Fix type errors: Type 'string' is not assignable to type 'number'.

* Add mention about missing typings for javascript-time-ago

* Add GA_INITIALIZED to window

* Fix type error in feed transformers

* Model MembershipInfoForm state and props with TS

* Silence the typescript warning in MembershipInfoForm

* Add threshold to Fader props

* Fix Warning: Each child in a list should have a unique "key" prop.

Sponsors don't have ids – name is probably unique and can be used as a key

* Allow key as prop for SponsorLink

* Add type of the props for SponsorLink
2019-11-07 07:28:02 +02:00
Antti Lylander
bcc6619aee Input focus (#62)
* add peer dependencies for zeit and ts-pnp

* visually indicate focus on email input

* Revert "add peer dependencies for zeit and ts-pnp"

This reverts commit a13cfac8bb.
2019-11-05 09:48:33 +02:00
Olavi Haapala
663adf80ee Fix Warning: Each child in a list should have a unique "key" prop. (#59)
Sponsors don't have ids – name is probably unique and can be used as a key
2019-11-03 00:22:52 +02:00
Petri Partio
06614f7a6f Fix sponsor logos sizing/placement (#57) 2019-11-02 15:08:18 +02:00
Aarni Koskela
461a79ac4d Reinstate deploys (#56) 2019-10-31 01:59:29 -07:00
Aarni Koskela
dcf26deb0f Upgrade dependencies, etc. (#55)
* Run prettify

* Upgrade dependencies and switch out some libraries:

* timeago (freshly jquery dependent) -> ReactTimeAgo
* next-ga -> react-ga and custom plumbing

* Move static/ to public/static/

As per https://github.com/zeit/next.js/blob/master/errors/static-dir-deprecated.md

* Fix cons->icons typo

* Import only what's necessary from lodash (223 -> 180 kb)

* Asyncify MembershipInfoForm
2019-10-30 11:05:08 -07:00
Aarni Koskela
db98341a51 Merge pull request #54 from koodiklinikka/a11y-lint
Accessibility lint
2019-10-30 09:50:14 +02:00
Aarni Koskela
1d76be6b79 Hint that the header video is muted, so it doesn't need a caption track 2019-10-30 09:47:41 +02:00
Aarni Koskela
af08abfcb9 Enable eslint-plugin-jsx-a11y 2019-10-30 09:46:39 +02:00