Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/donate with nextjs #31

Merged
merged 48 commits into from
Nov 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
57d871d
Initial commit using nextjs architecture
Oct 25, 2019
cd55816
Updates yarn.lock
Oct 25, 2019
6a7cea2
Adds requirements for pip
Oct 25, 2019
d6c629d
Adds eslint
Oct 25, 2019
7e5347f
Adds be-a-mentor page
kbardi Oct 29, 2019
8e7c1ad
donate page working with next js
davidpaley Oct 29, 2019
4a6dd50
Update be a mentor form
kbardi Oct 29, 2019
cf27ed9
feature: donate working env variables. + Everything working with the …
davidpaley Oct 29, 2019
0dac6c6
Merge from master and update environment variables
kbardi Oct 29, 2019
7d6dbcd
adds trailing commas on nextjs config
kbardi Oct 29, 2019
8f95c71
remove unused component
kbardi Oct 29, 2019
6e6e412
Replace precommit action
kbardi Oct 29, 2019
ea29791
Merge and fixes lint errors
kbardi Oct 30, 2019
424ce2a
Fixes video button
kbardi Nov 11, 2019
bce6117
Adds annual report 2016
kbardi Nov 11, 2019
3b4c64e
Adds be a Friend...pending some fixes here
kbardi Nov 11, 2019
878c2cc
Some fixes on file uploader, still some improvements are pending
kbardi Nov 11, 2019
113f0d5
Adds ambassador page
kbardi Nov 11, 2019
dc1e829
Adds case studies page
kbardi Nov 11, 2019
ee86a7d
Adds coming soon page
kbardi Nov 11, 2019
e83d4a7
Adds contact form...Pending styles with Phone input
kbardi Nov 11, 2019
df5149b
Adds FAQs page
kbardi Nov 11, 2019
e0238d8
Adds founder page
kbardi Nov 11, 2019
20d4ebc
Adds hooded scholar page
kbardi Nov 11, 2019
651055d
Adds impact page
kbardi Nov 11, 2019
6cadf8b
Adds knowAime page
kbardi Nov 11, 2019
1daf459
Adds mentor page
kbardi Nov 11, 2019
51ff936
Adds quizzes page
kbardi Nov 11, 2019
0a0748b
Adds reports
kbardi Nov 11, 2019
f8b0539
Adds thanks page
kbardi Nov 11, 2019
bd8901e
Adds terms and conditions page
kbardi Nov 11, 2019
04babcd
Adds stories page
kbardi Nov 11, 2019
42d07d0
Adds theme as environment variable
kbardi Nov 12, 2019
c697275
Adds going global and fixes layout
kbardi Nov 15, 2019
150e09f
Improve going global with a big refactor
kbardi Nov 15, 2019
586b759
Adds story page
kbardi Nov 15, 2019
282c37d
fix: thanks page with next router
bfischetti Nov 15, 2019
3703f5d
Merge branch 'feature/donate-with-nextjs' of github.com:aimementoring…
bfischetti Nov 15, 2019
5772a8b
Refactor and some improvements
kbardi Nov 15, 2019
bc10157
Refactor and some improvements
kbardi Nov 15, 2019
cbd1cf2
Add some changes to improve build
kbardi Nov 20, 2019
054f9df
Adds improvements and merge PR https://github.com/aimementoring/websi…
kbardi Nov 20, 2019
16dfbfb
Merge PR https://github.com/aimementoring/website/pull/28 and some im…
kbardi Nov 20, 2019
824cd7c
Merge PR https://github.com/aimementoring/website/pull/30 and some im…
kbardi Nov 20, 2019
e51c891
Merge branch 'staging' into feature/donate-with-nextjs
kbardi Nov 21, 2019
437713f
Fixes carousel with slick dots
kbardi Nov 21, 2019
11127dd
Adds lazy loading to improve performance
kbardi Nov 21, 2019
c90903c
Fixes some visual issues in About page
kbardi Nov 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
59 changes: 59 additions & 0 deletions .copy.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
REACT_APP_AIRTABLE_API_KEY=keyQwkepkcSrWl1du
REACT_APP_AIRTABLE_UNIVERSITIES=app0cOinHqPnUCxv8

# REACT_APP_AIRTABLE_PROGRAM_BASE=appYBHhHUO92wVVmQ

REACT_APP_AIRTABLE_PROGRAM_BASE=appOb3djYNsRoz5sM
REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appMULeuYX8iG3MwF
# REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appiTNzrkMrckYbqk


REACT_APP_BUGSNAG_API_KEY=86d2b4e39996207965121833a890370d
# REACT_APP_CRAFT_API=https://aimeweb-backend.herokuapp.com/
# REACT_APP_CRAFT_API=http://192.168.33.10
REACT_APP_CRAFT_API=https://aimeweb-backend-staging.herokuapp.com/
HOST=127.0.0.1
AUTH0_RECRUITMENT_CLIENT_ID=[obtain_from_auth_0]
AUTH0_STAFF_CLIENT_ID=[obtain_from_auth_0]
AUTH0_DOMAIN=aimementoring-staging.auth0.com
REACT_APP_FILE_UPLOADER_API_KEY=AnpTaG2AITvSuOfoenIpKz
REACT_APP_BUGSNAG_KEY=a7e1073d7f3c8f5381afb5e8e68487ac
REACT_APP_HOST_ENV=development
REACT_APP_MENTOR_EOI_BASE_KEY=appfv6xbNhSMnOq1n
REACT_APP_PRO_IP_KEY=gXmk7M683Y6UBip

