Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 1.33 KB

CONTRIBUTION_GUIDE.md

File metadata and controls

27 lines (17 loc) · 1.33 KB

Contribution guide

This document covers the conventions and paradigms used in this codebase. We generally try to keep things simple in hopes that it will be easy to dive in and contribute.

Components

We rely heavily on Material UI. When a component exists in Material UI, use it instead of creating one by hand.

Styles

  • Currently we use inline styles. The plan is to continue doing so until performance issues arise.
  • We use a 4px grid system. All padding, margins, and widths should be divisible by 4.
  • When using the main theme colors (white, black, or purple), please use Material UI's useTheme hook.

Translations

All displayed text must support translation - for this we use react-intl. Translation keys are verbatum English abbreviations of the displayed text in all caps. You can see some examples in /locale/en.json.

If you want to help translate the project, that is very much appreciated and needed, but please don't do it by manually editing files in /locale. Your changes will wind up getting overwritten by Transloadit.

Conventions

  • Any file with a React component should have the suffix .jsx
  • Code specific to a certain page goes in /src/pages
  • Components that are reused widely go in /src/components
  • Post any questions in Github issues or send an email to [email protected]
  • Thanks for contributing =)