Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/expandGrid/ExpandGrid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, useRef, useState } from "react"
import React, { useRef, useState } from "react"
import { Flipper, Flipped } from "react-flip-toolkit"
import "./expandGrid.scss"

Expand Down
3 changes: 0 additions & 3 deletions src/components/expandGrid/expandGrid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@
flex-grow: 0;
margin-right: 0;
width: auto;

@media screen and (max-width: 890px) {
}
}
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/videoBackground/VideoBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ const VideoBackground = ({ data: { video, description, button } }) => {
setIsVideoPause(prev => !prev)
}


useEffect(() => {

const isVideoPauseLocal = typeof window !== 'undefined' ? localStorage.getItem('videoPaused') : undefined
const isVideoPauseLocal =
typeof window !== "undefined"
? localStorage.getItem("videoPaused")
: undefined

if (isVideoPauseLocal === "true") {
console.log(isVideoPauseLocal)
Expand All @@ -27,10 +28,9 @@ const VideoBackground = ({ data: { video, description, button } }) => {
}, [])

useEffect(() => {
localStorage.setItem('videoPaused', isVideoPause)
localStorage.setItem("videoPaused", isVideoPause)
}, [isVideoPause])


return (
<section className="videoBackground">
<video
Expand All @@ -43,10 +43,10 @@ const VideoBackground = ({ data: { video, description, button } }) => {
controls={false}
onClick={pausePlay}
/>
<div className="videoBackground-card" >
<div className="videoBackground-card">
<p>{description}</p>
<a href={button.url} target="_blank" rel="noreferrer">
<button >{button.content}</button>
<button>{button.content}</button>
</a>
</div>
</section>
Expand Down
31 changes: 20 additions & 11 deletions src/components/videoBackground/videoBackground.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.videoBackground {
width: 100%;
height: 90vh;
width: calc(100% - 6em);
height: 80vh;
position: relative;
z-index: 3;
display: flex;
margin: 3em;
video {
top: 0;
position: absolute;
Expand All @@ -12,26 +13,34 @@
object-fit: cover;
z-index: -1;
cursor: pointer;
border-radius: 20px;
}

&-card {
z-index: 4;
align-self: flex-end;
flex-basis: 1;
max-width: 600px;
backdrop-filter: blur(14px);
color: white;
border-radius: 5px;
background: #ffffff4f;
color: #545468;
border-radius: 16px;
background: #e8e8e8b3;
box-shadow: 0px 0px 3px #00000044;
margin: 1em;
padding: 1em;
margin: 3em;
padding: 2em;
p {
font-style: normal;
font-weight: bold;
font-size: 31px;
line-height: 46px;
/* Gray 600 */
color: #545468;
}
button {
background: none;
border: 1px solid white;
background: #545468;
border: none;
color: white;
border-radius: 3px;
padding: 0.3em;
padding: .6em 3em;
}
}
}