Skip to content

fix: darkMode enhanced#297

Merged
juzhiyuan merged 4 commits into
apache:masterfrom
iamayushdas:darkMode
Apr 12, 2021
Merged

fix: darkMode enhanced#297
juzhiyuan merged 4 commits into
apache:masterfrom
iamayushdas:darkMode

Conversation

@iamayushdas

@iamayushdas iamayushdas commented Apr 10, 2021

Copy link
Copy Markdown
Contributor

Signed-off by: Ayush Das (ayush24das@gmail.com)

Fixes: #291

Changes:

Dark mode fixed and enhanced

Screenshots of the change:

Website change 1

@iamayushdas

Copy link
Copy Markdown
Contributor Author

@juzhiyuan @nic-chen have a look

@juzhiyuan

Copy link
Copy Markdown
Member

really dark 😂 how about others?

@iamayushdas

Copy link
Copy Markdown
Contributor Author

really dark 😂 how about others?

Is this a positive feedback ?

@Yiyiyimu

Copy link
Copy Markdown
Member

Post my comments here

@iamayushdas Nice! For me, I have some other suggestions. Just take it or leave it with your preferences 😁

  1. It might be a good idea to propose a PR, so we could have a more instinctive view of the actual website rather than screenshots
  2. For the description part, IMO, we could have a darker background with lighter(whitish) text to be compatible with other parts of the whole website. And still, the background of this part better different from other ones.
  3. Grayish title is absolutely great, it's the main part of the dark mode. But the problem is it seems too dark right now so the contract between text and background is not clear enough. A example from DuckDuckGo
    image

@Yiyiyimu

Copy link
Copy Markdown
Member

Also it seems you also change some color in the light mode, like the github button, which seems not as good as before.

@juzhiyuan

Copy link
Copy Markdown
Member

@iamayushdas no 😂 I mean we need more contributors review.

@iamayushdas

Copy link
Copy Markdown
Contributor Author

@iamayushdas no 😂 I mean we need more contributors review.

Oh okay😅

@iamayushdas

Copy link
Copy Markdown
Contributor Author

Also it seems you also change some color in the light mode, like the github button, which seems not as good as before.

Let me acquire what you said😊

@iamayushdas

Copy link
Copy Markdown
Contributor Author

@gxthrj @nic-chen need a review on this!

@iamayushdas

iamayushdas commented Apr 10, 2021

Copy link
Copy Markdown
Contributor Author

@Yiyiyimu @juzhiyuan @nic-chen @gxthrj
How is it now?
Website change 2

@1502shivam-singh

Copy link
Copy Markdown
Member

@Yiyiyimu @juzhiyuan @nic-chen @gxthrj
How is it now?
scrnli_10_04_2021_15-38-50

Some points -

  • Avoid using pure black, like you have used in description section. Hurts eyes when using dark mode, when its actually needed i.e. in dark. Try material design based colors
  • Don't grey out the CTA's, like the "View on GitHub" button
  • Watch out for the other greyed out buttons like the "subscribe" button. The button and button text contrast is quite low.
  • Contrast issues elsewhere in the site

image

image

  • Something not related to your doing, but some company logos in "Who is using this" section don't have an alpha property, so it looks odd that some have a white background while other don't and they don't mix properly.

Fact is, that the images on the home-page are not yet optimized to fit in a dark mode. Like the design image in description section doesn't look like it belongs to this website in dark mode, because of color differences and all. It even looks as if its cropped out uneven, without any space tbh 😕.

@iamayushdas

iamayushdas commented Apr 10, 2021

Copy link
Copy Markdown
Contributor Author

@Yiyiyimu @juzhiyuan @nic-chen @gxthrj

How is it now?

Website change 2

Some points -

  • Avoid using pure black, like you have used in description section. Hurts eyes when using dark mode, when its actually needed i.e. in dark. Try material design based colors

  • Don't grey out the CTA's, like the "View on GitHub" button

  • Watch out for the other greyed out buttons like the "subscribe" button. The button and button text contrast is quite low.

  • Contrast issues elsewhere in the site

