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

[ENHANCEMENT] Polish the dark mode; Overhaul submit form; Fix dark mode skeleton components; #67

Conversation

chinmaykunkikar
Copy link
Collaborator

@chinmaykunkikar chinmaykunkikar commented Nov 30, 2023

Summary

Fix dark mode skeleton components; Polish the dark mode; Overhaul submit form;

Description

  1. Dark Color Variant:

    • Introduced dark color variant in Tailwind CSS configuration for unambiguous color assignment.
  2. Light Color Variant:

    • Added light variant in Tailwind CSS, expanding color choices for enhanced design flexibility.
  3. Blog Form Overhaul:

    • Revamped blog creation form for accessibility, increased whitespace, refined placeholders, and improved width.
  4. Unified Color Scheme:

    • Implemented *-slate-* universally, ensuring consistent and hierarchical text colors.
  5. Background Color Adjustment:

    • Replaced light mode's white background with slate-50 for aesthetic alignment with UI practices.
  6. Homepage Design Improvements:

    • Enhanced visual hierarchy across homepage sections for optimized user experience.
  7. Text Formatting and Styling:

    • Converted title case text to sentence case, aligning with Google's writing practices.
  8. Button Interactivity:

    • Added hover state to Create Post button for improved user feedback.
  9. Skeleton Loading Enhancement:

    • Optimized post skeleton loading for smoother and visually appealing experience.
  10. Font Configuration:

    • Integrated Poppins font directly into Tailwind CSS, eliminating arbitrary value classes.
  11. Category Pill Component Updates:

    • Introduced <CategoryPill /> component, replacing util/category-props.tsx in line with React principles.
    • Added dark mode support with darker light colors for visibility.
    • Adjusted CategoryPill colors from bg-*-100 to bg-*-200 for enhanced prominence.
    • Set CategoryPill font to medium for coherence with Figma design.

Images

Headers

Before

wanderlust-beta vercel app_

After

wanderlust-pp9y1mnbe-krishnaacharya-official vercel app_

Skeletons (Dark)

Before

wanderlust-beta vercel app_ (4)

After

localhost_5173_

Featured and latest posts (Dark)

Before

wanderlust-beta vercel app_ (1)

After

wanderlust-pp9y1mnbe-krishnaacharya-official vercel app_ (1)

Featured and latest posts (Light)

Before

wanderlust-beta vercel app_ (5)

After

wanderlust-pp9y1mnbe-krishnaacharya-official vercel app_ (4)

All blog posts cards (Dark)

Before

wanderlust-beta vercel app_ (2)

After

wanderlust-pp9y1mnbe-krishnaacharya-official vercel app_ (2)

Create blog form (Dark)

Before

wanderlust-beta vercel app_ (3)

After

wanderlust-pp9y1mnbe-krishnaacharya-official vercel app_ (3)

Create blog form (Light)

Before

wanderlust-beta vercel app_ (6)

After

wanderlust-pp9y1mnbe-krishnaacharya-official vercel app_ (5)

Details page (Dark)

Before
wanderlust-beta vercel app_ (7)

After
localhost_5173_details-page

Details Page (Light)

Before
wanderlust-beta vercel app_ (8)

After
localhost_5173_details-page (1)

Modal

Before

wanderlust-beta vercel app_add-blog

After

wanderlust-ba6yxpzgy-krishnaacharya-official vercel app_add-blog

Issue(s) Addressed

Prerequisites

Even if they are repetitive values, they remove the guesswork while setting the color to an element.
More accessibility, more breathing space, improved placeholders, improved width.
…*-dark-*

This will make all colors uniform and add some hierarchy to the different texts
instead of all texts being plain white.
- Embrace the slate color more.
- Add some visual hierarchy to different sections of the homepage.
- Change Many Title Case Text Elements to Sentence case elements.
- Add a hover state to the Create post button.
Copy link

vercel bot commented Nov 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wanderlust ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 7:50pm
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 7:50pm

When you hover over the blank spaces between cards, you'd get a pointer cursor.
That's because the cursor was actually over the card container with the onclick property.
With this change, The card container is a proper blank space without any consequences.
Change light theme colors according to the theme vars
This will get rid of the need of having the arbitrary value classes in class lists.
- This aligns with the composition practice of react. We strive to make everything a component.
- Support dark mode. The dark mode will have darker versions of the light colors.
- Change from bg-*-100 to bg-*-200 to make the colors more prominent.
- Make the font medium, this will align more with the figma design.
- Remove utils/category-props.tsx
@krishnaacharyaa
Copy link
Owner

Create Blog post page looks good to me, in terms of responsiveness, the home page looks a bit missed up, if we are not getting engagements from contributors I'll take it up. No worries. Referring to #13

@SankalpHaritash21
Copy link
Contributor

Hi @chinmaykunkikar @krishnaacharyaa

detail design

Can we align title with detail and @chinmaykunkikar as your choice.
@chinmaykunkikar Now I came to know about professional pr. I thought u r making doc for wanderlust website. It look like. @chinmaykunkikar can u tell me from where you get such experience. Plz tell me too.

