Last active
May 3, 2018 08:49
-
-
Save crissmoldovan/a0890dc2728ab741ff4a454cebd2b279 to your computer and use it in GitHub Desktop.
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' | |
| export default class HelloWorld extends Component { | |
| render() { | |
| return ( | |
| <div style={styles.Main}> | |
| <span style={styles.Hello}>Hello World</span> | |
| <img src={'/static/hello-world_world.png'} style={styles.World} /> | |
| </div> | |
| ) | |
| } | |
| } | |
| const styles = { | |
| Main: { | |
| position: 'absolute', | |
| top: 242, | |
| left: 335, | |
| width: 395, | |
| height: 190, | |
| border: [ | |
| { | |
| width: 1, | |
| style: 'inset', | |
| color: '#979797ff' | |
| } | |
| ], | |
| background: { | |
| color: '#b0f3d0ff' | |
| } | |
| }, | |
| Hello: { | |
| position: 'absolute', | |
| top: 265, | |
| left: 455, | |
| width: 155, | |
| height: 36, | |
| fontSize: 30, | |
| fontFamily: 'Helvetica Light' | |
| }, | |
| World: { | |
| position: 'absolute', | |
| top: 286, | |
| left: 402, | |
| width: 261, | |
| height: 161 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment