EthicalSource / hippocratic-license-3

An ethical license for open source.
https://firstdonoharm.dev/
Other
33 stars 5 forks source link

Further improve module selector #35

Closed nilsnh closed 2 years ago

nilsnh commented 2 years ago

Milestone

This PR improves on code layout and module builder styling:

Getting there

  1. I refactored all the web components from being JavaScript files to be HTML files defined in the build.html frontmatter and imported by Hugo in the baseof.html file.
    • This simplified how HTML, CSS and JavaScript is written and formatted. And we can use Hugo to format and import resources into the web component code.
  2. I improved the sticky mobile menu so that when opened it does not scroll the whole site in the background.
  3. Furthermore I spent time tweaking how the "scroll-to-module" functionality works so that it mixes well with the sticky top header.
  4. I also added Husky for auto-formatting code using Prettier in a pre-commit hook.
  5. I added code to automatically hide the helper-text button in the license builder if no helper text is available for the given module. This should help us launch quicker, and write helper-text for modules if need be.

Interesting bits

What I need help with

What's next

After merging, this PR should allow us to:

netlify[bot] commented 2 years ago

✔️ Deploy Preview for hl3 ready!

🔨 Explore the source changes: 99acd396f85ed2f69d47134d19a568301fe136d9

🔍 Inspect the deploy log: https://app.netlify.com/sites/hl3/deploys/61f6e8b3daaf3d0007e9d08f

😎 Browse the preview: https://deploy-preview-35--hl3.netlify.app/build

CoralineAda commented 2 years ago

This is looking great so far!