-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gallery-layer-type): add basic viewer
- Loading branch information
1 parent
811cf12
commit 7ab79da
Showing
6 changed files
with
75 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
3.0 0 188 254 255 | ||
0.0 0 0 0 255 | ||
nv 0 0 0 0 |
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,19 @@ | ||
@require '../../../../variables.styl' | ||
|
||
.gallery | ||
position: relative | ||
flex-grow: 1 | ||
flex-basis: 50% | ||
width: 100% | ||
height: 100% | ||
|
||
.galleryItem | ||
box-sizing: border-box | ||
padding: emCalc(100px) | ||
width: 100% | ||
height: 100% | ||
|
||
.galleryImage | ||
width: 100% | ||
height: 100% | ||
object-fit: contain |
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 @@ | ||
import React, {FunctionComponent} from 'react'; | ||
|
||
import styles from './gallery.styl'; | ||
import {GlobeImageLayerData} from '../../../types/globe-image-layer-data'; | ||
|
||
interface Props { | ||
imageLayer: GlobeImageLayerData | null; | ||
} | ||
|
||
const Gallery: FunctionComponent<Props> = ({imageLayer}) => { | ||
return ( | ||
<div className={styles.gallery}> | ||
<div className={styles.galleryItem}> | ||
<img className={styles.galleryImage} src={imageLayer?.url} /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Gallery; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.