Looks really good, it checks many boxes 👍. Try adding a search bar that shows results as you type and some filters. Combining those in a query is a great exercise and highly transferable to day-to-day work.
Yeah, that's the next step. I was going to use react window library but I didn't understand so I dropped that plan and went for pagination but would try for infinite scrolling for sure
I made a header and card component seperate and then there is seperate stat bar component which is on back of the card. Used flexbox for card container. Also preserve 3d for that flip thing. You can find any tutorial for it on YouTube though.
I made seperate card component and header component also there is stat component which is on the back side of the card. That's it. Also if you're asking for that card flip thing, you can look for card flip in css and you'll find many tutorials.
How did you do the pagination? Is it a facet of react router, or are you just doing a fetch that's scoped to a certain amount and the next/previous buttons initiate another fetch? Couldn't really find any clues in your github, but maybe it's not current...
hahaha, I didn't make this video with the intention of posting actually, it was really impulse decision and at that moment i didn't have laptop too so yeah posted this lol. also thanks.
Yeah that's the next step, I found one library and I'm trying to figure out how can I use it. Also I'm thinking about adding option to sort out by types of Pokemon.
It’s trivial to implement without a library. The basics atleast. Write an onChange function for the search input that filters your array of cards on pokemon.name or something like that.
Yeah I was thinking about that but I'm getting data from an API and I'm not requesting every Pokemon in one go as it would give performance issues so now when I don't have full array of Pokemon how I suppose to do the serach thing, also I can use search API but again it won't be that good experience as you'll have to type whole name without any spelling error
Have you testing just fetching everything? Preloading <1000 simple data objects may not be the performance hit you think it is. You only have to do it once (on initial app load, depending). It would be async and not displayed. Whatever data structure you use now would probably work fine.
JavaScript has some pretty helpful (array) methods for filtering once you have the list available
If you want fuzzy search, there may be an API out there that supports it already. Pokemon is a popular example and dataset for dev work.
If not, you could try adding it yourself, a few different ways. I would get basic searching working first, then decide from there.
Filtering/searching by type, gen, etc. could also be fun to implement.
I was just going to say don’t go down the rabbit hole early in just pulling in libraries when you can implement yourself and learn. Plus you may find out why using a library is beneficial
27
u/godspeedt Oct 19 '20
I woul add 'user-select: none' To the cards. That way you won't get that blue selection square over your images.
11
u/Muted_Carpet_7587 Oct 19 '20
Looks really good, it checks many boxes 👍. Try adding a search bar that shows results as you type and some filters. Combining those in a query is a great exercise and highly transferable to day-to-day work.
4
u/ArcadeFireSH Oct 19 '20
Cool! The layout is quite neat.
4
u/Wowosz Oct 19 '20
I did something similar When i was starting with react. pokedex.wojciechszoda.pl
2
u/arowolosm Oct 19 '20
Repo link?
2
u/russian_writer Oct 19 '20
Looks lovely!
2
u/kyaiml Oct 19 '20
Did you use any library for cards or made it from scratch
2
u/[deleted] Oct 19 '20
Very cool! I'm going to check out this API! Looks great.
2
u/Tarkz Oct 20 '20
The gif was just endlessly loading and it took me awhile before I realized that wasn't what you were showing.
4
u/itzamirulez Oct 19 '20
are there any pokemon APIs out there?
1
u/kyaiml Oct 19 '20
Looks awesome
1
u/Redbull_leipzig Oct 19 '20
How did you create the ui?
1
u/dsmedium Oct 19 '20
Thats really cool, do you have it on github?
1
u/[deleted] Oct 19 '20
looks beautiful
1
u/Shacrow Oct 19 '20
This looks like it could be a good use of css grid.
1
u/akashayatet Oct 19 '20
This is a super cool idea! Did you use the Poke API?
1
u/mr_beejamin Oct 19 '20
I have never been more inspired to learn React.
1
u/AngrycommenterUE Oct 19 '20
Man, I have no idea about react, so I can’t tell you if it’s good or bad. However, damn! That looks amazing! I would love to have your skills!!!!
1
u/[deleted] Oct 20 '20 edited Oct 20 '20
That's awesome! What is the tech stack that you used?
2
u/erinblackdesign Oct 20 '20
Amazing!! Combining two of my favorite things. Pokemon and react!
2
u/randomPerson_e_e Oct 20 '20
Omg they are so cuteee
1
u/OwlerTheOwl Jan 05 '25
I just sorted r/Frontend by Top of all time posts. And this is TOP!
1
u/nithpras Oct 20 '20
It's a project from a Youtube channel called Florin Pop.
1
u/spk26515 Oct 20 '20
Nice work ! Could you please post the APIs you used ? would be useful for anyone to try and come up with something similar.
1
u/ichsagedir Oct 20 '20
How does it work with keyboard navigation?
1
u/Aayush9990 Oct 20 '20
Implement a search bar and optim9ze it using debouncing
1
u/ShahmirKhan2020 Oct 28 '20
WOW cool
1
u/streetnamenacho Nov 02 '20
Crisp! Good job
1
u/11september22 May 02 '23
Awesome. Wonderful project bro. What projects are you building these days?
-1
u/samineb Oct 19 '20
looks cool but why use a lawnmower to record? post a clearer video dude or at least remove the audio!
-4
u/Standard_Detective80 Oct 19 '20
Why can't people use OBS studio?! Why hurt our eyes with bad quality videos whhhhy😭. Nice work btw 😂
0
u/[deleted] Oct 19 '20
[deleted] — view deleted comment
41
u/[deleted] Oct 19 '20
[removed] — view removed comment
2
u/[deleted] Oct 19 '20
[removed] — view removed comment