Skip to content

Commit

Permalink
Implementation of Burger Builder Container
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch-sriram committed Aug 3, 2020
1 parent 205db02 commit d8d3987
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ NOTE: There can be more additions into the design, over iterations of the Applic

0. Layout, Component & State Design: **[View](https://codepen.io/ch-sriram/full/JjXPbEe)**
1. Creating a Layout Component: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/0187377958254ea601fcfb9c6b5c5d5e39bbc484)
2. Initiating the implementation of Burger Builder Container: [Commit Details]();
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@testing-library/user-event": "^7.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
"react-scripts": "3.4.1",
"styled-components": "^5.1.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
5 changes: 3 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
import React, { Component } from 'react';

// Our Components
import Layout from './components/Layout/layout.component';
import Layout from './components/Layout/Layout.component';
import BurgerBuilder from './containers/BurgerBuilder/BurgerBuilder.component';

class App extends Component {
render() {
return (
<div>
<Layout>
<p>Test</p>
<BurgerBuilder />
</Layout>
</div>
);
Expand Down
3 changes: 3 additions & 0 deletions src/components/Layout/Layout.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.Content {
margin-top: 16px;
}
5 changes: 3 additions & 2 deletions src/components/Layout/layout.component.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import Aux from '../../hoc/Auxiliary/auxiliary.hoc';
import Aux from '../../hoc/Auxiliary/Auxiliary.hoc';
import classes from './Layout.module.css';

const layout = props => {
return (
<Aux>
<div>Toolbar, SideDrawer, Backdrop</div>
<main>
<main className={classes.Content}>
{props.children}
</main>
</Aux>
Expand Down
15 changes: 15 additions & 0 deletions src/containers/BurgerBuilder/BurgerBuilder.component.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React, { Component } from 'react';
import Aux from '../../hoc/Auxiliary/Auxiliary.hoc';

class BurgerBuilder extends Component {
render() {
return (
<Aux>
<div>Burger</div>
<div>Build Controls</div>
</Aux>
);
}
}

export default BurgerBuilder;

0 comments on commit d8d3987

Please sign in to comment.