Skip to content
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

Footer in website #34

Closed
yasirobai99 opened this issue Oct 1, 2022 · 24 comments
Closed

Footer in website #34

yasirobai99 opened this issue Oct 1, 2022 · 24 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@yasirobai99
Copy link
Contributor

I can add a footer to the website which will make the website more attractive and which will make a complete website

@Substancia
Copy link
Contributor

Hey @YasirObaibullah99 is this a critical work, and if I proceed with #41, will it be breaking changes to your work?

@yasirobai99
Copy link
Contributor Author

No you just tell me how you are doing in #41 it will not break

@Substancia
Copy link
Contributor

Sure. Basically the "components" folder will have only folders, each folder named different components (like items, search etc), and each folder will have the component files (js) and their supporting files like css (basically all files with same name goes in sane folder with that name).

If you're creating new component files, please follow this practice. I'll take care of converting the structure of existing files.

@Substancia
Copy link
Contributor

@yasirobai99
Copy link
Contributor Author

Ya this is best practices for react js and go for it

This was referenced Oct 3, 2022
@Substancia
Copy link
Contributor

@YasirObaibullah99 is this work done? Let me know once I can start with the code restructuring without affecting your work. Thanks.

@yasirobai99
Copy link
Contributor Author

Ya it merged now you can start your work

@Substancia
Copy link
Contributor

Awesome!

@aditya-singh9 @Rudresh-pandey since the new UI work starts tomorrow and the repo will be blocked for the entire day, and since no critical work is being done right now, I'll do the code restructuring after my dinner. That cool?

@aditya-singh9
Copy link
Owner

Cool

@Substancia
Copy link
Contributor

Why are we using an entire library (cdbreact) just for the footer? Couldn't we have just coded a footer component manually? An additional package means higher vulnerability risk in the future.

Also the footer is misbehaving.

@aditya-singh9 aditya-singh9 reopened this Oct 5, 2022
@Substancia
Copy link
Contributor

  1. Are we having a footer in mobile view?
  2. In desktop view, do we want the footer sticky or at bottom of page?

@Rudresh-pandey
Copy link
Contributor

Rudresh-pandey commented Oct 5, 2022

left-bottom in desktop view - fixed
bottom in tablet and mobile view

@Rudresh-pandey
Copy link
Contributor

i am not getting any of the footer issue in my local npm server

@Rudresh-pandey
Copy link
Contributor

@Substancia i have this code
image

@Substancia
Copy link
Contributor

Sorry, my bad, I've got this particular issue fixed, with a new question. Do we want the footer to stick to the bottom when emojis list is empty? Because that wasn't implemented.

@Rudresh-pandey
Copy link
Contributor

image
i have already implemented it

@Rudresh-pandey
Copy link
Contributor

image

@Substancia
Copy link
Contributor

That's the code in big screen (width >= 1400px). In smaller screens, the footer isn't sticking.

https://user-images.githubusercontent.com/27500147/194071152-64e265ed-aadd-47ae-9660-5bcc5e5baa30.png

@Rudresh-pandey
Copy link
Contributor

check this :- it was working when i made the pr
https://kekfinder-cnjf9wcez-aditya-singh9.vercel.app/

@Rudresh-pandey
Copy link
Contributor

ok now i understand , since i was using my laptop to see the progress i didn't check the height of the device that's why the footer is behaving like this , it's not a big issue

@Rudresh-pandey
Copy link
Contributor

i am just confused 😑, i don't know which property should i use to make this footer on the bottom of the screen

@Rudresh-pandey
Copy link
Contributor

Sorry, my bad, I've got this particular issue fixed, with a new question. Do we want the footer to stick to the bottom when emojis list is empty? Because that wasn't implemented.

yes i didn't considered the heights of the screen , i wasted a lot of time 😑 and didn't allow others to get there code merged

@Substancia
Copy link
Contributor

I did spend some time on this issue, and realized that the difficulty in this issue arises from the way the divisions and blocks are defined in the html code (basically the elements structure). To fix this, all I see are either do some nasty hacks (like force fixing heights of certain elements), or restructuring the elements altogether. If anyone can come up with a GOOD solution, I'll be very curious.

@Substancia
Copy link
Contributor

This is what I came up with, simple change, works fine. Please do some edge-testing.
@aditya-singh9 @Rudresh-pandey

Repository owner locked and limited conversation to collaborators Oct 6, 2022
Repository owner unlocked this conversation Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

4 participants