Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.18.3
v14.15.0
19 changes: 3 additions & 16 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@ module.exports = {
},
},
},
'gatsby-plugin-sass',
'gatsby-plugin-react-helmet',
'gatsby-plugin-react-axe',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'gatsby-starter-default',
short_name: 'starter',
start_url: '/',
background_color: '#663399',
theme_color: '#663399',
display: 'minimal-ui',
icon: 'static/human-dots.svg', // The app manifest icon for PWA. This path is relative to the root of the site.
include_favicon: false,
},
},
{
resolve: `gatsby-theme-i18n`,
options: {
Expand All @@ -46,6 +30,9 @@ module.exports = {
defaultLocale: `./i18n/react-intl/en.json`,
},
},
'gatsby-plugin-sass',
'gatsby-plugin-react-helmet',
'gatsby-plugin-react-axe',
{
resolve: `gatsby-plugin-umami`,
options: {
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build]
publish = "public/"
functions = "functions/"
command = "npm run lint && npm run test && npm run build"
command = "npm run lint && npm run build"

[[redirects]]
from = "/api/*"
Expand Down
35,927 changes: 16,286 additions & 19,641 deletions package-lock.json

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,67 +7,67 @@
"build": "gatsby build",
"develop": "gatsby develop --host=0.0.0.0",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
"lint": "{ find src -name '*.ts' -o -name '*.tsx' | xargs tslint --project tsconfig.json --config tslint.json ; }",
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"start": "netlify dev",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "mocha -r ts-node/register -r src/types.ts -r src/__tests/setup.ts src/**/*.test.ts*"
"clean": "gatsby clean"
},
"dependencies": {
"@mailchimp/mailchimp_marketing": "^3.0.27",
"@material-ui/core": "4.10.2",
"@emotion/react": "^11.9.0",
"@mailchimp/mailchimp_marketing": "^3.0.74",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.9.1",
"@material-ui/styles": "4.10.0",
"ajv": "6.12.5",
"axios": "0.19.2",
"axios": "^0.27.2",
"classnames": "^2.3.1",
"color": "3.1.2",
"gatsby-plugin-umami": "0.1.2",
"lodash": "4.17.20",
"react": "16.12.0",
"react": "^17.0.0",
"react-axe": "3.5.3",
"react-beautiful-dnd": "13.0.0",
"react-dom": "16.12.0",
"react-dom": "^17.0.0",
"react-helmet": "6.1.0",
"react-scroll-parallax": "2.3.4",
"react-share": "^4.3.1",
"react-share": "^4.4.0",
"redux": "4.0.5",
"ua-parser-js": "0.7.24"
},
"devDependencies": {
"@types/chai": "4.2.12",
"@types/color": "3.0.1",
"@types/mocha": "8.0.3",
"@types/react-beautiful-dnd": "13.0.0",
"@types/react-helmet": "6.0.0",
"@types/rewire": "2.5.28",
"@types/sinon": "9.0.5",
"@types/sinon-chai": "3.2.4",
"@types/ua-parser-js": "0.7.35",
"chai": "4.2.0",
"chalk": "4.1.0",
"dotenv": "8.2.0",
"gatsby": "2.23.3",
"gatsby-plugin-manifest": "2.4.11",
"gatsby-plugin-material-ui": "2.1.9",
"gatsby-plugin-react-axe": "0.4.1",
"gatsby-plugin-react-helmet": "3.3.4",
"gatsby-plugin-sass": "2.3.10",
"gatsby-plugin-sitemap": "2.4.11",
"gatsby-theme-i18n": "1.0.4",
"gatsby-theme-i18n-react-intl": "1.0.4",
"mocha": "8.1.3",
"eslint": "^8.14.0",
"gatsby": "4.13.0",
"gatsby-plugin-material-ui": "^4.1.0",
"gatsby-plugin-postcss": "^5.13.0",
"gatsby-plugin-react-axe": "^0.5.0",
"gatsby-plugin-react-helmet": "^5.13.0",
"gatsby-plugin-sass": "^5.13.0",
"gatsby-plugin-sitemap": "^5.13.0",
"gatsby-plugin-umami": "^0.1.3",
"gatsby-theme-i18n": "^3.0.0",
"gatsby-theme-i18n-react-intl": "^3.0.0",
"netlify-cli": "2.54.0",
"node-sass": "4.14.1",
"prettier": "2.0.5",
"react-intl": "5.8.2",
"redux-devtools-extension": "^2.13.8",
"react-intl": "^5.25.1",
"redux-devtools-extension": "^2.13.9",
"rewire": "5.0.0",
"sass": "^1.51.0",
"sass-loader": "^12.6.0",
"sinon": "9.0.3",
"sinon-chai": "3.5.0",
"ts-node": "9.0.0",
"tslint": "6.1.3",
"tslint-immutable": "6.0.1"
"tslint-immutable": "6.0.1",
"typescript": "^4.6.4"
},
"keywords": [
"human",
Expand Down
51 changes: 26 additions & 25 deletions src/styles/components/designs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $margin-around-mac: 2em;

position: relative;

> .designs-content-container {
>.designs-content-container {
@include header-width(padding);

&.static {
Expand All @@ -26,7 +26,7 @@ $margin-around-mac: 2em;
width: 100%;
height: 100vh;

> .designs-content {
>.designs-content {
margin-top: 5%;
margin-bottom: 5%;
height: 90%;
Expand All @@ -35,7 +35,7 @@ $margin-around-mac: 2em;
align-items: center;
justify-content: center;

> h1 {
>h1 {
color: $human-blue;
font-size: 2.25em;
margin-bottom: 1em;
Expand All @@ -45,17 +45,19 @@ $margin-around-mac: 2em;
.explanation {
opacity: 0;
transition: opacity 0.2s;
> h2 {

>h2 {
color: $human-pink;
text-align: center;
}
> p {

>p {
color: $human-blue;
margin-bottom: 0;
}
}

> .mac-container {
>.mac-container {
position: relative;
max-height: 65%;

Expand All @@ -66,22 +68,18 @@ $margin-around-mac: 2em;
width: 100%;
margin-bottom: $margin-around-mac;

> .mac-with-screens > svg {
>.mac-with-screens>svg {
max-width: 100%;
max-height: 100%;

.screen {
opacity: 0;
transition: opacity 0.2s;

&#0_widget-closed {
opacity: 1;
}
}
}

> .explanations-container.cards {
> .explanation {
>.explanations-container.cards {
>.explanation {
display: none;
position: absolute;
top: 35%;
Expand All @@ -92,9 +90,10 @@ $margin-around-mac: 2em;
border-radius: 10px;
background-color: white;

> h2 {
>h2 {
text-align: left;
font-size: 1.3rem;

&.report-issues:lang(en) {
max-width: 160px;
}
Expand All @@ -103,26 +102,28 @@ $margin-around-mac: 2em;
}
}

> .explanations-container.texts {
>.explanations-container.texts {
position: relative;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

> .explanation {
>.explanation {
display: none;
position: absolute;
max-width: $max-main-page-item-width;

top: 0;

@include onmobile {
> h2 {
>h2 {
font-size: 1.2em;
}
}
> p {

>p {
text-align: center;
}
}
Expand All @@ -134,34 +135,34 @@ $margin-around-mac: 2em;
@media (orientation: landscape) {
margin-bottom: 4em;

> .designs-content-container {
>.designs-content-container {
padding-left: 0;
padding-right: 0;

> .designs-content {
>.designs-content {
flex-direction: row;

> h1 {
>h1 {
width: 100%;
text-align: center;
}

> .mac-container {
>.mac-container {
display: flex;
flex-direction: row;
justify-content: center;

> svg {
>svg {
height: 90vh;
max-width: 100%;
}
}

> .explanations-container {
>.explanations-container {
display: none !important;
}
}
}
}
}
}
}
Loading