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

Latest commit

 

History

History
48 lines (34 loc) · 1.42 KB

CONTRIBUTING.md

File metadata and controls

48 lines (34 loc) · 1.42 KB

Contributing

First, thank you for contributing! Here’s some basics about our codebase.

Quick Start

  1. Clone the repository and enter it
git clone https://github.com/hackclub/site.git
cd site
```sh
2. Install packages & run
```sh
yarn && yarn run dev
  1. It should now be running, open localhost:8000 to view

Organization

This site is a standard Gatsby site, so:

  • Pages are in src/pages/. They use unnamed default exports (e.g. export default () => ()).
  • Components are in src/components/. They use named default exports (e.g. class Hello extends Component {} + export default Hello).

Formatting

In all prose (form labels, text blocks, etc), use rich quotes.

For code formatting, we use Prettier with options. Before committing, run yarn run fmt and you’re good to go.

Design System

This site uses the Hack Club Design System for all UI primitives (Text, Buttons, etc).

  • Use styled-components to add any custom styling to DS components.
  • Whenever style utility props (whitespace, color, etc) might be used, make use of DS’s components.
  • If style utility props aren’t needed, use JSX tags or styled.tag for performance.

Images

Before adding images (in static/), resize them to a logical size and run Guetzli on them for optimization.