Merge branch 'develop' of https://github.com/LLK/scratch-www into scratcher-onboarding

This commit is contained in:
tomlum 2022-02-23 16:48:03 -05:00
commit cd483d704f
23 changed files with 3830 additions and 1071 deletions

4678
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -43,7 +43,7 @@
"homepage": "https://github.com/llk/scratch-www#readme",
"dependencies": {
"@sentry/browser": "4.4.2",
"bunyan": "1.7.1",
"bunyan": "1.8.15",
"clipboard-copy": "2.0.1",
"express": "4.16.1",
"express-http-proxy": "1.1.0",
@ -62,7 +62,7 @@
"@formatjs/intl-pluralrules": "4.1.0",
"@formatjs/intl-relativetimeformat": "8.1.8",
"async": "3.1.0",
"autoprefixer": "6.3.6",
"autoprefixer": "10.4.2",
"babel-cli": "6.26.0",
"babel-core": "6.23.1",
"babel-eslint": "10.0.3",
@ -109,10 +109,11 @@
"lodash.uniqby": "4.7.0",
"mini-css-extract-plugin": "^1.6.2",
"minilog": "2.0.8",
"node-sass": "4.14.1",
"sass": "1.49.7",
"pako": "0.2.8",
"plotly.js": "1.47.4",
"postcss-loader": "2.0.10",
"postcss": "8.4.6",
"postcss-loader": "4.2.0",
"prop-types": "15.6.0",
"query-string": "5.1.1",
"react": "16.14.0",
@ -130,9 +131,9 @@
"redux-mock-store": "1.5.4",
"redux-thunk": "2.0.1",
"regenerator-runtime": "0.13.9",
"sass-loader": "6.0.6",
"scratch-gui": "0.1.0-prerelease.20220202135032",
"scratch-l10n": "3.14.20220204031519",
"sass-loader": "10.2.1",
"scratch-gui": "0.1.0-prerelease.20220223164758",
"scratch-l10n": "3.14.20220223031520",
"selenium-webdriver": "4.1.0",
"slick-carousel": "1.6.0",
"style-loader": "0.12.3",
@ -141,7 +142,7 @@
"webpack": "4.46.0",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "3.3.12",
"webpack-dev-middleware": "2.0.4",
"webpack-dev-middleware": "5.3.1",
"xhr": "2.2.0"
},
"jest": {
@ -167,5 +168,10 @@
"src/**/*.js"
],
"all": true
}
},
"browserslist": [
"last 3 versions",
"Safari >= 8",
"iOS >= 8"
]
}

View file

