Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit dc7e6ca

Browse files
authored
fix(homepage video): update mobile video (#451)
- Set placeholder for desktop video - Replace old video with new one on mobile - minor style adjustments on the homepage Resolves #447
1 parent f9d63f4 commit dc7e6ca

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/images/video-placeholder-1.png

3.11 MB
Loading

src/pages/home-page.module.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
}
1515

1616
.homepage-hero-heading {
17+
margin-top: 10px;
1718
font-family: var(--secondary-font-family);
1819
font-style: normal;
1920
font-weight: normal;
@@ -420,6 +421,7 @@ img.play-button {
420421

421422
.featured-internal-projects-section-title {
422423
margin-bottom: 4px;
424+
text-align: center;
423425
}
424426
}
425427

@@ -503,7 +505,7 @@ img.play-button {
503505
}
504506
}
505507

506-
@media screen and (max-width: 480px) {
508+
@media screen and (max-width:xzF 480px) {
507509
.hero-container {
508510
margin-top: 24px;
509511
}
@@ -514,7 +516,7 @@ img.play-button {
514516
}
515517

516518
.homepage-hero-heading {
517-
font-size: 32px;
519+
font-size: 30px;
518520
}
519521

520522
.homepage-hero-body-copy {

src/pages/index.js

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import HomePageHighlights from '../components/HomePageHighlights';
1010
import HomePageInternalProjects from '../components/HomePageInternalProjects';
1111
import styles from './home-page.module.scss';
1212

13-
import videoPlaceholder from '../images/video-placeholder.jpg';
13+
import videoPlaceholder from '../images/video-placeholder-1.png';
1414
import playButton from '../images/button-play.svg';
1515
import closeIcon from '../images/icon-close.svg';
1616

@@ -100,12 +100,15 @@ const HomePage = ({ data }) => {
100100
<div className={styles.responsiveVideoContainer}>
101101
<div className={`responsive-video ${styles.responsiveVideo}`}>
102102
<iframe
103-
width="560"
104-
height="315"
105-
src="https://www.youtube.com/embed/7wnav6Fu9T0"
103+
className={styles.heroVideoIframe}
104+
width="1000"
105+
height="562.704471"
106+
src={`https://fast.wistia.net/embed/iframe/qc7gkrlltt?videoFoam=true${
107+
heroVideoActive ? `&autoplay=1` : ''
108+
}`}
106109
frameBorder="0"
107-
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
108-
allowFullScreen
110+
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture; showinfo; modestbranding"
111+
placeholder=""
109112
/>
110113
</div>
111114
</div>

0 commit comments

Comments
 (0)