image

image

  • Something not related to your doing, but some company logos in "Who is using this" section don't have an alpha property, so it looks odd that some have a white background while other don't and they don't mix properly.

Fact is, that the images on the home-page are not yet optimized to fit in a dark mode. Like the design image in description section doesn't look like it belongs to this website in dark mode, because of color differences and all. It even looks as if its cropped out uneven, without any space tbh 😕.

Okay then will keep your suggestions in mind in next commit

@iamayushdas

iamayushdas commented Apr 11, 2021

Copy link
Copy Markdown
Contributor Author

@juzhiyuan @Yiyiyimu @1502shivam-singh
After collectively going through all your reviews above

Website change 3

*Note - tried but unable to figure out how to use styled-components for dark mode via customTheme.css (docusaurus way)

@iamayushdas

Copy link
Copy Markdown
Contributor Author

I am recreating that apisix architecture photo with transparent background. For the better of Dark mode legacy

@iamayushdas

iamayushdas commented Apr 11, 2021

Copy link
Copy Markdown
Contributor Author

@juzhiyuan @Yiyiyimu @1502shivam-singh after PR attached to issue no - #301 will be merged
we will get true dark mode compatible image that i have promised to create see 😀
Website change 4

@1502shivam-singh

Copy link
Copy Markdown
Member

@juzhiyuan @Yiyiyimu @1502shivam-singh
After collectively going through all your reviews above

scrnli_11_04_2021_09-51-06

*Note - tried but unable to figure out how to use styled-components for dark mode via customTheme.css (docusaurus way)

Nice 👍,
Just one last thing, can you fix the text contrast in the download section and the help section.

image

@iamayushdas

Copy link
Copy Markdown
Contributor Author

@juzhiyuan @Yiyiyimu @1502shivam-singh

After collectively going through all your reviews above

scrnli_11_04_2021_09-51-06

*Note - tried but unable to figure out how to use styled-components for dark mode via customTheme.css (docusaurus way)

Nice 👍,

Just one last thing, can you fix the text contrast in the download section and the help section.

image

Right now i am figuring out how to deal with that download page styled-components because its not handling in docusaurus way

@1502shivam-singh

Copy link
Copy Markdown
Member

I have got a way to solve your issue, do ask if you are facing any problem.

If I am correct you are facing problem doing this right ? (GIF below, description changing color from black to white)

vid

@iamayushdas

iamayushdas commented Apr 11, 2021

Copy link
Copy Markdown
Contributor Author

I have got a way to solve your issue, do ask if you are facing any problem.

If I am correct you are facing problem doing this right ? (GIF below, description changing color from black to white)

vid

Yup, i need your help buddy

@1502shivam-singh

Copy link
Copy Markdown
Member

I have got a way to solve your issue, do ask if you are facing any problem.
If I am correct you are facing problem doing this right ? (GIF below, description changing color from black to white)
vid

Yup, i need your help buddy

The most basic way to do this, that comes to my mind right now is to give the styled components some class and then slide that class property in the customTheme.css with CSS required.

@iamayushdas

Copy link
Copy Markdown
Contributor Author

I have got a way to solve your issue, do ask if you are facing any problem.
If I am correct you are facing problem doing this right ? (GIF below, description changing color from black to white)
vid

Yup, i need your help buddy

The most basic way to do this, that comes to my mind right now is to give the styled components some class and then slide that class property in the customTheme.css with CSS required.

i have given it a try, but didn't worked. lemme do it again thanks bud

@1502shivam-singh

Copy link
Copy Markdown
Member

I have got a way to solve your issue, do ask if you are facing any problem.
If I am correct you are facing problem doing this right ? (GIF below, description changing color from black to white)
vid

Yup, i need your help buddy

The most basic way to do this, that comes to my mind right now is to give the styled components some class and then slide that class property in the customTheme.css with CSS required.

i have given it a try, but didn't worked. lemme do it again thanks bud

