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

[Feature] Add Loading animation #13

Conversation

TheCoderAdi
Copy link
Contributor

📌 Description

This pull request introduces a new loading state to the Home component in src/app/page.tsx and adds a new Loader component to handle the visual representation of the loading state. The most important changes include the addition of the Loader component and the integration of this component into the Home component.

Fixes: #9

🔍 Type of Change

  • 🐛 Bug Fix
  • 🚀 New Feature
  • 📖 Documentation Update
  • 🎨 UI/UX Enhancement
  • 🛠️ Refactor

✅ Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or my feature works.
  • I have added necessary documentation (if applicable).
  • No new errors or warnings in the code.

🔬 Changes Made

Integration of Loading State:

  • src/app/page.tsx: Added Loader component to display a loading animation when isSubmitting is true. This involves wrapping the form and other elements with conditional rendering logic to show the loader during submission.

Addition of Loader Component:

  • src/components/loader.tsx: Created a new Loader component that displays a matrix animation when active. This component uses useState and useEffect hooks to manage the animation state and update the matrix at regular intervals.

Import Statements:

  • src/app/page.tsx: Updated import statements to include the new Loader component.

🖼️ Screenshots (if applicable)

recording.3.mp4

Copy link

vercel bot commented Mar 8, 2025

@TheCoderAdi is attempting to deploy a commit to the Yash Kumar Saini's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Mar 9, 2025

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

Name Status Preview Comments Updated (UTC)
git-graph ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 9, 2025 5:59am

@yashksaini-coder yashksaini-coder added apertre2.0 Official Aperture 2.0 lable enhancement New feature or request good first issue Good for newcomers Medium Medium level issue Frontend Frontend side labels Mar 9, 2025
Copy link
Owner

@yashksaini-coder yashksaini-coder left a comment

Choose a reason for hiding this comment

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

Nice loading effect, expecting a spinner, but this will do also. @TheCoderAdi

@TheCoderAdi
Copy link
Contributor Author

Nice loading effect, expecting a spinner, but this will do also. @TheCoderAdi

If you want a spinner, I will do that but it seems good for coders I guess 😁

@yashksaini-coder
Copy link
Owner

Nice loading effect, expecting a spinner, but this will do also. @TheCoderAdi

If you want a spinner, I will do that but it seems good for coders I guess 😁

yes but this is good 👍🏼 @TheCoderAdi

@yashksaini-coder
Copy link
Owner

@TheCoderAdi drop by to the discord project forum post

@yashksaini-coder yashksaini-coder merged commit b811abb into yashksaini-coder:master Mar 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apertre2.0 Official Aperture 2.0 lable enhancement New feature or request Frontend Frontend side good first issue Good for newcomers Medium Medium level issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add Loading animation
2 participants