-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Store triptych psas (#1845)
* Test PSAs uploaded, to be replaced * New local evergreen widget backend * Split-pane support for triptychs frontend * Make conversion of filename to slot_name more robust; pluralize config key * Seed :rand with current time / 15 * Evergreen takes conditional prop for video playing * Hook determines if app is onscreen to decide if video should be playing * feat: Add admin config columns (thus far) for triptych app (#1841) * fix: Handle unrecognized screen IDs in `screen_name_for_id` (#1842) * Send and log version in data requests from OFM clients * Always include logging params for triptych, even if we fail to determine pane * Add a new log fn for unrecognized triptych player name (#1844) * Accommodate various psa file types * Log when PSA file retrieval fails * Use stricter positioning for the panes * Added new config boolean to allow for conditionally display version and playername. * Added a couple of font mixins. * Added identifiers to TrainCrowding. * Added an EvergreenContent component for Triptychs. Just a wrapper of the OG with identifiers. * Allowed props to only change when needed. * Changed where identifiers are rendered for PSAs. * Add remaining admin columns for triptych config * Fix header font color for crowding widget (#1848) * Bring box-shadow of key to foreground (#1849) * Default to first folder of psas if needed * Set evergreen image size * Replace test psas with real ones --------- Co-authored-by: Christian Maddox <[email protected]> Co-authored-by: Jon Zimbel <[email protected]>
- Loading branch information
1 parent
52cc71a
commit 27e2c39
Showing
23 changed files
with
433 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.left-pane, | ||
.middle-pane, | ||
.right-pane { | ||
.evergreen-content__identifiers { | ||
position: absolute; | ||
bottom: 0; | ||
right: 0; | ||
background-color: rgba(23, 31, 38, 0.7); | ||
@include font--caption-3; | ||
color: white; | ||
text-align: right; | ||
padding: 12px 24px 18px 24px; | ||
} | ||
} | ||
|
||
.evergreen-content-image__image, | ||
.evergreen-content-video.looping-video { | ||
width: 1080px; | ||
height: 1920px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { ComponentType } from "react"; | ||
|
||
import EvergreenContent from "./evergreen_content"; | ||
import useIsOnScreen from "Hooks/v2/use_is_on_screen"; | ||
import { imagePath } from "Util/util"; | ||
import { TRIPTYCH_VERSION } from "./triptych/version"; | ||
import { usePlayerName } from "Hooks/outfront"; | ||
|
||
const OutfrontEvergreenContent: ComponentType<{ | ||
asset_url: string; | ||
show_identifiers: boolean; | ||
}> = ({ asset_url: assetUrl, show_identifiers: showIdentifiers }) => { | ||
const dupReadyUrl = imagePath(assetUrl); | ||
const isPlaying = useIsOnScreen(); | ||
const playerName = usePlayerName(); | ||
let identifiers = `${TRIPTYCH_VERSION} ${playerName ? playerName : ""}`; | ||
return ( | ||
<> | ||
<EvergreenContent asset_url={dupReadyUrl} isPlaying={isPlaying} /> | ||
{showIdentifiers && ( | ||
<div className="evergreen-content__identifiers">{identifiers}</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default OutfrontEvergreenContent; |
Oops, something went wrong.