Skip to content

Commit

Permalink
πŸŽ‰πŸŽ‰πŸŽ‰ Open Source πŸŽ‰πŸŽ‰πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezzhingy committed Oct 6, 2023
0 parents commit 3f76723
Show file tree
Hide file tree
Showing 556 changed files with 69,544 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
steps:
- label: "npm ci"
commands:
- "source use-node 14"
- "npm ci"
- "tar -czf node_modules.tar node_modules"
artifact_paths: "node_modules.tar"

- wait

- label: "Lint"
commands:
- "source use-node 14"
- "buildkite-agent artifact download node_modules.tar ."
- "tar -xzf node_modules.tar"
- "npm run lint"

- label: "Lighthouse CI"
commands:
- "source use-node 14"
- "buildkite-agent artifact download node_modules.tar ."
- "tar -xzf node_modules.tar"
- "CI=false npm run build"
- "npm install -g @lhci/cli@0.8.x"
- "lhci autorun"

- wait

- label: "Release and bump version"
commands:
- "source use-node 14"
- "buildkite-agent artifact download node_modules.tar . && tar -xzf node_modules.tar"
- ".ci/release.sh"
branches: "*.*"
12 changes: 12 additions & 0 deletions .ci/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
export CI=false
git checkout master
git pull

npm version $BUILDKITE_BRANCH --git-tag-version=false
npm run build

