Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mono mode to pause the rainbow #13

Merged
merged 4 commits into from
Apr 1, 2024
Merged

mono mode to pause the rainbow #13

merged 4 commits into from
Apr 1, 2024

Conversation

rdela
Copy link
Owner

@rdela rdela commented Apr 1, 2024

you cannot stop the rainbow. but sometimes you need to pause it.

  • feat: mono mode to pause the rainbow

Here in the world of eleventeen, rainbow is the default. But we acknowledge not all sites are a match for Rainbow Mode, and still want those sites to enjoy the rest of what eleventeen has to offer, so v9.2.3-alpha.5, adds a mono option to _data/metadata.js that will disable Rainbow Mode if you set it to true. mono is false by default, on purpose, because it beats making people set an option called rainbow to false and might make the current {%- if not metadata.mono %} template logic in _includes/layouts/base.njk a little more resilient.

rdela added 3 commits March 30, 2024 16:22
BREAKING CHANGE:

Now using node 20 in .nvmrc

from now on eleventeen support focuses on the active node LTS here:

https://github.com/nodejs/Release/blob/main/README.md#release-schedule
rainbutton will not display when JS is disabled, since it would not work
you cannot stop the rainbow. but sometimes you need to pause it.

- add mono option to disable rainbow mode features in eleventeen

- docs:

  + attempt to make emoji in readme and site more accessible
  thanks Rachel Leggett https://devyarns.com/accessible-emojis/
  and Beth Finke https://blog.easterseals.com/emojis-and-accessibility-the-dos-and-donts-of-including-emojis-in-texts-and-emails/

  + document MONO MODE in README.md

```diff
--- a/README.md
+++ b/README.md
+Here in the world of eleventeen, rainbow is the default. But we acknowledge not all sites are a match for Rainbow Mode, and still want those sites to enjoy the rest of what eleventeen has to offer, so [v9.2.3-alpha.5](https://github.com/rdela/eleventeen/releases/tag/v9.2.3-alpha.5), adds a `mono` option to [`_data/metadata.js`](_data/metadata.js) that will disable Rainbow Mode if you set it to `true`. `mono` is `false` by default, on purpose, because it beats making people set an option called `rainbow` to `false` and might make the current `{%- if not metadata.mono %}` template logic in [`_includes/layouts/base.njk`](_includes/layouts/base.njk) a little more resilient.
```
Copy link

netlify bot commented Apr 1, 2024

Deploy Preview for eleventeen ready!

Name Link
🔨 Latest commit 128ee9a
🔍 Latest deploy log https://app.netlify.com/sites/eleventeen/deploys/660b34f26e9aaa000841d558
😎 Deploy Preview https://deploy-preview-13--eleventeen.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@rdela rdela merged commit c905d42 into trunk Apr 1, 2024
6 checks passed
@rdela rdela deleted the mono branch April 1, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant