Skip to content

Designed Login modal component #230

Open
Kirti-Pant wants to merge 1 commit into
TanmayKalra09:mainfrom
Kirti-Pant:main
Open

Designed Login modal component #230
Kirti-Pant wants to merge 1 commit into
TanmayKalra09:mainfrom
Kirti-Pant:main

Conversation

@Kirti-Pant
Copy link
Copy Markdown

🚀 Pull Request

📋 Description

This PR adds a modern, accessible Login modal component to the project and integrates it into the main website.
It includes form validation, a show/hide password toggle, Gravatar avatar integration, post-login user greeting, animated SVG branding, and full accessibility support.
The modal redirects the user to the homepage upon successful login, enhancing the authentication UX across the site.

Key highlights:

Implements Login.tsx as a reusable modal with clean React hooks structure.

Includes Login.css for styling, animations, and responsive design.

Adds Layout.css for site-wide layout consistency (if used).

Integrates Gravatar avatars, toast notifications, and visual feedback.

Ensures accessible form fields, labels, ARIA roles, and screen-reader friendly content.

Fixes #107

🔍 Type of Change

Bug fix 🐞

✅ New feature ✨

✅ Documentation update 📝

Refactoring or code improvement ♻️

Other (please describe):

🙋 Your Details

🧪 How Has This Been Tested?

Describe how you tested your changes.

  1. Manually tested end-to-end by opening the Login modal, entering various email/passwords, checking password validation and show/hide toggle, submitting the form, and verifying:

  2. The greeting and Gravatar avatar display on successful login.

  3. Toast notifications correctly appear for success and errors.

  4. The modal automatically closes and redirects to the homepage.

  5. Checked accessibility with keyboard navigation and screen reader (labels, ARIA, focus management).

📸 Screenshots (if applicable)

Before:
No Login Page
s4

After:
Login Component Added:
s1

s2 s3

s5

s6

✅ Checklist

  • [ ✅] I have read the contributing guidelines.
  • [✅ ] I have followed the code style and linting rules.
  • [ ✅] I have added tests or explained why not.
  • [✅ ] I have updated documentation (if needed).
  • [ ✅] My changes do not introduce any known security issues or vulnerabilities.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 11, 2025

@Kirti-Pant is attempting to deploy a commit to the Tanmay Kalra's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Kirti-Pant
Copy link
Copy Markdown
Author

@TanmayKalra09 I created this new PR kindly merge it so that I can delete te previous PR and it is showing no conflicts.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 11, 2025

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

Name Status Preview Comments Updated (UTC)
smart-log ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2025 2:01pm

@TanmayKalra09
Copy link
Copy Markdown
Owner

TanmayKalra09 commented Aug 11, 2025

@Kirti-Pant Great work on the login modal appreciate the effort and the accessibility touches! However, it looks like the Home page UI has changed as part of this PR. Could you please revert those Home UI changes or align them with the existing design system/components? Let's keep this PR scoped to the login modal only. Thanks!
SmarLog UI:
Screenshot 2025-08-11 at 7 35 28 PM
UI with your PR:
Screenshot 2025-08-11 at 7 35 57 PM

@Kirti-Pant
Copy link
Copy Markdown
Author

@TanmayKalra09
image

I'm running the code currently I've the same UI as it was before and I've added only Login component might be someone else working on UI of it.

@Kirti-Pant
Copy link
Copy Markdown
Author

Kirti-Pant commented Aug 11, 2025

@TanmayKalra09 I've done no changes in UI and might be someone else has change the UI of it.

@Kirti-Pant
Copy link
Copy Markdown
Author

@TanmayKalra09 kindly merge my PR

@TanmayKalra09
Copy link
Copy Markdown
Owner

@TanmayKalra09 I've done no changes in UI and might be someone else has change the UI of it.

This change is part of your PR, so it was implemented by you only.

@TanmayKalra09
Copy link
Copy Markdown
Owner

@TanmayKalra09 kindly merge my PR

How should we proceed to merge this PR since it currently doesn’t fulfill the expected requirements?

@Kirti-Pant
Copy link
Copy Markdown
Author

@TanmayKalra09 now what requirements are left there's no conflicts ??

@TanmayKalra09
Copy link
Copy Markdown
Owner

@TanmayKalra09 now what requirements are left there's no conflicts ??

How am I supposed to merge your PR when you’ve gone ahead and changed the UI completely?
This wasn’t part of the requirements, and now it’s going to mess up the consistency. I can’t just merge it like this you’ll need to revert the UI changes and stick to what we agreed on.

Current Smart log UI:
Screenshot 2025-08-15 at 1 27 58 PM

How UI will look if i merge your PR:
Screenshot 2025-08-15 at 1 28 31 PM

@Kirti-Pant
Copy link
Copy Markdown
Author

@TanmayKalra09 I've not changed the UI I've cloned your repository earlier where the UI was original.

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.

[FEATURE] Adding a Login Page

2 participants