Commit 2fd1176b authored by NERUSU PRANEETH's avatar NERUSU PRANEETH

added sun component to the screan

parent 28e5268c
import React, { Component } from 'react';
import { Container, Row, Col } from 'react-grid-system';
import Cloud from './components/Cloud';
import Mountain from './components/Mountain';
//import Sun from './components/Sun';
import Sun from './components/Sun';
class App extends Component {
render() {
return (
......@@ -15,13 +17,17 @@ class App extends Component {
<Col sm={4} xs={12} md={4} >
<Cloud />
</Col>
</Col>
<Col sm={4} xs={12} md={4}>
<Col sm={2} xs={12} md={4}>
<Mountain />
</Col>
<Col sm={4} xs={12} md={4}>
<Sun />
</Col>
</Row>
</Row>
</Container>
</div>
);
......
import React, { Component } from 'react';
import logo from './logo.svg';
import './components/App';
import Sun from './components/Sun';
//import logo from './logo.svg';
import sun from './images/Sun.png';
class App extends Component {
class Sun extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={Sun} className="App-logo" alt="logo" />
<img src={sun} className="App-logo" />
......@@ -19,5 +18,5 @@ class App extends Component {
}
}
export default App;
export default Sun;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment