diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-10-21 17:41:10 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-10-21 17:41:10 +0200 |
| commit | 3b0adaf902920a06efc141df58abd0368bd724b6 (patch) | |
| tree | f1e65fc75db4a153f4f81578bb0e23bf113354e0 /animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.text.js | |
| parent | 4f10f2a47aa89421ae4631609f84e53891710e4c (diff) | |
fullscreen text
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.text.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.text.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.text.js b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.text.js new file mode 100644 index 0000000..d9f7117 --- /dev/null +++ b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.text.js @@ -0,0 +1,21 @@ +import React from 'react' + +export const FullscreenTextPlate = ({ element, transitionDuration }) => { + console.log(element) + const { color } = element + const style = { + backgroundColor: color.backgroundColor.replace('1.0', '0.8'), + color: color.textColor, + transitionDuration, + } + return ( + <div + className='fullscreen-element text-plate' + style={style} + > + <span> + {element.annotation.text} + </span> + </div> + ) +} |