# PORTAL API DEV
REACT_APP_PORTAL_API=http://localhost:5001
# REACT_APP_PORTAL_API=https://aime-portal-api-staging.herokuapp.com


# APPAREL DEV OLD
# REACT_APP_SHOPIFY_ACCESS_TOKEN=535c29960e9fcb6390af679dc893ccec
# REACT_APP_SHOPIFY_URL=aimeapparel.myshopify.com

# APPAREL DEV
REACT_APP_SHOPIFY_ACCESS_TOKEN=a93e26c66798a13c9c9b4560784c26f2
REACT_APP_SHOPIFY_URL=aime-apparel-development.myshopify.com

# APPAREL PROD
# REACT_APP_SHOPIFY_ACCESS_TOKEN=560dd7f8110349a17d6e96c46d02a0ce
# REACT_APP_SHOPIFY_URL=aimementoring.myshopify.com


# CDN FOR IMAGES DEVELOPMENT
# REACT_APP_CDN_ROOT=https://dbhff1axysj9i.cloudfront.net

# CDN FOR IMAGES PROD
REACT_APP_CDN_ROOT=https://d2ylaz7bdw65jx.cloudfront.net

# REACT_APP_SONGBOOK_API_URL=https://aime-songbook-staging.herokuapp.com/graphql

[email protected]
REACT_APP_RAISELY_PASSWORD=Lgw4)zvb
REACT_APP_RAISELY_ORGANISATIONUUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b

REACT_APP_ASSETS_URL=https://aime-website.s3.amazonaws.com

[email protected]
REACT_APP_DONATE_PASSWORD=Lgw4)zvb
REACT_APP_DONATE_ORGANISATION_UUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b
37 changes: 0 additions & 37 deletions .env.dev.example

This file was deleted.

70 changes: 36 additions & 34 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
REACT_APP_CDN=https://d2ylaz7bdw65jx.cloudfront.net
REACT_APP_STOREFRONT_ACCESS_TOKEN=560dd7f8110349a17d6e96c46d02a0ce
REACT_APP_AIRTABLE_API_KEY=keyQwkepkcSrWl1du
REACT_APP_AIRTABLE_UNIVERSITIES=app0cOinHqPnUCxv8
REACT_APP_AIRTABLE_PROGRAM_BASE=appYBHhHUO92wVVmQ
REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appiTNzrkMrckYbqk
REACT_APP_BUGSNAG_API_KEY=aaaaaaaaaaa
# REACT_APP_CRAFT_API=https://aimeweb-backend.herokuapp.com/
# REACT_APP_CRAFT_API=http://192.168.33.10
PORT=3011
REACT_APP_ASSETS_URL=https://dbhff1axysj9i.cloudfront.net
REACT_APP_CRAFT_API=https://aimeweb-backend-staging.herokuapp.com/
HOST=127.0.0.1
AUTH0_RECRUITMENT_CLIENT_ID=[obtain_from_auth_0]
AUTH0_STAFF_CLIENT_ID=[obtain_from_auth_0]
AUTH0_DOMAIN=aimementoring-staging.auth0.com
REACT_APP_FILE_UPLOADER_API_KEY=AnpTaG2AITvSuOfoenIpKz
REACT_APP_BUGSNAG_KEY=a7e1073d7f3c8f5381afb5e8e68487ac
REACT_APP_HOST_ENV=development
REACT_APP_MENTOR_EOI_BASE_KEY=appfv6xbNhSMnOq1n
REACT_APP_PRO_IP_KEY=gXmk7M683Y6UBip
# PORTAL API DEV
REACT_APP_PORTAL_API=http://localhost:5001
# PORTAL API PROD
# REACT_APP_PORTAL_API=https://aime-portal-api.herokuapp.com
# APPAREL DEV
REACT_APP_SHOPIFY_ACCESS_TOKEN=a93e26c66798a13c9c9b4560784c26f2
REACT_APP_SHOPIFY_URL=aime-apparel-development.myshopify.com
# APPAREL PROD
# REACT_APP_SHOPIFY_ACCESS_TOKEN=560dd7f8110349a17d6e96c46d02a0ce
# REACT_APP_SHOPIFY_URL=aimementoring.myshopify.com
# CDN FOR IMAGES DEVELOPMENT
# REACT_APP_CDN_ROOT=https://dbhff1axysj9i.cloudfront.net
# CDN FOR IMAGES PROD
REACT_APP_CDN_ROOT=https://d2ylaz7bdw65jx.cloudfront.net
REACT_APP_PORTAL_API=https://aime-portal-api-staging.herokuapp.com
REACT_APP_THEME=purple
REACT_APP_INTERCOM_APP_ID=g36n1wzq