@ -1,70 +1,70 @@
/* UI Primary Colors */
$ui-blue: hsla(215, 100, 65, 1); // #4C97FF Motion Primary
$ui-blue-dark: hsla(215, 65, 55, 1); // #3373CC Motion Secondary
$ui-blue-10percent: hsla(215, 100, 65, .1);
$ui-blue-25percent: hsla(215, 100, 65, .25);
$ui-blue: hsla(215, 100%, 65%, 1); // #4C97FF Motion Primary
$ui-blue-dark: hsla(215, 65%, 55%, 1); // #3373CC Motion Secondary
$ui-blue-10percent: hsla(215, 100%, 65%, .1);
$ui-blue-25percent: hsla(215, 100%, 65%, .25);
$ui-orange: hsla(38, 100, 55, 1); // #FFAB19 Control Primary
$ui-orange-high-contrast: hsla(30, 100, 55, 1); // #FFAB19 Control Primary
$ui-orange-10percent: hsla(35, 90, 55, .1);
$ui-orange-25percent: hsla(35, 90, 55, .25);
$ui-orange-90percent: hsla(38, 100, 55, .9);
$ui-orange: hsla(38, 100%, 55%, 1); // #FFAB19 Control Primary
$ui-orange-high-contrast: hsla(30, 100%, 55%, 1); // #FFAB19 Control Primary
$ui-orange-10percent: hsla(35, 90%, 55%, .1);
$ui-orange-25percent: hsla(35, 90%, 55%, .25);
$ui-orange-90percent: hsla(38, 100%, 55%, .9);
$ui-dark-orange: hsla(30, 100, 55, 1); // ##FF8C1A Variables Primary
$ui-dark-orange: hsla(30, 100%, 55%, 1); // ##FF8C1A Variables Primary
$ui-red: hsla(20, 100%, 55%, 1); /* #FF661A */
$ui-red-25percent: hsla(20, 100%, 55%, .25);
$ui-green-35percent: rgba(126, 225, 195, .35);
$ui-light-gray: hsla(0, 0, 98, 1); //#FAFAFA
$ui-gray: hsla(0, 0, 95, 1); //#F2F2F2
$ui-dark-gray: hsla(0, 0, 70, 1); //#B3B3B3
$ui-light-gray: hsla(0, 0%, 98%, 1); //#FAFAFA
$ui-gray: hsla(0, 0%, 95%, 1); //#F2F2F2
$ui-dark-gray: hsla(0, 0%, 70%, 1); //#B3B3B3
$background-color: hsla(0, 0, 99, 1); //#FDFDFD
$background-color: hsla(0, 0%, 99%, 1); //#FDFDFD
$motion-blue-3: hsla(215, 60, 50, 1);//#3373CC
$motion-blue-3: hsla(215, 60%, 50%, 1);//#3373CC
/* UI Secondary Colors */
/* 3.0 colors */
/* Using www naming convention for now, should be consistent with gui */
$ui-aqua: hsla(163, 85, 40, 1); // #0FBD8C Extension Primary
$ui-aqua-dark: hsla(163, 85, 30, 1); // #0B8E69 Extension Aqua 3
$ui-purple: hsla(260, 100, 70, 1); // #9966FF Looks Primary
$ui-purple-dark: hsla(260, 60, 60, 1); // #774DCB Looks Secondary
$ui-aqua: hsla(163, 85%, 40%, 1); // #0FBD8C Extension Primary
$ui-aqua-dark: hsla(163, 85%, 30%, 1); // #0B8E69 Extension Aqua 3
$ui-purple: hsla(260, 100%, 70%, 1); // #9966FF Looks Primary
$ui-purple-dark: hsla(260, 60%, 60%, 1); // #774DCB Looks Secondary
$ui-magenta: hsla(300, 53%, 60%, 1); /* #CF63CF Sounds Primary */
$ui-yellow: hsla(45, 100, 50, 1); // #FFBF00 Events Primary
$ui-coral: hsla(350, 100, 70, 1); // #FF6680 More Blocks Primary
$ui-coral-dark: hsla(350, 100, 60, 1); // #FF3355 More Blocks tertiary
$ui-yellow: hsla(45, 100%, 50%, 1); // #FFBF00 Events Primary
$ui-coral: hsla(350, 100%, 70%, 1); // #FF6680 More Blocks Primary
$ui-coral-dark: hsla(350, 100%, 60%, 1); // #FF3355 More Blocks tertiary
$ui-white: hsla(0, 100%, 100%, 1); //#FFF
$ui-white-15percent: hsla(0, 100%, 100%, .15); //#FFF
$ui-light-primary: hsl(215, 100, 95);
$ui-light-primary-transparent: hsla(215, 100, 95, 0);
$ui-light-primary: hsl(215, 100%, 95%);
$ui-light-primary-transparent: hsla(215, 100%, 95%, 0);
$ui-border: hsla(0, 0, 85, 1); //#D9D9D9
$ui-border: hsla(0, 0%, 85%, 1); //#D9D9D9
/* modals */
$ui-mint-green: hsl(163, 69, 44);
$ui-light-mint: hsl(163, 53, 67);
$ui-mint-green: hsl(163, 69%, 44%);
$ui-light-mint: hsl(163, 53%, 67%);
/* Overlay UI Gray Colors */
$active-gray: hsla(0, 0, 0, .1);
$active-dark-gray: hsla(0, 0, 0, .2);
$box-shadow-gray: hsla(0, 0, 0, .25);
$box-shadow-light-gray: hsla(0, 0, 0, .15);
$overlay-gray: hsla(0, 0, 0, .75);
$active-gray: hsla(0, 0%, 0%, .1);
$active-dark-gray: hsla(0, 0%, 0%, .2);
$box-shadow-gray: hsla(0, 0%, 0%, .25);
$box-shadow-light-gray: hsla(0, 0%, 0%, .15);
$overlay-gray: hsla(0, 0%, 0%, .75);
$transparent-light-blue: rgba(229, 240, 254, 0);
/* Typography Colors */
$header-gray: hsla(225, 15, 40, 1); //#575E75
$type-gray: hsla(225, 15, 40, 1); //#575E75
$type-gray-75percent: hsla(225, 15, 40, .75);
$type-gray-60percent: hsla(225, 15, 40, .6);
$type-white: hsla(0, 100, 100, 1); //#FFF
$header-gray: hsla(225, 15%, 40%, 1); //#575E75
$type-gray: hsla(225, 15%, 40%, 1); //#575E75
$type-gray-75percent: hsla(225, 15%, 40%, .75);
$type-gray-60percent: hsla(225, 15%, 40%, .6);
$type-white: hsla(0, 100%, 100%, 1); //#FFF
$link-blue: $ui-blue;
/* Down Deep */
$dd-darkblue: hsla(195, 72.4, 17.1, 1);
$dd-medium-blue: hsla(195, 72.4, 42, .65);
$dd-darkblue: hsla(195, 72.4%, 17.1%, 1);
$dd-medium-blue: hsla(195, 72.4%, 42%, .65);

