├── .gitignore
├── .DS_Store
├── .babelrc
├── client
├── styles
│ ├── application.scss
│ ├── _Video.scss
│ ├── _IngredientsPopup.scss
│ ├── _TestComponent.scss
│ └── _App.scss
├── src
│ ├── test.js
│ └── index.js
├── templates
│ ├── test.html
│ └── index.html
└── components
│ ├── VideoModal.js
│ ├── TestComponent.js
│ ├── IngredientsPopup.js
│ └── App.js
├── README.md
├── server
└── server.js
├── package.json
└── webpack.config.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adeebbayat/Solo-Project/HEAD/.DS_Store
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-env", "@babel/preset-react"]
3 | }
--------------------------------------------------------------------------------
/client/styles/application.scss:
--------------------------------------------------------------------------------
1 | @import '_TestComponent';
2 | @import '_App';
3 | @import '_IngredientsPopup';
4 | @import '_Video'
5 |
--------------------------------------------------------------------------------
/client/styles/_Video.scss:
--------------------------------------------------------------------------------
1 | #videoButton {
2 | position: absolute;
3 | bottom:61px;
4 | left:395px;
5 | }
6 |
7 | #videoClose{
8 | margin-bottom: 20px;
9 | }
--------------------------------------------------------------------------------
/client/styles/_IngredientsPopup.scss:
--------------------------------------------------------------------------------
1 | #ingredientsButton {
2 | position: absolute;
3 | left:207px;
4 | top:695px;
5 | }
6 |
7 | #modalDiv {
8 | display:flex;
9 | justify-content: space-between;
10 | }
11 |
--------------------------------------------------------------------------------
/client/src/test.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render } from 'react-dom';
3 | import {TestComponent} from '../components/TestComponent'
4 | import style from '../styles/application.scss'
5 | render(
{`Ingredient ${i + 1}:`} {`${listOfIngredients[i]}`}
46 | ))} 47 | 48 |Here is your recipe: {this.state.didLoad && this.state.menu 74 | ? `${this.state.menu.meals[0].strMeal}` 75 | : 'Loading...'}
76 |Origin: {this.state.didLoad && this.state.menu ? `${this.state.menu.meals[0].strArea}`: 'Loading...'}
90 |Category: {this.state.didLoad && this.state.menu ? `${this.state.menu.meals[0].strCategory}`: 'Loading...'}
91 |Instructions: {this.state.didLoad && this.state.menu ? `${this.state.menu.meals[0].strInstructions}`: 'Loading...'}
92 |