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

Commit a3edd96

Browse files
authored
fix(homepage): horizontal overflow scrollbar (#498)
* fix(homepage): horizontal overflow scrollbar (#5) resolves #435 * fix(homeage): refine hero video performance (#6) - Force overlay to cover entire screen regardless of whether scrolled or not. - Reduce size of video thumbnail from 3 MB -> 144 KB (why was it ever 3 MB?)
1 parent d0cb287 commit a3edd96

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/components/HomePageHighlights.module.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
background-image: linear-gradient(0deg, var(--color-neutrals-100) 70%, rgba(255,255,255, 0));
1717
content: '';
1818
position: absolute;
19-
left: -10px;
20-
right: -0px;
21-
transform: translateY(-250px) rotate(-2deg);
19+
left: 0;
20+
right: 0;
21+
transform: skewY(-2deg) translateY(-250px);
2222
display: block;
2323
height: 200px;
2424
}

src/images/video-placeholder-1.jpg

141 KB
Loading

src/images/video-placeholder-1.png

-3.11 MB
Binary file not shown.

src/pages/home-page.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ img.play-button {
257257
}
258258

259259
.video-modal-overlay {
260-
position: absolute;
260+
position: fixed;
261261
top: 0;
262262
right: 0;
263263
bottom: 0;

src/pages/index.js

+1-1
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-1.png';
13+
import videoPlaceholder from '../images/video-placeholder-1.jpg';
1414
import playButton from '../images/button-play.svg';
1515
import closeIcon from '../images/icon-close.svg';
1616

0 commit comments

Comments
 (0)