View file

@ -9,8 +9,10 @@
// Configuration
//
@use "sass:math";
$font-size: 16px; // Your base font-size in pixels
$em: $font-size / 1em; // Shorthand for outputting ems
$em: math.div($font-size, 1em); // Shorthand for outputting ems
$column: 60px; // The column-width of your grid in pixels
$gutter: 20px; // The gutter-width of your grid in pixels
@ -21,18 +23,18 @@ $gutter: 20px; // The gutter-width of your grid in pixels
// Column-widths in variables, in ems
//
$cols1: ( 1 * ($column + $gutter) - $gutter) / $em;
$cols2: ( 2 * ($column + $gutter) - $gutter) / $em;
$cols3: ( 3 * ($column + $gutter) - $gutter) / $em;
$cols4: ( 4 * ($column + $gutter) - $gutter) / $em;
$cols5: ( 5 * ($column + $gutter) - $gutter) / $em;
$cols6: ( 6 * ($column + $gutter) - $gutter) / $em;
$cols7: ( 7 * ($column + $gutter) - $gutter) / $em;
$cols8: ( 8 * ($column + $gutter) - $gutter) / $em;
$cols9: ( 9 * ($column + $gutter) - $gutter) / $em;
$cols10: (10 * ($column + $gutter) - $gutter) / $em;
$cols11: (11 * ($column + $gutter) - $gutter) / $em;
$cols12: (12 * ($column + $gutter) - $gutter) / $em;
$cols1: math.div( 1 * ($column + $gutter) - $gutter, $em);
$cols2: math.div( 2 * ($column + $gutter) - $gutter, $em);
$cols3: math.div( 3 * ($column + $gutter) - $gutter, $em);
$cols4: math.div( 4 * ($column + $gutter) - $gutter, $em);
$cols5: math.div( 5 * ($column + $gutter) - $gutter, $em);
$cols6: math.div( 6 * ($column + $gutter) - $gutter, $em);
$cols7: math.div( 7 * ($column + $gutter) - $gutter, $em);
$cols8: math.div( 8 * ($column + $gutter) - $gutter, $em);
$cols9: math.div( 9 * ($column + $gutter) - $gutter, $em);
$cols10: math.div(10 * ($column + $gutter) - $gutter, $em);
$cols11: math.div(11 * ($column + $gutter) - $gutter, $em);
$cols12: math.div(12 * ($column + $gutter) - $gutter, $em);
$desktop: 942px;
$tabletPortrait: 768px;
@ -69,7 +71,7 @@ $medium-height: "only screen and (min-height : #{$mobile}) and (max-height : #{$
//
@mixin width ($cols: 1) {
width: ($cols * ($column + $gutter) - $gutter) / $em;
width: math.div($cols * ($column + $gutter) - $gutter, $em);
}
//4 columns

