Skip to content

feat: added Dark theme to the website #365

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

Merged
merged 16 commits into from
Mar 13, 2024
Merged

feat: added Dark theme to the website #365

merged 16 commits into from
Mar 13, 2024

Conversation

Gmin2
Copy link
Contributor

@Gmin2 Gmin2 commented Feb 26, 2024

Resolves #130
Summary:

Added dark mode to the website completed the home page

https://www.loom.com/share/9f704d494b8146d4a795d2bfaec64c71

Todo

  • Docs page

  • Blog Page

  • Implementation Page

@Gmin2 Gmin2 marked this pull request as draft February 26, 2024 15:57
@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 28, 2024

Hi @praveen-rikhari, I hope you're still actively working on the issue. If possible, could you try to expedite the process a bit? We're encountering merge conflicts from various source.
Thank you for your attention to this matter

@Gmin2 Gmin2 marked this pull request as ready for review February 28, 2024 13:01
@Gmin2 Gmin2 closed this Feb 28, 2024
@Gmin2 Gmin2 reopened this Feb 28, 2024
@benjagm benjagm marked this pull request as draft February 28, 2024 17:19
@benjagm
Copy link
Collaborator

benjagm commented Feb 28, 2024

@utnim2 great job so far here! Looks great. Now is time to Praveen to continue the great work done.

@jayprakash25
Copy link
Contributor

Hi @utnim2 . May I what else is to be done in the feature?

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 28, 2024

Hi @utnim2 . May I what else is to be done in the feature?

You can complete the docs page and implementations page and one suggestion please prioritize it as it covers to touch the whole codebase of the website it will create more merge conflict as more as we delay it

@jayprakash25

@jayprakash25
Copy link
Contributor

Hi @utnim2 . May I what else is to be done in the feature?

You can complete the docs page and implementations page and one suggestion please prioritize it as it covers to touch the whole codebase of the website it will create more merge conflict as more as we delay it

@jayprakash25

Understood, I'll update my progress

@jayprakash25
Copy link
Contributor

@utnim2 only adding the dark theme is the task right?

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

@utnim2 only adding the dark theme is the task right?

Yes @jayprakash25

@benjagm benjagm added the Status: In Progress This issue is being worked on, and has someone assigned. label Feb 29, 2024
@jayprakash25
Copy link
Contributor

Hi @utnim2 . The dark theme for docs is done.

@jayprakash25
Copy link
Contributor

Should I directly send pr to the main repo?

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

Should I directly send pr to the main repo?

Hey @jayprakash25 please refer to this guide

@jayprakash25
Copy link
Contributor

I cannot push, as it says permisiion denied.

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

I cannot push, as it says permisiion denied.

I have sent you permission please accept it and then you can push the changes

@jayprakash25
Copy link
Contributor

jayprakash25 commented Feb 29, 2024

Yes, I pushed the changes for the docs page. Apologies for the delay, I'll push remaining pages as soon as possible @utnim2. I'm starting with the implementations page now

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

Yes, I pushed the changes for the docs page. Apologies for the delay, I'll push remaining pages as soon as possible @utnim2. I'm starting with the implementations page now

Hey @jayprakash25 implementations page is half done already.You can pull the changes from the branch and start working on the rest part

Thanks

@jayprakash25
Copy link
Contributor

@utnim2 will this commits be acknowledged as colloborative contributions?

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

@utnim2 will this commits be acknowledged as colloborative contributions?

A big big yes

@jayprakash25
Copy link
Contributor

Screenshot (233)
@utnim2 is this table theme okay?

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

Screenshot (233) @utnim2 is this table theme okay?

tagging @benjagm

@jayprakash25
Copy link
Contributor

@Gmin2
Copy link
Contributor Author

Gmin2 commented Feb 29, 2024

@kx412764776
Copy link
Contributor

@utnim2 @jayprakash25 Can I contribute to this task yet?

@Gmin2
Copy link
Contributor Author

Gmin2 commented Mar 1, 2024

@utnim2 @jayprakash25 Can I contribute to this task yet?

@kx412764776 this issue is near to completion. You can look at some other issue

Thanks !

@Gmin2
Copy link
Contributor Author

Gmin2 commented Mar 9, 2024

@utnim will u take care of the search icon, i have done the first 2 changes.

are you doing the search icon

@jayprakash25
Copy link
Contributor

@utnim will u take care of the search icon, i have done the first 2 changes.

are you doing the search icon

I was hoping u could take on the search icon..

@Gmin2
Copy link
Contributor Author

Gmin2 commented Mar 9, 2024

@utnim will u take care of the search icon, i have done the first 2 changes.

are you doing the search icon

I was hoping u could take on the search icon..

i guess you have edited the message

@jayprakash25
Copy link
Contributor

@utnim will u take care of the search icon, i have done the first 2 changes.

are you doing the search icon