That's how I did it 😂, how's it not working, check again 🙂

@iamayushdas

Copy link
Copy Markdown
Contributor Author

I have got a way to solve your issue, do ask if you are facing any problem.

If I am correct you are facing problem doing this right ? (GIF below, description changing color from black to white)

vid

Yup, i need your help buddy

The most basic way to do this, that comes to my mind right now is to give the styled components some class and then slide that class property in the customTheme.css with CSS required.

i have given it a try, but didn't worked. lemme do it again thanks bud

That's how I did it 😂, how's it not working, check again 🙂

Yep yep😃

@netlify

netlify Bot commented Apr 12, 2021

Copy link
Copy Markdown

Deploy preview for apisix ready!

Built with commit 9d45847

https://deploy-preview-297--apisix.netlify.app

@iamayushdas

iamayushdas commented Apr 12, 2021

Copy link
Copy Markdown
Contributor Author

@juzhiyuan @Yiyiyimu @nic-chen @liuxiran
Completed darkmode for apisix-website 😌
here are the changes: (screeshots)

Help page
Team page
Downloads page
Doc page

Waiting eagerly to gift Dark mode to users and devs

@Yiyiyimu Yiyiyimu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks amazing! Thanks for the contribution!!

@Yiyiyimu

Copy link
Copy Markdown
Member

Something not related to your doing, but some company logos in "Who is using this" section don't have an alpha property, so it looks odd that some have a white background while other don't and they don't mix properly.

Would fix in #303 cc @1502shivam-singh

@iamayushdas

iamayushdas commented Apr 12, 2021

Copy link
Copy Markdown
Contributor Author

Something not related to your doing, but some company logos in "Who is using this" section don't have an alpha property, so it looks odd that some have a white background while other don't and they don't mix properly.

Would fix in #303 cc @1502shivam-singh

I was just doing that😞 btw Thanks @Yiyiyimu for this🙂