View file

@ -1,8 +1,10 @@
@use "sass:math";
@import "../../colors";
@import "../../frameless";
.card {
border-radius: 8px / $em;
border-radius: math.div(8px, $em);
box-shadow: 0 0 0 .125rem $active-gray;
background-color: $ui-white;

View file

@ -14,7 +14,7 @@
.slick-next,
.slick-prev {
margin-top: -$icon-size / 2;
margin-top: -$icon-size * 0.5;
width: $icon-size;
height: $icon-size;

View file

@ -24,14 +24,14 @@ $navigation-height: 50px;
.close {
float: right;
margin-top: $navigation-height / 4;
border-radius: $navigation-height / 4;
margin-top: $navigation-height * 0.25;
border-radius: $navigation-height * 0.25;
background-color: $box-shadow-gray;
width: $navigation-height / 2;
height: $navigation-height / 2;
width: $navigation-height * 0.5;
height: $navigation-height * 0.5;
text-decoration: none;
text-shadow: none;
line-height: $navigation-height / 2;
line-height: $navigation-height * 0.5;
color: $ui-white;
font-weight: normal;
}

View file

@ -73,7 +73,7 @@
&:before {
display: block;
position: absolute;
top: -$arrow-border-width / 2;
top: -$arrow-border-width * 0.5;
right: 10%;
transform: rotate(45deg);

View file

@ -1,3 +1,5 @@
@use "sass:math";
@import "../../colors";
@import "../../frameless";
@ -294,7 +296,7 @@
ul,
ol {
&.indented {
padding-left: $cols1 + (20px / $em);
padding-left: $cols1 + math.div(20px, $em);
}
}
}

View file

@ -19,6 +19,7 @@
color: $type-gray;
font-size: .875rem;
appearance: none;
-webkit-appearance: none; /* added to fix dropdown appearance on safari */
&::-ms-expand {
display: none;

View file

@ -24,7 +24,7 @@
display: block;
position: absolute;
top: 1rem;
left: -$arrow-border-width / 2;
left: -$arrow-border-width * 0.5;
transform: rotate(45deg);
@ -50,7 +50,7 @@
&:before {
left: unset;
right: -$arrow-border-width / 2;
right: -$arrow-border-width * 0.5;
border-top: 1px solid $active-gray;
border-right: 1px solid $active-gray;
border-bottom: none;

View file

@ -40,7 +40,7 @@
display: block;
position: absolute;
top: 1rem;
left: -$arrow-border-width / 2;
left: -$arrow-border-width * 0.5;
transform: rotate(45deg);

View file

@ -46,8 +46,8 @@
$modal-close-size: 1rem;
.modal-content-close {
position: absolute;
top: $modal-close-size / 2;
right: $modal-close-size / 2;
top: $modal-close-size * 0.5;
right: $modal-close-size * 0.5;
border-radius: $modal-close-size;
background-color: $active-dark-gray;
cursor: pointer;
@ -58,7 +58,7 @@ $modal-close-size: 1rem;
}
.modal-content-close-img {
padding-top: $modal-close-size / 2;
padding-top: $modal-close-size * 0.5;
}
/* Close button, Submit button, etc. */

View file

@ -2,7 +2,7 @@
@import "../../../../frameless";
#navigation {
.ul.2019 {
.ul.mod-2019 {
display: flex;
justify-content: space-between;
flex-flow: row nowrap;
@ -10,7 +10,7 @@
list-style-type: none;
}
.li-left.2019 {
.li-left.mod-2019 {
margin-top: 0;
margin-right: 10px;
color: $type-white;

View file

@ -22,7 +22,7 @@
transform: translate(-2.75rem, 2rem);
visibility: hidden;
z-index: 1;
margin-top: $arrow-border-width / 2;
margin-top: $arrow-border-width * 0.5;
border: 1px solid $active-gray;
border-radius: 5px;
background-color: $ui-blue;
@ -34,7 +34,7 @@
&:before {
display: block;
position: absolute;
top: -$arrow-border-width / 2;
top: -$arrow-border-width * 0.5;
left: $arrow-border-width;
transform: rotate(45deg);

View file

@ -8,7 +8,7 @@ $masthead-breakpoint: "only screen and (max-width : 960px)";
$masthead-breakpoint-wave: "only screen and (max-width : 1060px)";
$timeline-breakpoint: "only screen and (max-width : 1030px)";
$ui-purple-dark: hsla(260, 55, 55, 1);
$ui-purple-dark: hsla(260, 55%, 55%, 1);
// $motion-blue-3 #3373CC
.adaptation .button{
@ -240,7 +240,7 @@ a, a:link, a:visited, a:active{
max-width: 300px;
}
}
.founders-signature{
display: flex;
.mitch-photo {
@ -1137,7 +1137,7 @@ img.comment-viz{
}
@media #{$intermediate} {
max-width: 620px;
max-width: 620px;
}
}
.images{
@ -1183,7 +1183,7 @@ img.comment-viz{
}
}
.bubble{
margin-left: 0px;
margin-left: 0px;
color: $ui-white;
font-weight: bold;
@media #{$intermediate-and-smaller} {
@ -1236,7 +1236,7 @@ img.comment-viz{
max-width: 600px;
width: 100%;
margin: 80px auto 0;
h4{
margin-top: 56px;
}
@ -1454,7 +1454,7 @@ img.comment-viz{
margin: 20px auto;
}
}
.initiatives-adaptation, .initiatives-community {
.world{
max-width: 600px;
@ -1943,7 +1943,7 @@ img.comment-viz{
display: flex;
flex-direction: column;
text-align: left;
@media #{$intermediate} {
max-width: 620px;
}

View file

@ -32,7 +32,7 @@ $developer-spot: $ui-aqua;
}
.band {
$band-color: hsla(360, 100, 100, .15);
$band-color: hsla(360, 100%, 100%, .15);
margin-top: 2rem;
background-color: $band-color;
@ -240,7 +240,3 @@ $developer-spot: $ui-aqua;
}
}
}

View file

@ -1,3 +1,5 @@
@use "sass:math";
@import "../../colors";
@import "../../frameless";
@ -56,7 +58,7 @@
.download-info {
padding-right: $cols1;
max-width: $cols7 + ($gutter / $em);
max-width: $cols7 + math.div($gutter, $em);
align-items: flex-start;
.download-copy {

View file

@ -67,7 +67,7 @@ $story-width: $cols3;
}
.band {
$band-color: hsla(360, 100, 100, .15);
$band-color: hsla(360, 100%, 100%, .15);
margin-top: 2rem;
background-color: $band-color;

View file

@ -85,7 +85,7 @@
}
.studio-report-selected {
background: hsla(215, 100, 65, .15);
background: hsla(215, 100%, 65%, .15);
}
.studio-report-header-selected {

View file

@ -20,8 +20,8 @@
background: white;
border: 1px solid rgba(0, 0, 0, 0.15);
color: #575e75;
&.active {
background: $ui-blue;
&.active {
background: $ui-blue;
color: white;
}
&:active {
@ -60,7 +60,7 @@
}
.studio-projects-empty-text {
color: hsla(215, 100, 65, .75);
color: hsla(215, 100%, 65%, .75);
max-width: 325px;
text-align: center;
line-height: 1.5rem;

View file

@ -68,7 +68,7 @@ $story-width: $cols3;
}
.band {
$band-color: hsla(360, 100, 100, .15);
$band-color: hsla(360, 100%, 100%, .15);
margin-top: 2rem;
background-color: $band-color;

View file

@ -100,8 +100,10 @@ module.exports = {
{
loader: 'postcss-loader',
options: {
plugins: function () {
return [autoprefixer({browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']})];
postcssOptions: {
plugins: function () {
return [autoprefixer()];
}
}
}
},
@ -116,8 +118,10 @@ module.exports = {
{
loader: 'postcss-loader',
options: {
plugins: function () {
return [autoprefixer({browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']})];
postcssOptions: {
plugins: function () {
return [autoprefixer()];
}
}
}
}