https://github.com/OnizukaJS/Fit-For-Champions
- Polish the readme using the markdown syntax for the Headlines
- Add the link of the deployed verision to the README.
- When importing fonts from google fonts, select all the fonts and then generate only one link. With multiple links, page has to do several requests for the assests which slows down the initial load.
- HTML has a lot of div elements. Try using more semantic elements like
section
andarticle
img
tags should havealt
attribute. This is the minimum we should put when it comes to following best practices of accessibility for screen readers.- some
class
names are written in camelCase and some in kebab-case syntax. Prefer using kebab-case syntax when namingid
orclass
attributes in HTML. - HTML code was well commented. ✅
- Avoid using
!important
for css.
- JS variables were well named, good job ✅
faq.js
file is left with commented code, not in use. Remove unused files.- Try using array methods for iteration more often instead of
for
loop.for
loops are not bad, but a lot offor
loops make the code large and hard to read. - I see you were using comments in your
js
code, good job. Try to make a habit of commenting your code well. - Use
const
instead oflet
. We use let only for values that we are going to change. When storing objects or arrays we store them inconst
, as objects are mutable. Example:
// js/hamburger-menu.js
let menuResp = document.getElementById('menuResp');
// /js/main.js
let elmt = data[i];
let date = new Date(`${elmt.date}`);
- Project didn't have many commits. Try making commits more often, and always include a clear commit message with the description of changes up to 50 characters long.
https://github.com/Noiretit/DATanime
- Readme looks good overall.
- Consider removing the part Wireframes, or adding the wireframes images if you have them.
- Add the link of the deployed verision of the project to the README.
- HTML has a lot of div elements. Try using more semantic elements like
section
andarticle
img
tags are following the best practice and havealt
attribute, good job.- some
class
names are written in camelCase and some in kebab-case syntax. Prefer using kebab-case syntax when namingid
orclass
attributes in HTML. - HTML code was well commented. ✅
- Avoid using
!important
for css rules. - All styles were written in one file. In the future try making your css more modular, having one main file for base styles and splitting the styles for different pages in other files.
- In the future remember to use the CSS reset boilerplate to clear the browser default styles. If not you may end up having your app looking different between different browsers.
- Move your font files from
css
folder to a separate folder to have the file structure more organized.
- JS variables were well named, good job ✅
- You have several files left with the commented code not in use. Try removing those comments.
- Try writting more comments in your
js
code. This will serve to help you or others navigate and read your code easier. When writting comments try to make them descriptive and concise. - Use
const
instead oflet
. We use let only for values that we are going to change. When storing objects or arrays we store them inconst
, as objects are mutable. Example:
// scripts/AnimeListApi.js
let randomAnimeId = Math.round(Math.floor((Math.random() * 400)));
- The functions created to call to the API could be moved to one file and created as methods of a class, for example:
class AnimeAPI {
constructor () {
this.BASE_URL = "https://dat-anime-api.herokuapp.com";
}
getDetailedAnimeInfo = () => { /* ... */}
getRandomDetailedAnime =() => { /* ... */}
getAnimes() => {/* ... */}
}
-
Good job with creating commits often. Commit messages look good as well. You may be interested in checking the preferred syntax of how to write good commit messages:
https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
https://github.com/alejandrocolorado/summer-in-mars
-
Readme looks good, but still needs a bit of update:
-
Part with links is not completed, try updating it. Add the link of the deployed verision here so that live version can be accessed.
-
Part Data Structure can be created using VSCode extension, to make it look cleaner. Consider using this VSCode extension (or similar) and pasting it in the code block for example:
📦project-name ┣ 📜README.md ┣ 📜index.js ┣ 📦 scripts ┗ 📦 images
-
HTML has a lot of div elements. Try using more semantic elements like
section
andarticle
. -
img
tags should havealt
attribute. This is the minimum we should put when it comes to following best practices of accessibility for screen readers. -
class
andid
names are well named in kebab-case syntax, good job. ✅ -
HTML code could use few comments to describe specific sections of code.
-
in the place of importing fonts inside of the
<style></style>
tag with the@import
, use the<link>
tag directly.<style> @import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Raleway:wght@200;300;400;700&display=swap"); </style>
-
Great job with using pseudo selectors. ✅
-
All styles were written in one file. In the future when you will have multiple pages try making your css modular, having one main file for base styles and splitting the styles for different pages in other files. Not a problem at the moment as you have only one page.
-
If you were using materiallize as the styling library, you should add it on your readme. As well if you used any other libraries, it is good to mention it on your README.
-
Try updating the indentation in the css to have it consistent accros the file.
.login-form { height: 400px; padding: 0 3rem; }
-
Use
""
quotes in theurl
of thebackground-image
property..faq-container { background-image: url(./../images/mars_nasa.jpg); /* ... */ }
- JS variables were well named, good job ✅
- Try writting more comments in your
js
code. This will serve to help you or others navigate and read your code easier. When writting comments try to make them descriptive and concise. - Use
const
instead oflet
. We use let only for values that we are going to change. When storing objects or arrays we store them inconst
, as objects are mutable. Example:
// scripts/AnimeListApi.js
let randomAnimeId = Math.round(Math.floor((Math.random() * 400)));
-
Good job with creating commits often. Commit messages look good as well. You may be interested in checking the preferred syntax of how to write good commit messages:
https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716