# -----------------------
# DONATE ----------------
# -----------------------
[email protected]
REACT_APP_DONATE_PASSWORD=Lgw4)zvb
REACT_APP_DONATE_ORGANISATION_UUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b

# -----------------------
# AWS -------------------
# -----------------------
AWS_ACCESS_KEY_ID=AKIAWFCM2CEJYRNPCNUG
AWS_SECRET_ACCESS_KEY=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
AWS_DEFAULT_REGION=ap-southeast-2
[email protected]
REACT_APP_RAISELY_PASSWORD=Lgw4)zvb
REACT_APP_RAISELY_ORGANISATIONUUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b
# CONTENTFUL API KEY

# -----------------------
# AIRTABLE --------------
# -----------------------
REACT_APP_AIRTABLE_STAFF_RECRUITMENT_BASE=appiTNzrkMrckYbqk
REACT_APP_AIRTABLE_API_KEY=keyQwkepkcSrWl1du
REACT_APP_PITCH_YOURSELF_TO_AIME_ID=rec8N1DIykET8T9SF

# -----------------------
# CONTENTFUL API KEY ----
# -----------------------
REACT_APP_CONTENTFUL_SPACE_ID=iz0aikshgysc
REACT_APP_CONTENTFUL_CONTENT_TYPE=redirectEntries
REACT_APP_CONTENTFUL_ENTRY_KEY=3tMx2AccortPX9N15uGGgb
REACT_APP_CONTENTFUL_API_KEY=0cacfc910d0c5d6bce2c6cfedfa03bc050a1f2bddd42fa4e1a09fedf0c4959d3
REACT_APP_CONTENTFUL_API_KEY=0cacfc910d0c5d6bce2c6cfedfa03bc050a1f2bddd42fa4e1a09fedf0c4959d3

# -----------------------
# RAISELY API KEY -------
# -----------------------
[email protected]
REACT_APP_RAISELY_PASSWORD=Lgw4)zvb
REACT_APP_RAISELY_ORGANISATIONUUID=7eafc9b2-404f-11e7-bc97-06facaa3db7b

36 changes: 0 additions & 36 deletions .env.production.example

This file was deleted.

37 changes: 0 additions & 37 deletions .env.staging.example

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/build
/.next
27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb", "eslint:recommended", "plugin:react/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"React": "writable"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [0],
"react/jsx-props-no-spreading": [0],
"indent": ["error", 2]
}
}
101 changes: 101 additions & 0 deletions .gimbalrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Specify audits to run. Also include any plugins (like axe)
audits:
- axe
- size
- lighthouse
- heap-snapshot
- unused-source

configs:
comment:
# Only show failures in GitHub PR comments.
# Useful to pinpoint why a build has failed
onlyFailures: true

# Heap snapshot settings
heap-snapshot:
threshold:
Documents: 11
Frames: 5
JSHeapTotalSize: 13356000
JSHeapUsedSize: 10068000
Nodes: 800
RecalcStyleCount: 15
LayoutCount: 15

# Lighthouse settings
lighthouse:
skipAudits:
- uses-http2
- redirects-http
- uses-long-cache-ttl
- uses-text-compression
outputHtml: ./gimbal-artifacts/lighthouse.html
threshold:
accessibility: 95
"best-practices": 95
performance: 95
pwa: 95
seo: 95

# File and directory size settings
size:
- path: ./build/precache-*.js
maxSize: 10 KB
- path: ./build/static/js/[0-9]*.chunk.js
maxSize: 1 MB
- path: ./build/static/js/*.chunk.js
maxSize: 1 MB
- path: ./build/static/js/runtime*.js
maxSize: 10 KB
- path: ./build/index.html
maxSize: 10 KB
- path: ./build/favicon.ico
maxSize: 10 KB
- path: ./build/
maxSize: 18 MB

# Unused source settings
unused-source:
threshold:
- path: "**/*(private).*.chunk.css"
maxSize: 60%
- path: "**/!(private).*.chunk.css"
maxSize: 60%
- path: "**/*([0-9]).*.chunk.js"
maxSize: 90%
- path: "**/!([0-9]|main).*.chunk.js"
maxSize: 45%
- path: "**/(main).*.chunk.js"
maxSize: 50%

# Locations of reports. Useful for storing artifacts in CI
outputs:
# Only show failures in CLI
cli:
onlyFailures: true
html: ./gimbal-artifacts/results.html
json: ./gimbal-artifacts/results.json
markdown: ./gimbal-artifacts/results.md

# Plugins
plugins:
# Compare metrics to last-saved values
- plugin: "@modus/gimbal-plugin-last-value"
saveOnlyOnSuccess: false

# Save reports to a database. Needed for gimbal-plugin-last-value
- plugin: "@modus/gimbal-plugin-sqlite"
lastValue: true

# Axe a11y audits
- plugin: "@modus/gimbal-plugin-axe"
thresholds:
aria-allowed-attr: critical
color-contrast: serious
landmark-one-main: moderate
landmark-complementary-is-top-level: moderate
meta-viewport: critical
region: moderate
page-has-heading-one: moderate
scrollable-region-focusable: moderate
Loading