-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still a bit to do. will try and get it done through this week #30
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1 @@ | |||
{"id":"index.css","dependencies":[{"name":"_css_loader","parent":"/Users/matthewcollier/Documents/Sites/constructor-labs/project-cinema/src/index.css","resolved":"/usr/local/lib/node_modules/parcel-bundler/src/builtins/css-loader.js"}],"generated":{"css":":root {\n --bg-color: #000;\n --text-color: #fff;\n --highlight-color: grey;\n --link-color: blue;\n}\n\nbody,\nhtml {\n color: var(--text-color);\n background-color: var(--bg-color);\n\n /*Declare your font*/\n font-family: \"Source Serif Pro\", serif;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.app {\n}\nmain {\n display: flex;\n flex-direction: row;\n}\n","js":"\nvar reloadCSS = require('_css_loader');\nmodule.hot.dispose(reloadCSS);\nmodule.hot.accept(reloadCSS);"},"hash":"626be48813a0f1d51f52fb999b45f58f","cacheData":{"env":{}}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These could be added to .gitignore
const mainNode = document.querySelector("main"); | ||
|
||
//Create the search previews Poster + Title + Year + Try to pull in rating | ||
function createContentOverview(content, className = "content-overview") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like the default args :)
|
||
//Create the search previews Poster + Title + Year + Try to pull in rating | ||
function createContentOverview(content, className = "content-overview") { | ||
const overviewMarkUp = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function is around 50 lines long and could be broken down into smaller chunks
return buildURL(searchURL); | ||
} | ||
|
||
// function createContentParameters(imdbNumber) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out code can be removed
There is a lot of files in .cache and dist that can go into .gitignore to keep project. Would love to see a README next time. Also, more frequent commits will make your life easier in future |
getting messy and 3 or so features 90% done