Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
ff6a3eb3
Commit
ff6a3eb3
authored
Oct 20, 2020
by
seotts
Committed by
Karishma Chadha
Oct 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CPS video
parent
79bc95a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
src/components/video-preview/video-preview.jsx
src/components/video-preview/video-preview.jsx
+6
-0
src/views/annual-report/annual-report.jsx
src/views/annual-report/annual-report.jsx
+4
-2
src/views/annual-report/annual-report.scss
src/views/annual-report/annual-report.scss
+4
-0
No files found.
src/components/video-preview/video-preview.jsx
View file @
ff6a3eb3
...
...
@@ -30,6 +30,7 @@ class VideoPreview extends React.Component {
<
Video
className=
"video"
height=
{
this
.
props
.
videoHeight
}
isYouTube=
{
this
.
props
.
isYouTube
}
videoId=
{
this
.
props
.
videoId
}
width=
{
this
.
props
.
videoWidth
}
/>
...
...
@@ -60,8 +61,13 @@ 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
,
...
...
src/views/annual-report/annual-report.jsx
View file @
ff6a3eb3
...
...
@@ -1504,25 +1504,27 @@ class AnnualReport extends React.Component {
<
div
className=
"video-background cps"
>
<
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=
"
joal01i8b1
"
videoId=
"
9QD9IxOinLg
"
videoWidth=
"568"
/>
</
MediaQuery
>
<
MediaQuery
maxWidth=
{
frameless
.
tabletPortrait
-
1
}
>
<
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=
"
joal01i8b1
"
videoId=
"
9QD9IxOinLg
"
videoWidth=
"380"
/>
</
MediaQuery
>
...
...
src/views/annual-report/annual-report.scss
View file @
ff6a3eb3
...
...
@@ -1721,6 +1721,10 @@ p {
&
.cps
{
background-image
:
url("/images/annual-report/initiatives/schools/CPS Story/CPS Video Splash.svg")
;
.button
{
background-color
:
$ui-purple
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment