mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-10 21:28:34 -04:00
Merge pull request #7739 from cwillisf/scratch-link-2.0-prep
Scratch link 2.0 prep
This commit is contained in:
commit
5a26da9bd3
9 changed files with 118 additions and 51 deletions
|
@ -7,6 +7,11 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
// Adjust target position to compensate for the floating top content
|
||||||
|
scroll-padding-top: calc(50px + 5rem); // nav bar + OS chooser
|
||||||
|
}
|
||||||
|
|
||||||
.extension-landing {
|
.extension-landing {
|
||||||
&>div {
|
&>div {
|
||||||
padding: 4rem 0;
|
padding: 4rem 0;
|
||||||
|
|
|
@ -13,7 +13,7 @@ const ExtensionTroubleshooting = props => {
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<ExtensionSection className="faq">
|
<ExtensionSection className="faq">
|
||||||
<h2><FormattedMessage
|
<h2 id="troubleshooting"><FormattedMessage
|
||||||
id="extensions.troubleshootingTitle"
|
id="extensions.troubleshootingTitle"
|
||||||
values={sharedValues}
|
values={sharedValues}
|
||||||
/></h2>
|
/></h2>
|
||||||
|
@ -22,7 +22,7 @@ const ExtensionTroubleshooting = props => {
|
||||||
values={sharedValues}
|
values={sharedValues}
|
||||||
/></h3>
|
/></h3>
|
||||||
<p><FormattedMessage
|
<p><FormattedMessage
|
||||||
id="extensions.browserCompatibilityText"
|
id="extensions.browserCompatibilityText2"
|
||||||
values={sharedValues}
|
values={sharedValues}
|
||||||
/></p>
|
/></p>
|
||||||
{props.children}
|
{props.children}
|
||||||
|
|
|
@ -11,13 +11,13 @@ require('./extension-landing.scss');
|
||||||
|
|
||||||
// Assumes this will only be called with an OS that needs Scratch Link
|
// Assumes this will only be called with an OS that needs Scratch Link
|
||||||
const InstallScratchLink = ({
|
const InstallScratchLink = ({
|
||||||
currentOS
|
currentOS,
|
||||||
|
hideScratchLink
|
||||||
}) => (
|
}) => (
|
||||||
<div className="blue install-scratch-link">
|
<div className="blue install-scratch-link">
|
||||||
<FlexRow className="inner column">
|
<FlexRow className="inner column">
|
||||||
<h2><FormattedMessage id="installScratchLink.installHeaderTitle" /></h2>
|
<h2><FormattedMessage id="installScratchLink.installHeaderTitle" /></h2>
|
||||||
<Steps>
|
<Steps>
|
||||||
<div className="step">
|
|
||||||
<Step
|
<Step
|
||||||
compact
|
compact
|
||||||
number={1}
|
number={1}
|
||||||
|
@ -55,16 +55,18 @@ const InstallScratchLink = ({
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</Step>
|
</Step>
|
||||||
|
|
||||||
</div>
|
|
||||||
<Step
|
<Step
|
||||||
compact
|
compact
|
||||||
number={2}
|
number={2}
|
||||||
>
|
>
|
||||||
<span className="step-description">
|
<span className="step-description">
|
||||||
<FormattedMessage id="installScratchLink.startScratchLink" />
|
<FormattedMessage
|
||||||
|
id={`installScratchLink.startScratchLink.${
|
||||||
|
currentOS === OS_ENUM.WINDOWS ? 'Windows' : 'macOS'
|
||||||
|
}`}
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
<div className="step-image">
|
<span className="step-image">
|
||||||
<img
|
<img
|
||||||
alt=""
|
alt=""
|
||||||
className="screenshot"
|
className="screenshot"
|
||||||
|
@ -72,7 +74,45 @@ const InstallScratchLink = ({
|
||||||
currentOS === OS_ENUM.WINDOWS ? 'windows' : 'mac'
|
currentOS === OS_ENUM.WINDOWS ? 'windows' : 'mac'
|
||||||
}-toolbar.png`}
|
}-toolbar.png`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</span>
|
||||||
|
<p className="step-description"><FormattedMessage
|
||||||
|
id={`installScratchLink.startScratchLink2.${
|
||||||
|
currentOS === OS_ENUM.WINDOWS ? 'Windows' : 'macOS'
|
||||||
|
}`}
|
||||||
|
/></p>
|
||||||
|
</Step>
|
||||||
|
<Step
|
||||||
|
compact
|
||||||
|
number={3}
|
||||||
|
>
|
||||||
|
{!hideScratchLink && <span className="step-description">
|
||||||
|
<FormattedMessage
|
||||||
|
id="installScratchLink.learnMore.bodyText"
|
||||||
|
values={{
|
||||||
|
linkText: (
|
||||||
|
<a
|
||||||
|
href="/download/scratch-link"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<FormattedMessage id="installScratchLink.learnMore.linkText" />
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</span>}
|
||||||
|
<span className="step-description">
|
||||||
|
<FormattedMessage
|
||||||
|
id="installScratchLink.ifYouHaveTrouble.bodyText"
|
||||||
|
values={{
|
||||||
|
linkText: (
|
||||||
|
<a
|
||||||
|
href="#troubleshooting"
|
||||||
|
><FormattedMessage id="installScratchLink.ifYouHaveTrouble.linkText" /></a>
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
</Step>
|
</Step>
|
||||||
</Steps>
|
</Steps>
|
||||||
</FlexRow>
|
</FlexRow>
|
||||||
|
@ -80,7 +120,8 @@ const InstallScratchLink = ({
|
||||||
);
|
);
|
||||||
|
|
||||||
InstallScratchLink.propTypes = {
|
InstallScratchLink.propTypes = {
|
||||||
currentOS: PropTypes.string
|
currentOS: PropTypes.string.isRequired,
|
||||||
|
hideScratchLink: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = InstallScratchLink;
|
module.exports = InstallScratchLink;
|
||||||
|
|
|
@ -48,11 +48,12 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.step-image {
|
.step-image {
|
||||||
height: 10rem;
|
max-height: 10rem;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: auto;
|
max-height: 10rem;
|
||||||
height: 100%;
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,14 @@
|
||||||
|
|
||||||
"installScratchLink.installHeaderTitle": "Install Scratch Link",
|
"installScratchLink.installHeaderTitle": "Install Scratch Link",
|
||||||
"installScratchLink.downloadAndInstall": "Download and install Scratch Link.",
|
"installScratchLink.downloadAndInstall": "Download and install Scratch Link.",
|
||||||
"installScratchLink.startScratchLink": "Start Scratch Link and make sure it is running. It should appear in your toolbar.",
|
"installScratchLink.startScratchLink.macOS": "Start Scratch Link and make sure it is running. It should appear in your menu bar.",
|
||||||
|
"installScratchLink.startScratchLink.Windows": "Start Scratch Link and make sure it is running. It should appear in your notification area (system tray).",
|
||||||
|
"installScratchLink.startScratchLink2.macOS": "If it does not appear, run Scratch Link from your Applications folder.",
|
||||||
|
"installScratchLink.startScratchLink2.Windows": "If it does not appear, run Scratch Link from your Start menu.",
|
||||||
|
"installScratchLink.learnMore.bodyText": "To learn more about Scratch Link, click {linkText}.",
|
||||||
|
"installScratchLink.learnMore.linkText": "here",
|
||||||
|
"installScratchLink.ifYouHaveTrouble.bodyText": "If you have trouble, see the {linkText} for tips.",
|
||||||
|
"installScratchLink.ifYouHaveTrouble.linkText": "Troubleshooting section",
|
||||||
|
|
||||||
"parents.FaqAgeRangeA": "While Scratch is primarily designed for 8 to 16 year olds, it is also used by people of all ages, including younger children with their parents.",
|
"parents.FaqAgeRangeA": "While Scratch is primarily designed for 8 to 16 year olds, it is also used by people of all ages, including younger children with their parents.",
|
||||||
"parents.FaqAgeRangeQ": "What is the age range for Scratch?",
|
"parents.FaqAgeRangeQ": "What is the age range for Scratch?",
|
||||||
|
@ -440,7 +447,7 @@
|
||||||
|
|
||||||
"extensions.troubleshootingTitle": "Troubleshooting",
|
"extensions.troubleshootingTitle": "Troubleshooting",
|
||||||
"extensions.browserCompatibilityTitle": "Make sure your browser is compatible with Scratch Link",
|
"extensions.browserCompatibilityTitle": "Make sure your browser is compatible with Scratch Link",
|
||||||
"extensions.browserCompatibilityText": "Scratch Link 1.4 is not compatible with Safari. If you use macOS, please use another supported browser, such as Chrome or Firefox.",
|
"extensions.browserCompatibilityText2": "Scratch Link 1.4 is not compatible with Safari. If you use Safari, please upgrade to Scratch Link 2.0.",
|
||||||
"extensions.checkOSVersionTitle": "Make sure your operating system is compatible with Scratch Link",
|
"extensions.checkOSVersionTitle": "Make sure your operating system is compatible with Scratch Link",
|
||||||
"extensions.checkOSVersionText": "The minimum operating system versions are listed at the top of this page. See instructions for checking your version of {winOSVersionLink} or {macOSVersionLink}.",
|
"extensions.checkOSVersionText": "The minimum operating system versions are listed at the top of this page. See instructions for checking your version of {winOSVersionLink} or {macOSVersionLink}.",
|
||||||
"extensions.checkOsVersionText2": "If you are using macOS 12, please update to macOS 12.3 or newer. Earlier versions of macOS 12 do not work correctly with Scratch Link.",
|
"extensions.checkOsVersionText2": "If you are using macOS 12, please update to macOS 12.3 or newer. Earlier versions of macOS 12 do not work correctly with Scratch Link.",
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/**
|
||||||
|
* @enum {string}
|
||||||
|
*/
|
||||||
const OS_ENUM = {
|
const OS_ENUM = {
|
||||||
WINDOWS: 'Windows',
|
WINDOWS: 'Windows',
|
||||||
MACOS: 'macOS',
|
MACOS: 'macOS',
|
||||||
|
|
|
@ -57,6 +57,7 @@ const ScratchLink = ({intl}) => {
|
||||||
/>
|
/>
|
||||||
{(isDownloaded(os)) && (
|
{(isDownloaded(os)) && (
|
||||||
<InstallScratchLink
|
<InstallScratchLink
|
||||||
|
hideScratchLink
|
||||||
currentOS={os}
|
currentOS={os}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -73,6 +73,7 @@ class EV3 extends ExtensionLanding {
|
||||||
/>
|
/>
|
||||||
{(isDownloaded(this.state.OS)) && (
|
{(isDownloaded(this.state.OS)) && (
|
||||||
<InstallScratchLink
|
<InstallScratchLink
|
||||||
|
showEv3
|
||||||
currentOS={this.state.OS}
|
currentOS={this.state.OS}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -314,6 +315,12 @@ class EV3 extends ExtensionLanding {
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<p><FormattedMessage id="extensions.checkOsVersionText2" /></p>
|
<p><FormattedMessage id="extensions.checkOsVersionText2" /></p>
|
||||||
|
<h3 className="faq-title"><FormattedMessage id="ev3.tryScratchLink1.4" /></h3>
|
||||||
|
<p><a
|
||||||
|
href={`https://downloads.scratch.mit.edu/link/scratch-link-${
|
||||||
|
this.state.OS === OS_ENUM.WINDOWS ? 'windows' : 'mac'
|
||||||
|
}-1.4.3.zip`}
|
||||||
|
><FormattedMessage id="ev3.downloadScratchLink1.4" /></a></p>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
<h3 className="faq-title"><FormattedMessage id="ev3.makeSurePairedTitle" /></h3>
|
<h3 className="faq-title"><FormattedMessage id="ev3.makeSurePairedTitle" /></h3>
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
"ev3.troubleshootingTitle": "Troubleshooting",
|
"ev3.troubleshootingTitle": "Troubleshooting",
|
||||||
"ev3.checkOSVersionTitle": "Make sure your operating system is compatible with Scratch Link",
|
"ev3.checkOSVersionTitle": "Make sure your operating system is compatible with Scratch Link",
|
||||||
"ev3.checkOSVersionText": "The minimum operating system versions are listed at the top of this page. See instructions for checking your version of {winOSVersionLink} or {macOSVersionLink}.",
|
"ev3.checkOSVersionText": "The minimum operating system versions are listed at the top of this page. See instructions for checking your version of {winOSVersionLink} or {macOSVersionLink}.",
|
||||||
|
"ev3.tryScratchLink1.4": "If you have issues connecting EV3 with Scratch Link 2.0, please try Scratch Link 1.4",
|
||||||
|
"ev3.downloadScratchLink1.4": "Download Scratch Link 1.4",
|
||||||
"ev3.winOSVersionLinkText": "Windows",
|
"ev3.winOSVersionLinkText": "Windows",
|
||||||
"ev3.macOSVersionLinkText": "macOS",
|
"ev3.macOSVersionLinkText": "macOS",
|
||||||
"ev3.makeSurePairedTitle": "Make sure your computer is paired with your EV3",
|
"ev3.makeSurePairedTitle": "Make sure your computer is paired with your EV3",
|
||||||
|
|
Loading…
Reference in a new issue