I was hoping u could take on the search icon..

i guess you have edited the message

I meant I have done sidebar icons not the search one....

@Gmin2
Copy link
Contributor Author

Gmin2 commented Mar 9, 2024

cool i am doing it

@jayprakash25
Copy link
Contributor

cool i am doing it

Yep, Thank u

@jayprakash25
Copy link
Contributor

Done with the search icon?

@jayprakash25
Copy link
Contributor

@utnim2 any updates yet

@jayprakash25
Copy link
Contributor

Hi @utnim2, I hadn't heard back regarding the search icon, so I went ahead and made the necessary changes. I hope that's okay.
@benjagm I have made it similar to asyncApi heres the link
https://www.loom.com/share/aa5905f6c6224346909c18b2328043f3?sid=2f2fc9a0-23e3-44ab-9bfb-ed4c33868da8

@Gmin2 Gmin2 requested a review from a team as a code owner March 12, 2024 12:34
Copy link
Collaborator

@benjagm benjagm left a comment

Choose a reason for hiding this comment

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

This is looking really amazing!!

Just found some small things but I decided to record a video to better explain what is pending.

Let's go! We are almost there!

See comments in the code and this video (with audio):
https://github.com/json-schema-org/website/assets/40007659/293005b7-0ead-49fd-8b35-06c95dd6c790

@@ -32,7 +32,7 @@ module.exports = {

'react/jsx-curly-spacing': ['error', { when: 'never', children: true }],
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'windows'],
'linebreak-style': ['error', 'unix'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can I ask what is this change doing?

Copy link
Contributor

Choose a reason for hiding this comment

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

I adjust eslint.js line endings to CRLF for local development on Windows to prevent linting errors. Before pushing, I revert them to LF to maintain consistency with our project's Unix line endings.

@@ -138,6 +136,8 @@ const MainNavigation = () => {
const section = useContext(SectionContext);
const showMobileNav = useStore((s: any) => s.overlayNavigation === 'docs');

const { theme } = useTheme();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's make sure light is the default theme when accessing for the first time.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure

@benjagm
Copy link
Collaborator

benjagm commented Mar 12, 2024

You will need to resolve the merge conflicts as well:

Screenshot 2024-03-12 at 14 34 58

@jayprakash25
Copy link
Contributor

@utnim2 Taking on those issues now, informing to prevent overlap. Could use your help with any merge conflicts later.

@jayprakash25
Copy link
Contributor

@jayprakash25
Copy link
Contributor

@utnim2 we have merge conflicts. Can you take care of resolving them? Let me know.

@Gmin2
Copy link
Contributor Author

Gmin2 commented Mar 12, 2024

@utnim2 we have merge conflicts. Can you take care of resolving them? Let me know.

as you have done this changes you can proceed with resolving the conflicts @jayprakash25

@jayprakash25
Copy link
Contributor

@utnim2 @benjagm everything is done.

Copy link
Collaborator

@benjagm benjagm left a comment

Choose a reason for hiding this comment

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

This has been and outstanding job. Congrats!!!!

@jayprakash25 @utnim2

All good on my end!

@benjagm benjagm merged commit 38fe398 into json-schema-org:main Mar 13, 2024
@jayprakash25
Copy link
Contributor

Thank you @benjagm . Is there any other issue I could help with?

@jayprakash25
Copy link
Contributor

@benjagm Although I didn't submit(pr) it, I contributed to the work. Can I include this contribution in my proposal?

@benjagm
Copy link
Collaborator

benjagm commented Mar 13, 2024

@benjagm Although I didn't submit(pr) it, I contributed to the work. Can I include this contribution in my proposal?

Absolutely yes!!!

benjagm pushed a commit that referenced this pull request Mar 15, 2024
* getting back the lost changes

* search box fix
benjagm added a commit that referenced this pull request Mar 18, 2024
* Fix: Dark theme footer style (#529)

* fix: dark theme footer section styling & coloring

* fixed the footer space issue in specification and docs page

* handled the overflow issue while opening search bar (#544)

* Fix: Getting back the lost changes from PR  #365 (#537)

* getting back the lost changes

* search box fix

* Bug: Sponsor logos are not optimized for dark mode (#532)

* add gradient to show spons logo

* fix prettier

* fix

* Update index.page.tsx

* remove stoplight and retool

* Update index.page.tsx

* add dark mode images

* fix

* Fix tabs

* Fix theme toggle

* Fix and merge dark theme

There was a problem with this PR: #544

Now everything works.

* .

* .

---------

Co-authored-by: Sahil Shadwal <[email protected]>
Co-authored-by: Aditya Sharma <[email protected]>
Co-authored-by: Dhairya Majmudar <[email protected]>
Co-authored-by: SATYAM KUMAR <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress This issue is being worked on, and has someone assigned.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dark mode to the site
6 participants