Skip to content

Instantly share code, notes, and snippets.

@crissmoldovan
Last active May 3, 2018 08:49
Show Gist options
  • Select an option

  • Save crissmoldovan/a0890dc2728ab741ff4a454cebd2b279 to your computer and use it in GitHub Desktop.

Select an option

Save crissmoldovan/a0890dc2728ab741ff4a454cebd2b279 to your computer and use it in GitHub Desktop.
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