Open ProxN opened 5 years ago
Looks good, but I'd like you to add a little bit more under the How will users interact with your web site?
section.
Not much, but just something like:
You can take a look at some of the other open issues to get an idea what other people have done.
Update that and you're ready to start coding!
How are things so far? Any updates to share?
Almost done. I'm working on rendering user stats
here my app: https://fortstats.netlify.com, fortnite user to try : gz_proxn still, need some fixes
I like it. Statistics page looks amazing. I don't think that statistics bar thing is working. Is it ?
Looks great! Would you like some UI / UX feedback or a code review?
Thank you jakepintu, I did change font size and added a loader. w3cj Yes please if you can review both my design and code and thank you.
Your welcome ProxN
<meta name="viewport" content="width=device-width, initial-scale=1.0">
'
or "
, don't mix.I didn't have time to look through everything, but here are few suggestions:
elements.searchForm.addEventListener('submit', e => {
e.preventDefault();
const query = searchView.getInput();
ControlSearch(query);
});
elements.searchNav.addEventListener('submit', e => {
e.preventDefault();
const query = searchView.getNavInput();
ControlSearch(query);
});
Can be cleaned up by making a reusable function:
const addSearchSubmitHandler = (element, getQuery) => {
element.addEventListener('submit', (e) => {
e.preventDefault();
const query = getQuery();
ControlSearch(query);
});
};
addSearchSubmitHandler(elements.searchForm, searchView.getInput);
addSearchSubmitHandler(elements.searchNav, searchView.getNavInput);
The window click handler functions could be combined into a single click handler.
In searchView.js it might make sense to clean up the renderOverviewStats function by setting the default subtitle and title. Something like this:
const topStats = {
Wins: true,
Score: true,
Kills: true,
};
const renderOverviewStats = (key, value) => {
let subtitle = 'Total';
let title = key;
if (key === 'K/d') {
title = 'kills';
subtitle = 'Per Death';
} else if (key === 'Win%') {
subtitle = 'Average';
title = 'Win Rate';
} else if (!(key in topStats)) {
title = 'Matches';
subtitle = 'Played';
}
//... more codes here...
};
Thanks for review.
Project Name / Title
Your Name / Title
Project Description
What 3rd Party Web API do you plan to use?
Which of the following describes you: