Skip to content

Commit

Permalink
Display a list of movies from hardcoded data
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnsull3 committed Feb 20, 2020
1 parent a2b2a80 commit c30f069
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 15 deletions.
48 changes: 47 additions & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Movie List</title>
<!-- <link rel="stylesheet" href="style.css"> -->

<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/underscore/underscore.js"></script>
</head>
<body>
<h1>Starter React App</h1>
<h1>Movie List</h1>
<div id="app">

</div>
Expand Down
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import React from 'react';
import '../main.css';

var movies = [
{title: 'Mean Girls'},
{title: 'Hackers'},
{title: 'The Grey'},
{title: 'Sunshine'},
{title: 'Ex Machina'},
];

class App extends React.Component {
render(){
return(
<div>
Starter App component - hello there
<div className="title">{movies[0].title}</div>
<div className="title">{movies[1].title}</div>
<div className="title">{movies[2].title}</div>
<div className="title">{movies[3].title}</div>
<div className="title">{movies[4].title}</div>
</div>
)}
}
Expand Down
7 changes: 7 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.title {
border: 2px;
padding: 2px;
border-style: solid;
border-color: blue;
color: black;
}

0 comments on commit c30f069

Please sign in to comment.