openwisp-wifi-login-pages icon indicating copy to clipboard operation
openwisp-wifi-login-pages copied to clipboard

[change] Eliminate redundancy of header HTML

Open nemesifier opened this issue 4 years ago • 14 comments

The header HTML is kind of duplicated, once is a desktop version and one is a mobile version.

I wonder if we can avoid this and handle everything with CSS.

It's kind of painful to customize this part because of this duplication (double amount of work).

nemesifier avatar Jul 23 '21 17:07 nemesifier

Hi, I would like to work on this issue, please tell me how to proceed :)

Red-0111 avatar Jul 28 '21 10:07 Red-0111

Hi @Red-0111, Please check client/components/header/. In this headers are defined for mobile and desktop separately. mobile: https://github.com/openwisp/openwisp-wifi-login-pages/blob/f2af7f1940aa6f41d2b2d2b35567c016382396b2/client/components/header/header.js#L145-L148 desktop: https://github.com/openwisp/openwisp-wifi-login-pages/blob/f2af7f1940aa6f41d2b2d2b35567c016382396b2/client/components/header/header.js#L59-L62

In this issue, it is mentioned to get rid of one header using CSS.

codesankalp avatar Jul 28 '21 15:07 codesankalp

Hello @Red-0111, Are you working on this?

codesankalp avatar Aug 12 '21 16:08 codesankalp

Yes please give me some time I am trying to figure it out.

Red-0111 avatar Aug 12 '21 16:08 Red-0111

Yes please give me some time I am trying to figure it out.

Great, If you need any help feel free to ask :+1:

codesankalp avatar Aug 12 '21 16:08 codesankalp

Is anyone working on this?

totallynotvaishnav avatar Aug 24 '21 09:08 totallynotvaishnav

Is anyone working on this?

Yes, it would be great to have some help :)

Red-0111 avatar Aug 24 '21 10:08 Red-0111

Is anyone working on this?

Yes, it would be great to have some help :)

What issues are you facing @Red-0111?

codesankalp avatar Aug 24 '21 11:08 codesankalp

Is anyone working on this?

Yes, it would be great to have some help :)

What issues are you facing @Red-0111?

While running the headless test for yarn the test suites fail and it shows command failed with exit code 1. I tried searching the issue on internet but nothing worked.

Red-0111 avatar Aug 24 '21 12:08 Red-0111

Have you tried the correct way of running browser-test as described in README?

@Red-0111 If you have implemented this, please make a draft pull request. I will review the PR and then can tell more about the error.

codesankalp avatar Aug 24 '21 12:08 codesankalp

Have you tried the correct way of running browser-test as described in README?

@Red-0111 If you have implemented this, please make a draft pull request. I will review the PR and then can tell more about the error.

Yes I followed the same steps as in the README. I was installing dependencies so what should I make the pull request for?

Red-0111 avatar Aug 24 '21 12:08 Red-0111

I was installing dependencies so what should I make the pull request for?

I thought you had implemented the changes and now trying to run tests before creating PR. It will be better if you can provide some details about the error (screenshots). Also before running tests had you run the command yarn setup? @red-0111

codesankalp avatar Aug 24 '21 14:08 codesankalp

@Red-0111 I suggest using the OpenWISP support chat to coordinate better.

nemesifier avatar Aug 24 '21 17:08 nemesifier

@Red-0111 I suggest using the OpenWISP support chat to coordinate better.

Yeah sure

Red-0111 avatar Aug 24 '21 18:08 Red-0111