mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Revert "Add CPS video"
This reverts commit ec97646bf7430e874b0045a61a5f9d39d4c862de.
This commit is contained in:
parent
be49e209bb
commit
551eea91b5
3 changed files with 2 additions and 14 deletions
|
@ -30,7 +30,6 @@ class VideoPreview extends React.Component {
|
|||
<Video
|
||||
className="video"
|
||||
height={this.props.videoHeight}
|
||||
isYouTube={this.props.isYouTube}
|
||||
videoId={this.props.videoId}
|
||||
width={this.props.videoWidth}
|
||||
/>
|
||||
|
@ -61,13 +60,8 @@ class VideoPreview extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
VideoPreview.defaultProps = {
|
||||
isYouTube: false
|
||||
};
|
||||
|
||||
VideoPreview.propTypes = {
|
||||
buttonMessage: PropTypes.string.isRequired,
|
||||
isYouTube: PropTypes.bool,
|
||||
thumbnail: PropTypes.string.isRequired,
|
||||
thumbnailHeight: PropTypes.string,
|
||||
thumbnailWidth: PropTypes.string,
|
||||
|
|
|
@ -1534,14 +1534,13 @@ class AnnualReport extends React.Component {
|
|||
{/* eslint-disable max-len */}
|
||||
<MediaQuery minWidth={frameless.tabletPortrait}>
|
||||
<VideoPreview
|
||||
isYouTube
|
||||
buttonMessage={
|
||||
this.props.intl.formatMessage({id: 'annualReport.watchVideo'})
|
||||
}
|
||||
thumbnail="/images/annual-report/initiatives/schools/CPS Story/CPS Video Thumbnail.png"
|
||||
thumbnailWidth="580"
|
||||
videoHeight="320"
|
||||
videoId="9QD9IxOinLg"
|
||||
videoId="joal01i8b1"
|
||||
videoWidth="568"
|
||||
/>
|
||||
</MediaQuery>
|
||||
|
@ -1550,14 +1549,13 @@ class AnnualReport extends React.Component {
|
|||
minWidth={frameless.mobile}
|
||||
>
|
||||
<VideoPreview
|
||||
isYouTube
|
||||
buttonMessage={
|
||||
this.props.intl.formatMessage({id: 'annualReport.watchVideo'})
|
||||
}
|
||||
thumbnail="/images/annual-report/initiatives/schools/CPS Story/CPS Video Thumbnail.png"
|
||||
thumbnailWidth="400"
|
||||
videoHeight="216"
|
||||
videoId="9QD9IxOinLg"
|
||||
videoId="joal01i8b1"
|
||||
videoWidth="380"
|
||||
/>
|
||||
</MediaQuery>
|
||||
|
|
|
@ -1864,10 +1864,6 @@ p {
|
|||
|
||||
&.cps {
|
||||
background-image: url("/images/annual-report/initiatives/schools/CPS Story/CPS Video Splash.svg");
|
||||
|
||||
.button {
|
||||
background-color: $ui-purple;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue