Skip to content

Commit

Permalink
build: initialized project
Browse files Browse the repository at this point in the history
  • Loading branch information
irffanasiff committed Nov 19, 2022
0 parents commit 1712c75
Show file tree
Hide file tree
Showing 53 changed files with 7,934 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["next", "next/core-web-vitals", "eslint:recommended"],
"globals": {
"React": "readonly"
},
"rules": {
"no-unused-vars": [1, { "args": "after-used", "argsIgnorePattern": "^_" }]
}
}
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*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

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

pnpm build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.7.0
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.yarn
.next
dist
node_modules
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
}
}
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div align="center">

<img src="/public/superteamLogo.jpeg" width="140px" height="140px" />

<h1>Superteam Reputation</h1>

<p>
<strong>Reputation Dashboard for Superteam DAO</strong>
</p>
</div>

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
50 changes: 50 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
// ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
// docs: Documentation only changes
// feat: A new feature
// fix: A bug fix
// perf: A code change that improves performance
// refactor: A code change that neither fixes a bug nor adds a feature
// style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
// test: Adding missing tests or correcting existing tests

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'translation',
'security',
'changeset',
],
],
},
};
80 changes: 80 additions & 0 deletions config/chakra.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { extendTheme, ThemeConfig } from '@chakra-ui/react';
import { Button } from '../theme/components/button';
import { fonts } from '../theme/fonts';
import { styles } from '../theme/styles';
import { tabsTheme } from '../theme/components/tabs';
import { Tag } from '../theme/components/tag';

const config: ThemeConfig = {
initialColorMode: 'dark',
useSystemColorMode: false,
};

const theme = extendTheme({
colors: {
superteam_white: '#fff',
superteam_black: {
200: '#232A34', // table border color
700: '#22252B',
800: '#1C2028', // table hover/expanded/heading background
900: '#171A21',
},
superteam_gray: {
100: '#D5DBE0',
200: '#BBCBDB',
300: '#799BBE',
400: '#495D72',
500: '#45576A',
600: '#545C6D',
900: '#1E222A',
},
superteam_blue: {
100: '#202442',
800: '#8773ff',
900: '#0022D6',
},
superteam_cyan: {
100: '#163642',
800: '#0BD3FF',
},
superteam_green: {
100: '#14352C',
700: '#00A67E',
800: '#00CF6C',
},
superteam_pink: {
100: '#3A1E41',
800: '#FF34F7',
},
superteam_red: {
100: '#3A182D',
800: '#FF0B71',
},
superteam_yellow: {
100: '#3A3B1E',
800: '#FFF50B',
},
superteam_orange: {
100: '#332A1C',
700: '#FFCA0D',
800: '#CD8700',
},
superteam_tusk: {
100: '#303C22',
800: '#BAFF26',
},
superteam_brown: {
300: '#BE8A79',
},
},
config,
styles,
fonts,
components: {
Button,
Tag,
Tabs: tabsTheme,
},
});

export default theme;
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};

module.exports = nextConfig;
49 changes: 49 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "superteam-reputation",
"version": "0.2.0",
"private": true,
"engines": {
"node": ">=18",
"pnpm": "^7.16.1",
"yarn": "forbidden, use pnpm",
"npm": "forbidden, use pnpm"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"prettier": "prettier --write .",
"prepare": "husky install"
},
"dependencies": {
"@chakra-ui/anatomy": "^2.1.0",
"@chakra-ui/react": "^2.4.1",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@notionhq/client": "^2.2.2",
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"airtable": "^0.11.5",
"apexcharts": "^3.36.3",
"eslint": "8.27.0",
"eslint-config-next": "13.0.3",
"framer-motion": "^7.6.6",
"next": "13.0.3",
"react": "18.2.0",
"react-apexcharts": "^1.4.0",
"react-dom": "18.2.0",
"react-icons": "^4.6.0",
"swr": "^1.3.0",
"typescript": "4.8.4"
},
"devDependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"husky": "^8.0.2",
"only-pnpm": "^1.0.5",
"prettier": "^2.7.1"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 1712c75

Please sign in to comment.