This file contains hidden or 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
import React from 'react' | |
import styles from './ViewerTemplate.scss' | |
import classNames from 'classnames/bind' | |
const cx = classNames.bind(styles) | |
const ViewerTemplate = ({ viewer, spaceNavigator }) => { | |
return ( | |
<div className={cx('viewer-template')}> | |
<header> |
This file contains hidden or 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
@import 'utils'; | |
.viewer-template { | |
header { | |
background: $oc-gray-9; | |
height: 5rem; | |
color: white; | |
padding: 1rem; | |
display: flex; |
This file contains hidden or 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
import React, { Component } from 'react' | |
import ViewerTemplate from './components/ViewerTemplate' | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<ViewerTemplate /> | |
</div> | |
) |
This file contains hidden or 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
import React, { Component } from 'react' | |
import ViewerTemplate from './components/ViewerTemplate' | |
import SpaceNavigator from './components/SpaceNavigator' | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<ViewerTemplate spaceNavigator={<SpaceNavigator />}/> | |
</div> |
This file contains hidden or 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
import React, { Component } from 'react' | |
import ViewerTemplate from './components/ViewerTemplate' | |
import SpaceNavigator from './components/SpaceNavigator' | |
import Viewer from './components/Viewer' | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<ViewerTemplate |
This file contains hidden or 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
@import 'utils'; | |
.viewer { | |
height: 100%; | |
width: 100%; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
img { | |
display: block; |
This file contains hidden or 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
import React from 'react' | |
import styles from './Viewer.scss' | |
import classNames from 'classnames/bind' | |
const cx = classNames.bind(styles) | |
const Viewer = ({ mediaType, url, loading }) => { | |
return ( | |
<div className={cx('viewer')}> | |
{( |
This file contains hidden or 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
import React from 'react' | |
import styles from './Viewer.scss' | |
import classNames from 'classnames/bind' | |
const cx = classNames.bind(styles) | |
const Viewer = ({ mediaType, url, loading }) => { | |
return ( | |
<div className={cx('viewer')}> | |
{( |