git commit -am "Bump version to $BUILDKITE_BRANCH [ci skip]"
git push origin master
git push -f origin master:release
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*.{js,jsx,ts,tsx}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_APP_ENV=development
1 change: 1 addition & 0 deletions .env.latest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_APP_ENV=latest
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_APP_ENV=production
1 change: 1 addition & 0 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_APP_ENV=staging
63 changes: 63 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:import/typescript",
"prettier"
],
"plugins": [
"@typescript-eslint",
"react",
"jsx-a11y",
"react-hooks",
"import"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/prop-types": "off",
"react/display-name": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/first": "warn",
"import/no-unused-modules": "warn",
"import/order": [
"warn",
{
"alphabetize": { "order": "asc", "caseInsensitive": true },
"newlines-between": "always",
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
]
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @hackathon/frontend
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report---.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: "Bug report \U0001F41B"
about: Create a report to help us improve
title: "\U0001F41B Bug: [INSERT_TITLE_HERE]"
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**Additional context**
Add any other context about the problem here.

**Screenshots/Videos**
If applicable, add any screenshots or videos to help explain your problem.

**Details (please complete the following information):**
- Reporter: [e.g. Steven]
- Path [e.g. https://hackthenorth.com/]
- Screen: [e.g. 1263w x 610h]
- Browser [e.g. Chrome (v84.0.4147.105)]
- Engine: [e.g. Blink (v84.0.4147.105)]
- OS: [e.g. Mac OS (v10.15.6)]
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/chore-task---.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "Chore task \U0001F4DA"
about: Describe this issue template's purpose here
title: "\U0001F4DA Chore: [INSERT_TITLE_HERE]"
labels: chore
assignees: ''

---

**Describe the chore**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context about the chore request here.

**Screenshots/Videos**
If applicable, add any screenshots or videos to help explain your problem.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request--.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request ✨
about: Suggest an idea for this project
title: "✨Feature: [INSERT_TITLE_HERE]"
labels: feature
assignees: ''

---

**Describe the feature**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context about the feature request here.

**Screenshots/Videos**
If applicable, add any screenshots or videos to help explain the feature.
26 changes: 26 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
### 🌻 Changes

- A bullet point describing each change, with screenshots attached as needed

### βœ… Checklist

- [ ] PR title contains `feature|fix|chore`
- [ ] PR is linked to relevant issue, if applicable
- [ ] Changes have been manually tested and working

- This is a

- [ ] New feature (adds functionality)
- [ ] Bug fix (resolves an issue)
- [ ] Chore (documentation, refactoring, etc)

- This PR contains

- [ ] 🚨 **Breaking** changes
- [ ] **Major** changes
- [ ] **Minor** changes
- [ ] **Patch**es

### πŸ”§ To do

- [ ] If PR is still a work in progress, list any outstanding tasks here and mark the PR as draft
21 changes: 21 additions & 0 deletions .github/workflows/auto-assign-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Auto Assign to Project

on:
issues:
types: [opened]
pull_request:
types: [opened]

env:
MY_GITHUB_TOKEN: ${{ secrets.FRONTEND_REPO_ACTIONS_TOKEN }}

jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to Frontend Project
steps:
- name: Assign NEW issues to the Frontend org-level project
uses: srggrs/assign-one-project-github-action@1.2.1
if: github.event.action == 'opened'
with:
project: 'https://github.com/orgs/hackathon/projects/9'
18 changes: 18 additions & 0 deletions .github/workflows/pr-verify-linked-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Verify Issue Linked to PR

on:
pull_request:
types: [opened, reopened]
check_run:

jobs:
verify_linked_issue:
runs-on: ubuntu-latest
name: Ensure Pull Request has a linked issue.
steps:
- name: Verify Linked Issue
uses: hattan/verify-linked-issue-action@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.FRONTEND_REPO_ACTIONS_TOKEN }}
with:
message: 'heLLO?? :anger: :anger: you!! have u seen the time? :point_right::arrow_right::point_right: its BEEP BEEP TIME TO LINK AN ISSUE :angry: either link an issue or mention it using #<issue_id> :-1:'
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

.idea/
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run type-check && npm run lint
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.9.1
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions .typo-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
dictionaries:
- en
- en_GB

excluded_words:
- hackthenorth
- quai
- lottie

spellcheck_filenames: true
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"jpoissonnier.vscode-styled-components",
"lightyen.tailwindcss-intellisense-twin",
"wix.vscode-import-cost"
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
1 change: 1 addition & 0 deletions .vscode/snipsnap.code-snippets

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Hack the North website

[![Build status](https://badge.buildkite.com/e0b3634fe73c0173056e76fc7c7c22626524d5811c699e1c1f.svg?branch=release)](https://buildkite.com/hack-the-north/hack-the-north-website) [![Netlify Status](https://api.netlify.com/api/v1/badges/f47627a9-5c63-49d2-a3c2-03399ef48964/deploy-status)](https://app.netlify.com/sites/hackthenorth/deploys)

### Check it out

πŸ‘‰πŸ‘‰πŸ‘‰ [hackthenorth.com](https://hackthenorth.com) πŸ‘ˆπŸ‘ˆπŸ‘ˆ

### Running locally

First, clone the repo

```
$ git clone https://github.com/hackathon/hackthenorth.com.git
$ cd hackthenorth.com
```

Then install dependencies and get it running

```
$ npm install
$ npm start
```

Navigate to `localhost:3000` in your browser and give it a look πŸ‘€

### Tech stack

- [React](https://reactjs.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [Create React App](https://github.com/facebook/create-react-app/)
- [TailwindCSS](https://tailwindcss.com/)
- [Emotion](https://emotion.sh/docs/introduction)
- [twin.macro](https://github.com/ben-rogerson/twin.macro)
- [Netlify](https://www.netlify.com/)
- [Buildkite](https://buildkite.com)
- [Bugsnag](https://www.bugsnag.com)

### License

Our code is licensed under the MIT license. All other assets are copyright of Hack the North.

### Cheers

Built with ❀️ by [Bradley](https://github.com/bradleyhrc), [Emma](https://github.com/emmahuangg), [Eugene](https://github.com/Ezzhingy), [Ivan](https://github.com/IvanYu327), [Jennifer](https://github.com/jennifer-lu), [Lisa](https://github.com/lisazhao30), and [Roselyn](https://github.com/roselynh100) with the help of the rest of the [Hack the North](https://github.com/orgs/hackathon/people) team.
2 changes: 2 additions & 0 deletions decs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare module "react-lottie-player";
declare module "react-scrollama";
Loading

0 comments on commit 3f76723

Please sign in to comment.