@juzhiyuan juzhiyuan merged commit 22e852e into apache:master Apr 12, 2021
1502shivam-singh added a commit to 1502shivam-singh/apisix-website that referenced this pull request May 20, 2021
docs: added dashboard (apache#221)

fix: pull request in place of apache#214 (apache#222)

fix: changes to title style on landing page and doc addition

Co-authored-by: Amit Wani <amit.wani@cognizant.com>

docs: added dashboard (apache#225)

docs: added blog `Get Front-End Test Coverage with Cypress`  (apache#227)

fix: Wrong doc url (apache#231)

fix: some url path can't replace by absolute url path (apache#237)

Co-authored-by: coolsoul <coolsoul0551@qq.com>
Co-authored-by: 琚致远 <juzhiyuan@apache.org>

feat: support edit this page & update styles (apache#235)

chore: fix release guide since doc layout changed (apache#238)

docs: added Integrate with Projects documentations (apache#234)

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

added latest styles

feat: algolia docSearch apache#226 (apache#241)

docs: use getting-started for ingress-controller (apache#242)

feat: upgrade APISIX version (apache#244)

fix: add <!--truncate--> to the blog markdown files apache#240 (apache#247)

fix: rectify the index doc page for apisix ingress controller (apache#249)

fix: fix the version number in mobile size overflow (apache#245)

fix: apache#220 (apache#239)

docs: added event about releasing APISIX 2.4 (apache#248)

docs: fixed broken powered-by.md link (apache#251)

docs: update navbar for apisix (apache#252)

fix: improved the description for users to join slack (apache#253)

chore: Add new committer jinchen in committer list (apache#254)

docs: add docs for ingress 0.4.0 (apache#258)

* docs: add docs for ingress 0.4.0

* docs: modify ingress downloads

* fix: lint

fix: update sync-docs.js (apache#257)

feat: improve documents synchronize (apache#262)

feat: sync user wall data (apache#260)

feat: support toggle sidebar (apache#269)

chore: move Chao Zhang from Committers to PMCs (apache#267)

feat: apache#216 add helm-chart project (apache#273)

fix: add a bundle of good first issues links to homepage  (apache#274)

feat: support apisix-docker (apache#275)

feat: broken link checker script (apache#263)

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

feat: apache#266 speed up static file (apache#270)

feat: upgrade APISIX Dashboard version (apache#276)

feat: support to load other projects (apache#277)

chore(deps): bump peaceiris/actions-gh-pages from v3 to v3.8.0 (apache#271)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore: upgrade APISIX 2.5 (apache#279)

chore: remove downloads for docker & helm chart (apache#284)

feat: APISIX 2.5 event (apache#283)

docs: added a new blog "Traffic Split in Apache APISIX Ingress Controller" (apache#286)

chore: support dark mode and switch (apache#289)

chore: support hide navbar on scroll down (apache#290)

fix: page not found for apisix docker and apisix helm chart (apache#282)

Co-authored-by: Ayush das <ayush24das@gmail.com>

fix: add truncate and source to newly added blog (apache#296)

* update traffic-split-in-ingress-controller.md

* Update website/blog/2021-03-27-traffic-split-in-apache-apisix-ingress-controller.md

Co-authored-by: John Bampton <jbampton@users.noreply.github.com>

Co-authored-by: John Bampton <jbampton@users.noreply.github.com>

fix: disable version switch button in sidebar, as website doesn't support it (apache#299)

fix: padding to arrow inside collapse sidebar button, and fit button to sidebar width (apache#300)

fix: darkMode enhanced (apache#297)

chore: release ingress controller 0.5.0 (apache#305)

* chore: release ingress controller 0.5.0

* feat: add event

fix: broken link in  release guide (apache#306)

docs: update the architecture diagram (apache#309)

chore: add alpha channel to showcase image for dark mode (apache#303)

Signed-off-by: yiyiyimu <wosoyoung@gmail.com>

chore: Fix GitHub-icon sizes in team page  (apache#313)

docs: update logo wall (apache#315)

chore: upgrade APISIX Dashboard version to 2.6 (apache#317)

docs: update logo wall (apache#316)

docs: update download link (apache#320)

docs: update integration page (apache#327)

chore: Test Docusaurus webpack 5 support (apache#318)

feat: added last updated time (apache#331)

docs: fix broken links in Run Ingress on Amazon EKS blog (apache#333)

update docusaurus.config.json (apache#334)

feat: darkmode added to download-dropdown (apache#336)

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

chore(deps): bump actions/setup-python from 2 to 2.2.2 (apache#339)

Signed-off-by: dependabot[bot] <support@github.com>

chore(deps): bump actions/checkout from 2 to 2.3.4 (apache#337)

Signed-off-by: dependabot[bot] <support@github.com>

chore(deps): bump actions/setup-node from 2 to 2.1.5 (apache#338)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

release ingress 0.6.0 (apache#343)

docs: include  Helm charts and Docker to documents page (apache#342)

feat: added meta image (apache#345)

squashing: merge history commits on docs and landing page
1502shivam-singh added a commit to 1502shivam-singh/apisix-website that referenced this pull request May 20, 2021
docs: added dashboard (apache#221)

fix: pull request in place of apache#214 (apache#222)

fix: changes to title style on landing page and doc addition

Co-authored-by: Amit Wani <amit.wani@cognizant.com>

docs: added dashboard (apache#225)

docs: added blog `Get Front-End Test Coverage with Cypress`  (apache#227)

fix: Wrong doc url (apache#231)

fix: some url path can't replace by absolute url path (apache#237)

Co-authored-by: coolsoul <coolsoul0551@qq.com>
Co-authored-by: 琚致远 <juzhiyuan@apache.org>

feat: support edit this page & update styles (apache#235)

chore: fix release guide since doc layout changed (apache#238)

docs: added Integrate with Projects documentations (apache#234)

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

added latest styles

feat: algolia docSearch apache#226 (apache#241)

docs: use getting-started for ingress-controller (apache#242)

feat: upgrade APISIX version (apache#244)

fix: add <!--truncate--> to the blog markdown files apache#240 (apache#247)

fix: rectify the index doc page for apisix ingress controller (apache#249)

fix: fix the version number in mobile size overflow (apache#245)

fix: apache#220 (apache#239)

docs: added event about releasing APISIX 2.4 (apache#248)

docs: fixed broken powered-by.md link (apache#251)

docs: update navbar for apisix (apache#252)

fix: improved the description for users to join slack (apache#253)

chore: Add new committer jinchen in committer list (apache#254)

docs: add docs for ingress 0.4.0 (apache#258)

* docs: add docs for ingress 0.4.0

* docs: modify ingress downloads

* fix: lint

fix: update sync-docs.js (apache#257)

feat: improve documents synchronize (apache#262)

feat: sync user wall data (apache#260)

feat: support toggle sidebar (apache#269)

chore: move Chao Zhang from Committers to PMCs (apache#267)

feat: apache#216 add helm-chart project (apache#273)

fix: add a bundle of good first issues links to homepage  (apache#274)

feat: support apisix-docker (apache#275)

feat: broken link checker script (apache#263)

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

feat: apache#266 speed up static file (apache#270)

feat: upgrade APISIX Dashboard version (apache#276)

feat: support to load other projects (apache#277)

chore(deps): bump peaceiris/actions-gh-pages from v3 to v3.8.0 (apache#271)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore: upgrade APISIX 2.5 (apache#279)

chore: remove downloads for docker & helm chart (apache#284)

feat: APISIX 2.5 event (apache#283)

docs: added a new blog "Traffic Split in Apache APISIX Ingress Controller" (apache#286)

chore: support dark mode and switch (apache#289)

chore: support hide navbar on scroll down (apache#290)

fix: page not found for apisix docker and apisix helm chart (apache#282)

Co-authored-by: Ayush das <ayush24das@gmail.com>

fix: add truncate and source to newly added blog (apache#296)

* update traffic-split-in-ingress-controller.md

* Update website/blog/2021-03-27-traffic-split-in-apache-apisix-ingress-controller.md

Co-authored-by: John Bampton <jbampton@users.noreply.github.com>

Co-authored-by: John Bampton <jbampton@users.noreply.github.com>

fix: disable version switch button in sidebar, as website doesn't support it (apache#299)

fix: padding to arrow inside collapse sidebar button, and fit button to sidebar width (apache#300)

fix: darkMode enhanced (apache#297)

chore: release ingress controller 0.5.0 (apache#305)

* chore: release ingress controller 0.5.0

* feat: add event

fix: broken link in  release guide (apache#306)

docs: update the architecture diagram (apache#309)

chore: add alpha channel to showcase image for dark mode (apache#303)

Signed-off-by: yiyiyimu <wosoyoung@gmail.com>

chore: Fix GitHub-icon sizes in team page  (apache#313)

docs: update logo wall (apache#315)

chore: upgrade APISIX Dashboard version to 2.6 (apache#317)

docs: update logo wall (apache#316)

docs: update download link (apache#320)

docs: update integration page (apache#327)

chore: Test Docusaurus webpack 5 support (apache#318)

feat: added last updated time (apache#331)

docs: fix broken links in Run Ingress on Amazon EKS blog (apache#333)

update docusaurus.config.json (apache#334)

feat: darkmode added to download-dropdown (apache#336)

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

chore(deps): bump actions/setup-python from 2 to 2.2.2 (apache#339)

Signed-off-by: dependabot[bot] <support@github.com>

chore(deps): bump actions/checkout from 2 to 2.3.4 (apache#337)

Signed-off-by: dependabot[bot] <support@github.com>

chore(deps): bump actions/setup-node from 2 to 2.1.5 (apache#338)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

release ingress 0.6.0 (apache#343)

docs: include  Helm charts and Docker to documents page (apache#342)

feat: added meta image (apache#345)

squashing: merge history commits on docs and landing page

set max-width attribute to docMainContainer class

set max-width attribute to docMainContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: dark mode not fully support homepage

4 participants