Closed thecodingwizard closed 3 years ago
@thecodingwizard I can do this.
@thecodingwizard So other than changing the search bar what else would you need to me to get done?
Stuff here: https://github.com/cpinitiative/usaco-guide/labels/website (especially the Blog :P)
And also feel free to help with content issues as well.
Thanks! :)
@thecodingwizard Essentially what I had in mind was a component like the problem search, with a route in the navbar containing the new search component.
@thecodingwizard Can you assign me to this so I don't forget?
@thecodingwizard Just making sure a full width search just means a page like the problems search but with the modules
no... I was thinking of a search icon button that would expand to become full width when clicked (or something similar). Or, alternatively, when clicking the search icon a full-page popup for search appears; that is probably fine too. I just want the ability for users to search without having to leave their page.
Ohhhh, I got you!
@thecodingwizard Something like this: https://www.youtube.com/watch?v=2yfLpNALc1g ?
actually, why don't we just make the search bar into a search button, and then when they click the search button a modal pops up? something like https://tailwindcss.com/
Would this be better?
@thecodingwizard Yeah, Thats even better. I can finish it quickly. May you assign it to me?
alright, it's assigned :) thanks!
@thecodingwizard I'm almost done with this but it's fine if hanaffi wants to try.
I don't want to overload you since you're already working on numerous other issues, so if it's alright with you I think it's best if Hanaffi takes this one
@thecodingwizard That's true the BenQ repo browsing is kinda hard so I think he can take care of the easier ui issues way faster than me.
@thecodingwizard Can you tell me where is that home page located? Im just not very prof with React&Gatsby so I cant find it :(
The navigation bar code is here: https://github.com/cpinitiative/usaco-guide/blob/master/src/components/TopNavigationBar/TopNavigationBar.tsx
(Feel free to refactor, it seems quite messy oops XD)
@thecodingwizard Wow , Aside from the issue , Can you tell me how to approach complex stuff in react? I feel so beginner looking at your codebase , LOL. I built moviesapp and to-do list :(
@Hanaffi Try not to get overwhelmed, it seems big at first, but once you really take the time to read it most of the code becomes pretty trivial.
@Hanaffi What exactly are you having trouble understanding
@MrinallU Well, I cant actually find the code needed to be edited in that file :(
ohhh
Oh, just found it
@MrinallU I cant understand the classes names. Is that a framework or what?
ummm no
If you don't understand the basic ideas you should check the React documentation: https://reactjs.org/docs/getting-started.html
@thecodingwizard May I use material UI?
err probably not; that would add a large dependency to our project + we are using tailwind css already
@thecodingwizard Can you tell me some hint on how to implement this popup using tailwind??
@Hanaffi https://tailwindui.com/components/application-ui/overlays/modals tailwind ui components has some good examples of their usage.
@HarryWangATX Thanks.
Can someone tell me how to fix this issue? I mean , the search results goes out of the modal !
looks like this is done?
Our current navbar can get quite cluttered:
We might want to change some stuff (specifically changing the search bar to become a button that then opens into a full-width search?)