@SankalpHaritash21
Copy link
Contributor

SankalpHaritash21 commented Dec 3, 2023

@chinmaykunkikar your code look great and the approach used is good. I approved ur code.

hey @chinmaykunkikar can u plz add some meta data in index file as It will help in better recognition in google.

updated:

  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <link
      href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
      rel="stylesheet"
    />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Wanderlust</title>
  </head>

Edit: add a code block.

@chinmaykunkikar
Copy link
Collaborator Author

Create Blog post page looks good to me, in terms of responsiveness, the home page looks a bit missed up, if we are not getting engagements from contributors I'll take it up. No worries. Referring to #13

@krishnaacharyaa, I didn't bother much about the homepage responsiveness.
Tomorrow, I'll skim through some code and if I think I can do it without breaking a sweat, I'll push it in this PR itself. Otherwise, please take it up.

@chinmaykunkikar
Copy link
Collaborator Author

@chinmaykunkikar your code look great and the approach used is good. I approved ur code.

hey @chinmaykunkikar can u plz add some meta data in index file as It will help in better recognition in google.

updated:

<title>Wanderlust</title>

Perhaps a topic for another PR? :)

@chinmaykunkikar
Copy link
Collaborator Author

chinmaykunkikar commented Dec 3, 2023

hey @chinmaykunkikar can u plz add some meta data in index file as It will help in better recognition in google.

updated:

  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <link
      href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
      rel="stylesheet"
    />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Wanderlust</title>
  </head>

Edit: add a code block.

P.S. Please learn to use code blocks when you want to show or refer some code.
For example, in this comment, if I hadn't quoted your reply, I wouldn't have known what you're trying to say.
Because this is what it looked like in your comment before editing:

Screenshot

Screenshot_2023-12-03-10-19-22-82_320a9a695de7cdce83ed5281148d6f19.jpg

The rest of the html code except the title tag was automatically parsed by the GitHub markdown.

@krishnaacharyaa
Copy link
Owner

krishnaacharyaa commented Dec 3, 2023

if I think I can do it without breaking a sweat, I'll push it in this PR itself.

Please don't, too many already clubbed in this PR, it later becomes difficult to track.
We'll take this up seperately

And the title one even we'll do it seperately!

We'll get this pushed ASAP, I'm expecting a bit of crowd to come in, let's aim to merge this as top priority

If you can just do the Map type of category, that would suffice for now. If you feel it needs some dedicated time we'll take it up later.

p.s: this has some really nice enhancements, so I'm hurrying to merge this, hope you understand and don't mind 😊

@chinmaykunkikar
Copy link
Collaborator Author

chinmaykunkikar commented Dec 3, 2023

We'll take this up seperately

Sure

And the title one even we'll do it seperately!

Yes, sure.

If you can just do the Map type of category, that would suffice for now. If you feel it needs some dedicated time we'll take it up later.

I'll do it in this PR itself.

p.s: this has some really nice enhancements, so I'm hurrying to merge this, hope you understand and don't mind 😊

I get you. But... relax, this is the only task that that's pending for this PR. You'll (probably) just have to click on the merge button once I push it.
Once this is kept on hold, it will take forever to get it fixed.
I'll do it tomorrow because I'm traveling today.

@krishnaacharyaa
Copy link
Owner

krishnaacharyaa commented Dec 3, 2023

I'll do it tomorrow because I'm traveling today.

oops okay... Take your time.

Copy link
Owner

@krishnaacharyaa krishnaacharyaa left a comment

Choose a reason for hiding this comment

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

Thank you for very unique and interesting approach, looks cool to me, just some naming conventions if we can update :D

frontend/src/utils/category-colors.ts Show resolved Hide resolved
frontend/src/utils/category-colors.ts Show resolved Hide resolved
@krishnaacharyaa
Copy link
Owner

@chinmaykunkikar just couple of things, pardon me for being very picky and specific.
image
The arrow has a little padding at the left, can you fix that

And here
image
Can we have the Title in the same alignment as Back button, that feels reasonable to me, so that it is heading and has some seperation from the form itself

- This way we make sure we have a single source of truth for all categories and their colors.

- const `categories` replaces the constants file CATEGORIES.

- I have renamed it to lower case to make it uniform with the rest of the codebase,
even if the best practices says to use uppercase for all constatnts.
Copy link
Owner

@krishnaacharyaa krishnaacharyaa left a comment

Choose a reason for hiding this comment

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

Thank you @chinmaykunkikar, LGTM. It's gonna be the biggest PR with 24 commits till date ;)

@krishnaacharyaa krishnaacharyaa merged commit a2b9f0b into krishnaacharyaa:main Dec 4, 2023
3 checks passed
@chinmaykunkikar chinmaykunkikar deleted the 64-dark-skeleton-and-fixes branch December 8, 2023 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to the existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Dark Theme for Shimmer
3 participants